tensorflow.serving.Manifest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/contrib/session_bundle/manifest.proto
package tensorflow.serving;
public final class Manifest {
private Manifest() {}
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 SignaturesOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.Signatures)
com.google.protobuf.MessageOrBuilder {
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
boolean hasDefaultSignature();
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
tensorflow.serving.Manifest.Signature getDefaultSignature();
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
tensorflow.serving.Manifest.SignatureOrBuilder getDefaultSignatureOrBuilder();
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
int getNamedSignaturesCount();
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
boolean containsNamedSignatures(
java.lang.String key);
/**
* Use {@link #getNamedSignaturesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getNamedSignatures();
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
java.util.Map
getNamedSignaturesMap();
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
tensorflow.serving.Manifest.Signature getNamedSignaturesOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.Signature defaultValue);
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
tensorflow.serving.Manifest.Signature getNamedSignaturesOrThrow(
java.lang.String key);
}
/**
*
* Signatures of model export.
*
*
* Protobuf type {@code tensorflow.serving.Signatures}
*/
public static final class Signatures extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.Signatures)
SignaturesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Signatures.newBuilder() to construct.
private Signatures(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Signatures() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Signatures(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tensorflow.serving.Manifest.Signature.Builder subBuilder = null;
if (defaultSignature_ != null) {
subBuilder = defaultSignature_.toBuilder();
}
defaultSignature_ = input.readMessage(tensorflow.serving.Manifest.Signature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultSignature_);
defaultSignature_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
namedSignatures_ = com.google.protobuf.MapField.newMapField(
NamedSignaturesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
namedSignatures__ = input.readMessage(
NamedSignaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
namedSignatures_.getMutableMap().put(
namedSignatures__.getKey(), namedSignatures__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetNamedSignatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.Signatures.class, tensorflow.serving.Manifest.Signatures.Builder.class);
}
private int bitField0_;
public static final int DEFAULT_SIGNATURE_FIELD_NUMBER = 1;
private tensorflow.serving.Manifest.Signature defaultSignature_;
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public boolean hasDefaultSignature() {
return defaultSignature_ != null;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public tensorflow.serving.Manifest.Signature getDefaultSignature() {
return defaultSignature_ == null ? tensorflow.serving.Manifest.Signature.getDefaultInstance() : defaultSignature_;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public tensorflow.serving.Manifest.SignatureOrBuilder getDefaultSignatureOrBuilder() {
return getDefaultSignature();
}
public static final int NAMED_SIGNATURES_FIELD_NUMBER = 2;
private static final class NamedSignaturesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, tensorflow.serving.Manifest.Signature> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
tensorflow.serving.Manifest.Signature.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, tensorflow.serving.Manifest.Signature> namedSignatures_;
private com.google.protobuf.MapField
internalGetNamedSignatures() {
if (namedSignatures_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NamedSignaturesDefaultEntryHolder.defaultEntry);
}
return namedSignatures_;
}
public int getNamedSignaturesCount() {
return internalGetNamedSignatures().getMap().size();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public boolean containsNamedSignatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetNamedSignatures().getMap().containsKey(key);
}
/**
* Use {@link #getNamedSignaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getNamedSignatures() {
return getNamedSignaturesMap();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public java.util.Map getNamedSignaturesMap() {
return internalGetNamedSignatures().getMap();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public tensorflow.serving.Manifest.Signature getNamedSignaturesOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.Signature defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetNamedSignatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public tensorflow.serving.Manifest.Signature getNamedSignaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetNamedSignatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (defaultSignature_ != null) {
output.writeMessage(1, getDefaultSignature());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetNamedSignatures(),
NamedSignaturesDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (defaultSignature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDefaultSignature());
}
for (java.util.Map.Entry entry
: internalGetNamedSignatures().getMap().entrySet()) {
com.google.protobuf.MapEntry
namedSignatures__ = NamedSignaturesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, namedSignatures__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.Signatures)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.Signatures other = (tensorflow.serving.Manifest.Signatures) obj;
boolean result = true;
result = result && (hasDefaultSignature() == other.hasDefaultSignature());
if (hasDefaultSignature()) {
result = result && getDefaultSignature()
.equals(other.getDefaultSignature());
}
result = result && internalGetNamedSignatures().equals(
other.internalGetNamedSignatures());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDefaultSignature()) {
hash = (37 * hash) + DEFAULT_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSignature().hashCode();
}
if (!internalGetNamedSignatures().getMap().isEmpty()) {
hash = (37 * hash) + NAMED_SIGNATURES_FIELD_NUMBER;
hash = (53 * hash) + internalGetNamedSignatures().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signatures 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 tensorflow.serving.Manifest.Signatures parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signatures 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 tensorflow.serving.Manifest.Signatures parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signatures parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.Signatures prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Signatures of model export.
*
*
* Protobuf type {@code tensorflow.serving.Signatures}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.Signatures)
tensorflow.serving.Manifest.SignaturesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetNamedSignatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableNamedSignatures();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.Signatures.class, tensorflow.serving.Manifest.Signatures.Builder.class);
}
// Construct using tensorflow.serving.Manifest.Signatures.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (defaultSignatureBuilder_ == null) {
defaultSignature_ = null;
} else {
defaultSignature_ = null;
defaultSignatureBuilder_ = null;
}
internalGetMutableNamedSignatures().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signatures_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signatures getDefaultInstanceForType() {
return tensorflow.serving.Manifest.Signatures.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.Signatures build() {
tensorflow.serving.Manifest.Signatures result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signatures buildPartial() {
tensorflow.serving.Manifest.Signatures result = new tensorflow.serving.Manifest.Signatures(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (defaultSignatureBuilder_ == null) {
result.defaultSignature_ = defaultSignature_;
} else {
result.defaultSignature_ = defaultSignatureBuilder_.build();
}
result.namedSignatures_ = internalGetNamedSignatures();
result.namedSignatures_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.Signatures) {
return mergeFrom((tensorflow.serving.Manifest.Signatures)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.Signatures other) {
if (other == tensorflow.serving.Manifest.Signatures.getDefaultInstance()) return this;
if (other.hasDefaultSignature()) {
mergeDefaultSignature(other.getDefaultSignature());
}
internalGetMutableNamedSignatures().mergeFrom(
other.internalGetNamedSignatures());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.Signatures parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.Signatures) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private tensorflow.serving.Manifest.Signature defaultSignature_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.Signature, tensorflow.serving.Manifest.Signature.Builder, tensorflow.serving.Manifest.SignatureOrBuilder> defaultSignatureBuilder_;
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public boolean hasDefaultSignature() {
return defaultSignatureBuilder_ != null || defaultSignature_ != null;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public tensorflow.serving.Manifest.Signature getDefaultSignature() {
if (defaultSignatureBuilder_ == null) {
return defaultSignature_ == null ? tensorflow.serving.Manifest.Signature.getDefaultInstance() : defaultSignature_;
} else {
return defaultSignatureBuilder_.getMessage();
}
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public Builder setDefaultSignature(tensorflow.serving.Manifest.Signature value) {
if (defaultSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultSignature_ = value;
onChanged();
} else {
defaultSignatureBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public Builder setDefaultSignature(
tensorflow.serving.Manifest.Signature.Builder builderForValue) {
if (defaultSignatureBuilder_ == null) {
defaultSignature_ = builderForValue.build();
onChanged();
} else {
defaultSignatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public Builder mergeDefaultSignature(tensorflow.serving.Manifest.Signature value) {
if (defaultSignatureBuilder_ == null) {
if (defaultSignature_ != null) {
defaultSignature_ =
tensorflow.serving.Manifest.Signature.newBuilder(defaultSignature_).mergeFrom(value).buildPartial();
} else {
defaultSignature_ = value;
}
onChanged();
} else {
defaultSignatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public Builder clearDefaultSignature() {
if (defaultSignatureBuilder_ == null) {
defaultSignature_ = null;
onChanged();
} else {
defaultSignature_ = null;
defaultSignatureBuilder_ = null;
}
return this;
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public tensorflow.serving.Manifest.Signature.Builder getDefaultSignatureBuilder() {
onChanged();
return getDefaultSignatureFieldBuilder().getBuilder();
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
public tensorflow.serving.Manifest.SignatureOrBuilder getDefaultSignatureOrBuilder() {
if (defaultSignatureBuilder_ != null) {
return defaultSignatureBuilder_.getMessageOrBuilder();
} else {
return defaultSignature_ == null ?
tensorflow.serving.Manifest.Signature.getDefaultInstance() : defaultSignature_;
}
}
/**
*
* Default signature of the graph.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* .tensorflow.serving.Signature default_signature = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.Signature, tensorflow.serving.Manifest.Signature.Builder, tensorflow.serving.Manifest.SignatureOrBuilder>
getDefaultSignatureFieldBuilder() {
if (defaultSignatureBuilder_ == null) {
defaultSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.Signature, tensorflow.serving.Manifest.Signature.Builder, tensorflow.serving.Manifest.SignatureOrBuilder>(
getDefaultSignature(),
getParentForChildren(),
isClean());
defaultSignature_ = null;
}
return defaultSignatureBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, tensorflow.serving.Manifest.Signature> namedSignatures_;
private com.google.protobuf.MapField
internalGetNamedSignatures() {
if (namedSignatures_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NamedSignaturesDefaultEntryHolder.defaultEntry);
}
return namedSignatures_;
}
private com.google.protobuf.MapField
internalGetMutableNamedSignatures() {
onChanged();;
if (namedSignatures_ == null) {
namedSignatures_ = com.google.protobuf.MapField.newMapField(
NamedSignaturesDefaultEntryHolder.defaultEntry);
}
if (!namedSignatures_.isMutable()) {
namedSignatures_ = namedSignatures_.copy();
}
return namedSignatures_;
}
public int getNamedSignaturesCount() {
return internalGetNamedSignatures().getMap().size();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public boolean containsNamedSignatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetNamedSignatures().getMap().containsKey(key);
}
/**
* Use {@link #getNamedSignaturesMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getNamedSignatures() {
return getNamedSignaturesMap();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public java.util.Map getNamedSignaturesMap() {
return internalGetNamedSignatures().getMap();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public tensorflow.serving.Manifest.Signature getNamedSignaturesOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.Signature defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetNamedSignatures().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public tensorflow.serving.Manifest.Signature getNamedSignaturesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetNamedSignatures().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearNamedSignatures() {
internalGetMutableNamedSignatures().getMutableMap()
.clear();
return this;
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public Builder removeNamedSignatures(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableNamedSignatures().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableNamedSignatures() {
return internalGetMutableNamedSignatures().getMutableMap();
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public Builder putNamedSignatures(
java.lang.String key,
tensorflow.serving.Manifest.Signature value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableNamedSignatures().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Named signatures of the graph.
*
*
* map<string, .tensorflow.serving.Signature> named_signatures = 2;
*/
public Builder putAllNamedSignatures(
java.util.Map values) {
internalGetMutableNamedSignatures().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.Signatures)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.Signatures)
private static final tensorflow.serving.Manifest.Signatures DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.Signatures();
}
public static tensorflow.serving.Manifest.Signatures getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Signatures parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Signatures(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signatures getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TensorBindingOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.TensorBinding)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
java.lang.String getTensorName();
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
com.google.protobuf.ByteString
getTensorNameBytes();
}
/**
*
* A binding to a tensor including the name and, possibly in the future, type
* or other metadata. For example, this may specify whether a tensor supports
* batch vs single inference.
*
*
* Protobuf type {@code tensorflow.serving.TensorBinding}
*/
public static final class TensorBinding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.TensorBinding)
TensorBindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use TensorBinding.newBuilder() to construct.
private TensorBinding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TensorBinding() {
tensorName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TensorBinding(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
tensorName_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_TensorBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_TensorBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.TensorBinding.class, tensorflow.serving.Manifest.TensorBinding.Builder.class);
}
public static final int TENSOR_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object tensorName_;
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public java.lang.String getTensorName() {
java.lang.Object ref = tensorName_;
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();
tensorName_ = s;
return s;
}
}
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public com.google.protobuf.ByteString
getTensorNameBytes() {
java.lang.Object ref = tensorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTensorNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tensorName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTensorNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tensorName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.TensorBinding)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.TensorBinding other = (tensorflow.serving.Manifest.TensorBinding) obj;
boolean result = true;
result = result && getTensorName()
.equals(other.getTensorName());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TENSOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTensorName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.TensorBinding 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 tensorflow.serving.Manifest.TensorBinding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.TensorBinding 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 tensorflow.serving.Manifest.TensorBinding parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.TensorBinding parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.TensorBinding prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A binding to a tensor including the name and, possibly in the future, type
* or other metadata. For example, this may specify whether a tensor supports
* batch vs single inference.
*
*
* Protobuf type {@code tensorflow.serving.TensorBinding}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.TensorBinding)
tensorflow.serving.Manifest.TensorBindingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_TensorBinding_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_TensorBinding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.TensorBinding.class, tensorflow.serving.Manifest.TensorBinding.Builder.class);
}
// Construct using tensorflow.serving.Manifest.TensorBinding.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tensorName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_TensorBinding_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.TensorBinding getDefaultInstanceForType() {
return tensorflow.serving.Manifest.TensorBinding.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.TensorBinding build() {
tensorflow.serving.Manifest.TensorBinding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.TensorBinding buildPartial() {
tensorflow.serving.Manifest.TensorBinding result = new tensorflow.serving.Manifest.TensorBinding(this);
result.tensorName_ = tensorName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.TensorBinding) {
return mergeFrom((tensorflow.serving.Manifest.TensorBinding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.TensorBinding other) {
if (other == tensorflow.serving.Manifest.TensorBinding.getDefaultInstance()) return this;
if (!other.getTensorName().isEmpty()) {
tensorName_ = other.tensorName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.TensorBinding parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.TensorBinding) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object tensorName_ = "";
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public java.lang.String getTensorName() {
java.lang.Object ref = tensorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tensorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public com.google.protobuf.ByteString
getTensorNameBytes() {
java.lang.Object ref = tensorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tensorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public Builder setTensorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tensorName_ = value;
onChanged();
return this;
}
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public Builder clearTensorName() {
tensorName_ = getDefaultInstance().getTensorName();
onChanged();
return this;
}
/**
*
* The name of the tensor to bind to.
*
*
* string tensor_name = 1;
*/
public Builder setTensorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tensorName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.TensorBinding)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.TensorBinding)
private static final tensorflow.serving.Manifest.TensorBinding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.TensorBinding();
}
public static tensorflow.serving.Manifest.TensorBinding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TensorBinding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TensorBinding(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.TensorBinding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AssetFileOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.AssetFile)
com.google.protobuf.MessageOrBuilder {
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
boolean hasTensorBinding();
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
tensorflow.serving.Manifest.TensorBinding getTensorBinding();
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getTensorBindingOrBuilder();
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
java.lang.String getFilename();
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
com.google.protobuf.ByteString
getFilenameBytes();
}
/**
*
* An asset file or set of sharded files with the same name that will be bound
* to a tensor at init / session_bundle load time.
*
*
* Protobuf type {@code tensorflow.serving.AssetFile}
*/
public static final class AssetFile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.AssetFile)
AssetFileOrBuilder {
private static final long serialVersionUID = 0L;
// Use AssetFile.newBuilder() to construct.
private AssetFile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AssetFile() {
filename_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AssetFile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (tensorBinding_ != null) {
subBuilder = tensorBinding_.toBuilder();
}
tensorBinding_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tensorBinding_);
tensorBinding_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
filename_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_AssetFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_AssetFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.AssetFile.class, tensorflow.serving.Manifest.AssetFile.Builder.class);
}
public static final int TENSOR_BINDING_FIELD_NUMBER = 1;
private tensorflow.serving.Manifest.TensorBinding tensorBinding_;
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public boolean hasTensorBinding() {
return tensorBinding_ != null;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getTensorBinding() {
return tensorBinding_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : tensorBinding_;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getTensorBindingOrBuilder() {
return getTensorBinding();
}
public static final int FILENAME_FIELD_NUMBER = 2;
private volatile java.lang.Object filename_;
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public java.lang.String getFilename() {
java.lang.Object ref = filename_;
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();
filename_ = s;
return s;
}
}
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public com.google.protobuf.ByteString
getFilenameBytes() {
java.lang.Object ref = filename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (tensorBinding_ != null) {
output.writeMessage(1, getTensorBinding());
}
if (!getFilenameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filename_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tensorBinding_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTensorBinding());
}
if (!getFilenameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filename_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.AssetFile)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.AssetFile other = (tensorflow.serving.Manifest.AssetFile) obj;
boolean result = true;
result = result && (hasTensorBinding() == other.hasTensorBinding());
if (hasTensorBinding()) {
result = result && getTensorBinding()
.equals(other.getTensorBinding());
}
result = result && getFilename()
.equals(other.getFilename());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTensorBinding()) {
hash = (37 * hash) + TENSOR_BINDING_FIELD_NUMBER;
hash = (53 * hash) + getTensorBinding().hashCode();
}
hash = (37 * hash) + FILENAME_FIELD_NUMBER;
hash = (53 * hash) + getFilename().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.AssetFile 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 tensorflow.serving.Manifest.AssetFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.AssetFile 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 tensorflow.serving.Manifest.AssetFile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.AssetFile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.AssetFile prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An asset file or set of sharded files with the same name that will be bound
* to a tensor at init / session_bundle load time.
*
*
* Protobuf type {@code tensorflow.serving.AssetFile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.AssetFile)
tensorflow.serving.Manifest.AssetFileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_AssetFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_AssetFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.AssetFile.class, tensorflow.serving.Manifest.AssetFile.Builder.class);
}
// Construct using tensorflow.serving.Manifest.AssetFile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tensorBindingBuilder_ == null) {
tensorBinding_ = null;
} else {
tensorBinding_ = null;
tensorBindingBuilder_ = null;
}
filename_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_AssetFile_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.AssetFile getDefaultInstanceForType() {
return tensorflow.serving.Manifest.AssetFile.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.AssetFile build() {
tensorflow.serving.Manifest.AssetFile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.AssetFile buildPartial() {
tensorflow.serving.Manifest.AssetFile result = new tensorflow.serving.Manifest.AssetFile(this);
if (tensorBindingBuilder_ == null) {
result.tensorBinding_ = tensorBinding_;
} else {
result.tensorBinding_ = tensorBindingBuilder_.build();
}
result.filename_ = filename_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.AssetFile) {
return mergeFrom((tensorflow.serving.Manifest.AssetFile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.AssetFile other) {
if (other == tensorflow.serving.Manifest.AssetFile.getDefaultInstance()) return this;
if (other.hasTensorBinding()) {
mergeTensorBinding(other.getTensorBinding());
}
if (!other.getFilename().isEmpty()) {
filename_ = other.filename_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.AssetFile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.AssetFile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tensorflow.serving.Manifest.TensorBinding tensorBinding_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> tensorBindingBuilder_;
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public boolean hasTensorBinding() {
return tensorBindingBuilder_ != null || tensorBinding_ != null;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getTensorBinding() {
if (tensorBindingBuilder_ == null) {
return tensorBinding_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : tensorBinding_;
} else {
return tensorBindingBuilder_.getMessage();
}
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public Builder setTensorBinding(tensorflow.serving.Manifest.TensorBinding value) {
if (tensorBindingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tensorBinding_ = value;
onChanged();
} else {
tensorBindingBuilder_.setMessage(value);
}
return this;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public Builder setTensorBinding(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (tensorBindingBuilder_ == null) {
tensorBinding_ = builderForValue.build();
onChanged();
} else {
tensorBindingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public Builder mergeTensorBinding(tensorflow.serving.Manifest.TensorBinding value) {
if (tensorBindingBuilder_ == null) {
if (tensorBinding_ != null) {
tensorBinding_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(tensorBinding_).mergeFrom(value).buildPartial();
} else {
tensorBinding_ = value;
}
onChanged();
} else {
tensorBindingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public Builder clearTensorBinding() {
if (tensorBindingBuilder_ == null) {
tensorBinding_ = null;
onChanged();
} else {
tensorBinding_ = null;
tensorBindingBuilder_ = null;
}
return this;
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getTensorBindingBuilder() {
onChanged();
return getTensorBindingFieldBuilder().getBuilder();
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getTensorBindingOrBuilder() {
if (tensorBindingBuilder_ != null) {
return tensorBindingBuilder_.getMessageOrBuilder();
} else {
return tensorBinding_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : tensorBinding_;
}
}
/**
*
* The tensor to bind the asset filename to.
*
*
* .tensorflow.serving.TensorBinding tensor_binding = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getTensorBindingFieldBuilder() {
if (tensorBindingBuilder_ == null) {
tensorBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getTensorBinding(),
getParentForChildren(),
isClean());
tensorBinding_ = null;
}
return tensorBindingBuilder_;
}
private java.lang.Object filename_ = "";
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public java.lang.String getFilename() {
java.lang.Object ref = filename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public com.google.protobuf.ByteString
getFilenameBytes() {
java.lang.Object ref = filename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public Builder setFilename(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filename_ = value;
onChanged();
return this;
}
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public Builder clearFilename() {
filename_ = getDefaultInstance().getFilename();
onChanged();
return this;
}
/**
*
* The filename within the assets directory. Note: does not include the base
* path or asset directory prefix. Base paths can and will change when models
* are deployed for serving.
*
*
* string filename = 2;
*/
public Builder setFilenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filename_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.AssetFile)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.AssetFile)
private static final tensorflow.serving.Manifest.AssetFile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.AssetFile();
}
public static tensorflow.serving.Manifest.AssetFile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AssetFile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AssetFile(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.AssetFile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.Signature)
com.google.protobuf.MessageOrBuilder {
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
boolean hasRegressionSignature();
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
tensorflow.serving.Manifest.RegressionSignature getRegressionSignature();
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
tensorflow.serving.Manifest.RegressionSignatureOrBuilder getRegressionSignatureOrBuilder();
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
boolean hasClassificationSignature();
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
tensorflow.serving.Manifest.ClassificationSignature getClassificationSignature();
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
tensorflow.serving.Manifest.ClassificationSignatureOrBuilder getClassificationSignatureOrBuilder();
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
boolean hasGenericSignature();
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
tensorflow.serving.Manifest.GenericSignature getGenericSignature();
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
tensorflow.serving.Manifest.GenericSignatureOrBuilder getGenericSignatureOrBuilder();
public tensorflow.serving.Manifest.Signature.TypeCase getTypeCase();
}
/**
*
* A Signature specifies the inputs and outputs of commonly used graphs.
*
*
* Protobuf type {@code tensorflow.serving.Signature}
*/
public static final class Signature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.Signature)
SignatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use Signature.newBuilder() to construct.
private Signature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Signature() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Signature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tensorflow.serving.Manifest.RegressionSignature.Builder subBuilder = null;
if (typeCase_ == 1) {
subBuilder = ((tensorflow.serving.Manifest.RegressionSignature) type_).toBuilder();
}
type_ =
input.readMessage(tensorflow.serving.Manifest.RegressionSignature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tensorflow.serving.Manifest.RegressionSignature) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 1;
break;
}
case 18: {
tensorflow.serving.Manifest.ClassificationSignature.Builder subBuilder = null;
if (typeCase_ == 2) {
subBuilder = ((tensorflow.serving.Manifest.ClassificationSignature) type_).toBuilder();
}
type_ =
input.readMessage(tensorflow.serving.Manifest.ClassificationSignature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tensorflow.serving.Manifest.ClassificationSignature) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 2;
break;
}
case 26: {
tensorflow.serving.Manifest.GenericSignature.Builder subBuilder = null;
if (typeCase_ == 3) {
subBuilder = ((tensorflow.serving.Manifest.GenericSignature) type_).toBuilder();
}
type_ =
input.readMessage(tensorflow.serving.Manifest.GenericSignature.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((tensorflow.serving.Manifest.GenericSignature) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 3;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.Signature.class, tensorflow.serving.Manifest.Signature.Builder.class);
}
private int typeCase_ = 0;
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite {
REGRESSION_SIGNATURE(1),
CLASSIFICATION_SIGNATURE(2),
GENERIC_SIGNATURE(3),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 1: return REGRESSION_SIGNATURE;
case 2: return CLASSIFICATION_SIGNATURE;
case 3: return GENERIC_SIGNATURE;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int REGRESSION_SIGNATURE_FIELD_NUMBER = 1;
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public boolean hasRegressionSignature() {
return typeCase_ == 1;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public tensorflow.serving.Manifest.RegressionSignature getRegressionSignature() {
if (typeCase_ == 1) {
return (tensorflow.serving.Manifest.RegressionSignature) type_;
}
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public tensorflow.serving.Manifest.RegressionSignatureOrBuilder getRegressionSignatureOrBuilder() {
if (typeCase_ == 1) {
return (tensorflow.serving.Manifest.RegressionSignature) type_;
}
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
public static final int CLASSIFICATION_SIGNATURE_FIELD_NUMBER = 2;
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public boolean hasClassificationSignature() {
return typeCase_ == 2;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public tensorflow.serving.Manifest.ClassificationSignature getClassificationSignature() {
if (typeCase_ == 2) {
return (tensorflow.serving.Manifest.ClassificationSignature) type_;
}
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public tensorflow.serving.Manifest.ClassificationSignatureOrBuilder getClassificationSignatureOrBuilder() {
if (typeCase_ == 2) {
return (tensorflow.serving.Manifest.ClassificationSignature) type_;
}
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
public static final int GENERIC_SIGNATURE_FIELD_NUMBER = 3;
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public boolean hasGenericSignature() {
return typeCase_ == 3;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public tensorflow.serving.Manifest.GenericSignature getGenericSignature() {
if (typeCase_ == 3) {
return (tensorflow.serving.Manifest.GenericSignature) type_;
}
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public tensorflow.serving.Manifest.GenericSignatureOrBuilder getGenericSignatureOrBuilder() {
if (typeCase_ == 3) {
return (tensorflow.serving.Manifest.GenericSignature) type_;
}
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (typeCase_ == 1) {
output.writeMessage(1, (tensorflow.serving.Manifest.RegressionSignature) type_);
}
if (typeCase_ == 2) {
output.writeMessage(2, (tensorflow.serving.Manifest.ClassificationSignature) type_);
}
if (typeCase_ == 3) {
output.writeMessage(3, (tensorflow.serving.Manifest.GenericSignature) type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (typeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tensorflow.serving.Manifest.RegressionSignature) type_);
}
if (typeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tensorflow.serving.Manifest.ClassificationSignature) type_);
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tensorflow.serving.Manifest.GenericSignature) type_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.Signature)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.Signature other = (tensorflow.serving.Manifest.Signature) obj;
boolean result = true;
result = result && getTypeCase().equals(
other.getTypeCase());
if (!result) return false;
switch (typeCase_) {
case 1:
result = result && getRegressionSignature()
.equals(other.getRegressionSignature());
break;
case 2:
result = result && getClassificationSignature()
.equals(other.getClassificationSignature());
break;
case 3:
result = result && getGenericSignature()
.equals(other.getGenericSignature());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (typeCase_) {
case 1:
hash = (37 * hash) + REGRESSION_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getRegressionSignature().hashCode();
break;
case 2:
hash = (37 * hash) + CLASSIFICATION_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getClassificationSignature().hashCode();
break;
case 3:
hash = (37 * hash) + GENERIC_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getGenericSignature().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.Signature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.Signature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.Signature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signature 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 tensorflow.serving.Manifest.Signature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signature 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 tensorflow.serving.Manifest.Signature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.Signature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.Signature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A Signature specifies the inputs and outputs of commonly used graphs.
*
*
* Protobuf type {@code tensorflow.serving.Signature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.Signature)
tensorflow.serving.Manifest.SignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.Signature.class, tensorflow.serving.Manifest.Signature.Builder.class);
}
// Construct using tensorflow.serving.Manifest.Signature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_Signature_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signature getDefaultInstanceForType() {
return tensorflow.serving.Manifest.Signature.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.Signature build() {
tensorflow.serving.Manifest.Signature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signature buildPartial() {
tensorflow.serving.Manifest.Signature result = new tensorflow.serving.Manifest.Signature(this);
if (typeCase_ == 1) {
if (regressionSignatureBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = regressionSignatureBuilder_.build();
}
}
if (typeCase_ == 2) {
if (classificationSignatureBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = classificationSignatureBuilder_.build();
}
}
if (typeCase_ == 3) {
if (genericSignatureBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = genericSignatureBuilder_.build();
}
}
result.typeCase_ = typeCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.Signature) {
return mergeFrom((tensorflow.serving.Manifest.Signature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.Signature other) {
if (other == tensorflow.serving.Manifest.Signature.getDefaultInstance()) return this;
switch (other.getTypeCase()) {
case REGRESSION_SIGNATURE: {
mergeRegressionSignature(other.getRegressionSignature());
break;
}
case CLASSIFICATION_SIGNATURE: {
mergeClassificationSignature(other.getClassificationSignature());
break;
}
case GENERIC_SIGNATURE: {
mergeGenericSignature(other.getGenericSignature());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.Signature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.Signature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.RegressionSignature, tensorflow.serving.Manifest.RegressionSignature.Builder, tensorflow.serving.Manifest.RegressionSignatureOrBuilder> regressionSignatureBuilder_;
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public boolean hasRegressionSignature() {
return typeCase_ == 1;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public tensorflow.serving.Manifest.RegressionSignature getRegressionSignature() {
if (regressionSignatureBuilder_ == null) {
if (typeCase_ == 1) {
return (tensorflow.serving.Manifest.RegressionSignature) type_;
}
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
} else {
if (typeCase_ == 1) {
return regressionSignatureBuilder_.getMessage();
}
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public Builder setRegressionSignature(tensorflow.serving.Manifest.RegressionSignature value) {
if (regressionSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
regressionSignatureBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public Builder setRegressionSignature(
tensorflow.serving.Manifest.RegressionSignature.Builder builderForValue) {
if (regressionSignatureBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
regressionSignatureBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public Builder mergeRegressionSignature(tensorflow.serving.Manifest.RegressionSignature value) {
if (regressionSignatureBuilder_ == null) {
if (typeCase_ == 1 &&
type_ != tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance()) {
type_ = tensorflow.serving.Manifest.RegressionSignature.newBuilder((tensorflow.serving.Manifest.RegressionSignature) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 1) {
regressionSignatureBuilder_.mergeFrom(value);
}
regressionSignatureBuilder_.setMessage(value);
}
typeCase_ = 1;
return this;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public Builder clearRegressionSignature() {
if (regressionSignatureBuilder_ == null) {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 1) {
typeCase_ = 0;
type_ = null;
}
regressionSignatureBuilder_.clear();
}
return this;
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public tensorflow.serving.Manifest.RegressionSignature.Builder getRegressionSignatureBuilder() {
return getRegressionSignatureFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
public tensorflow.serving.Manifest.RegressionSignatureOrBuilder getRegressionSignatureOrBuilder() {
if ((typeCase_ == 1) && (regressionSignatureBuilder_ != null)) {
return regressionSignatureBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 1) {
return (tensorflow.serving.Manifest.RegressionSignature) type_;
}
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.RegressionSignature regression_signature = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.RegressionSignature, tensorflow.serving.Manifest.RegressionSignature.Builder, tensorflow.serving.Manifest.RegressionSignatureOrBuilder>
getRegressionSignatureFieldBuilder() {
if (regressionSignatureBuilder_ == null) {
if (!(typeCase_ == 1)) {
type_ = tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
regressionSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.RegressionSignature, tensorflow.serving.Manifest.RegressionSignature.Builder, tensorflow.serving.Manifest.RegressionSignatureOrBuilder>(
(tensorflow.serving.Manifest.RegressionSignature) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 1;
onChanged();;
return regressionSignatureBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.ClassificationSignature, tensorflow.serving.Manifest.ClassificationSignature.Builder, tensorflow.serving.Manifest.ClassificationSignatureOrBuilder> classificationSignatureBuilder_;
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public boolean hasClassificationSignature() {
return typeCase_ == 2;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public tensorflow.serving.Manifest.ClassificationSignature getClassificationSignature() {
if (classificationSignatureBuilder_ == null) {
if (typeCase_ == 2) {
return (tensorflow.serving.Manifest.ClassificationSignature) type_;
}
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
} else {
if (typeCase_ == 2) {
return classificationSignatureBuilder_.getMessage();
}
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public Builder setClassificationSignature(tensorflow.serving.Manifest.ClassificationSignature value) {
if (classificationSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
classificationSignatureBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public Builder setClassificationSignature(
tensorflow.serving.Manifest.ClassificationSignature.Builder builderForValue) {
if (classificationSignatureBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
classificationSignatureBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public Builder mergeClassificationSignature(tensorflow.serving.Manifest.ClassificationSignature value) {
if (classificationSignatureBuilder_ == null) {
if (typeCase_ == 2 &&
type_ != tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance()) {
type_ = tensorflow.serving.Manifest.ClassificationSignature.newBuilder((tensorflow.serving.Manifest.ClassificationSignature) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 2) {
classificationSignatureBuilder_.mergeFrom(value);
}
classificationSignatureBuilder_.setMessage(value);
}
typeCase_ = 2;
return this;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public Builder clearClassificationSignature() {
if (classificationSignatureBuilder_ == null) {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 2) {
typeCase_ = 0;
type_ = null;
}
classificationSignatureBuilder_.clear();
}
return this;
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public tensorflow.serving.Manifest.ClassificationSignature.Builder getClassificationSignatureBuilder() {
return getClassificationSignatureFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
public tensorflow.serving.Manifest.ClassificationSignatureOrBuilder getClassificationSignatureOrBuilder() {
if ((typeCase_ == 2) && (classificationSignatureBuilder_ != null)) {
return classificationSignatureBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 2) {
return (tensorflow.serving.Manifest.ClassificationSignature) type_;
}
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.ClassificationSignature classification_signature = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.ClassificationSignature, tensorflow.serving.Manifest.ClassificationSignature.Builder, tensorflow.serving.Manifest.ClassificationSignatureOrBuilder>
getClassificationSignatureFieldBuilder() {
if (classificationSignatureBuilder_ == null) {
if (!(typeCase_ == 2)) {
type_ = tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
classificationSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.ClassificationSignature, tensorflow.serving.Manifest.ClassificationSignature.Builder, tensorflow.serving.Manifest.ClassificationSignatureOrBuilder>(
(tensorflow.serving.Manifest.ClassificationSignature) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 2;
onChanged();;
return classificationSignatureBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.GenericSignature, tensorflow.serving.Manifest.GenericSignature.Builder, tensorflow.serving.Manifest.GenericSignatureOrBuilder> genericSignatureBuilder_;
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public boolean hasGenericSignature() {
return typeCase_ == 3;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public tensorflow.serving.Manifest.GenericSignature getGenericSignature() {
if (genericSignatureBuilder_ == null) {
if (typeCase_ == 3) {
return (tensorflow.serving.Manifest.GenericSignature) type_;
}
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return genericSignatureBuilder_.getMessage();
}
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public Builder setGenericSignature(tensorflow.serving.Manifest.GenericSignature value) {
if (genericSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
genericSignatureBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public Builder setGenericSignature(
tensorflow.serving.Manifest.GenericSignature.Builder builderForValue) {
if (genericSignatureBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
genericSignatureBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public Builder mergeGenericSignature(tensorflow.serving.Manifest.GenericSignature value) {
if (genericSignatureBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != tensorflow.serving.Manifest.GenericSignature.getDefaultInstance()) {
type_ = tensorflow.serving.Manifest.GenericSignature.newBuilder((tensorflow.serving.Manifest.GenericSignature) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
genericSignatureBuilder_.mergeFrom(value);
}
genericSignatureBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public Builder clearGenericSignature() {
if (genericSignatureBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
genericSignatureBuilder_.clear();
}
return this;
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public tensorflow.serving.Manifest.GenericSignature.Builder getGenericSignatureBuilder() {
return getGenericSignatureFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
public tensorflow.serving.Manifest.GenericSignatureOrBuilder getGenericSignatureOrBuilder() {
if ((typeCase_ == 3) && (genericSignatureBuilder_ != null)) {
return genericSignatureBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (tensorflow.serving.Manifest.GenericSignature) type_;
}
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
}
/**
* .tensorflow.serving.GenericSignature generic_signature = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.GenericSignature, tensorflow.serving.Manifest.GenericSignature.Builder, tensorflow.serving.Manifest.GenericSignatureOrBuilder>
getGenericSignatureFieldBuilder() {
if (genericSignatureBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
genericSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.GenericSignature, tensorflow.serving.Manifest.GenericSignature.Builder, tensorflow.serving.Manifest.GenericSignatureOrBuilder>(
(tensorflow.serving.Manifest.GenericSignature) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();;
return genericSignatureBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.Signature)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.Signature)
private static final tensorflow.serving.Manifest.Signature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.Signature();
}
public static tensorflow.serving.Manifest.Signature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Signature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Signature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.Signature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegressionSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.RegressionSignature)
com.google.protobuf.MessageOrBuilder {
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
boolean hasInput();
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
tensorflow.serving.Manifest.TensorBinding getInput();
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder();
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
boolean hasOutput();
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
tensorflow.serving.Manifest.TensorBinding getOutput();
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getOutputOrBuilder();
}
/**
*
* RegressionSignature specifies a graph that takes an input and returns an
* output.
*
*
* Protobuf type {@code tensorflow.serving.RegressionSignature}
*/
public static final class RegressionSignature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.RegressionSignature)
RegressionSignatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegressionSignature.newBuilder() to construct.
private RegressionSignature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegressionSignature() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegressionSignature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (input_ != null) {
subBuilder = input_.toBuilder();
}
input_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(input_);
input_ = subBuilder.buildPartial();
}
break;
}
case 18: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (output_ != null) {
subBuilder = output_.toBuilder();
}
output_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(output_);
output_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_RegressionSignature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_RegressionSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.RegressionSignature.class, tensorflow.serving.Manifest.RegressionSignature.Builder.class);
}
public static final int INPUT_FIELD_NUMBER = 1;
private tensorflow.serving.Manifest.TensorBinding input_;
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public boolean hasInput() {
return input_ != null;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getInput() {
return input_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder() {
return getInput();
}
public static final int OUTPUT_FIELD_NUMBER = 2;
private tensorflow.serving.Manifest.TensorBinding output_;
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public boolean hasOutput() {
return output_ != null;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public tensorflow.serving.Manifest.TensorBinding getOutput() {
return output_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : output_;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getOutputOrBuilder() {
return getOutput();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (input_ != null) {
output.writeMessage(1, getInput());
}
if (output_ != null) {
output.writeMessage(2, getOutput());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (input_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInput());
}
if (output_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOutput());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.RegressionSignature)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.RegressionSignature other = (tensorflow.serving.Manifest.RegressionSignature) obj;
boolean result = true;
result = result && (hasInput() == other.hasInput());
if (hasInput()) {
result = result && getInput()
.equals(other.getInput());
}
result = result && (hasOutput() == other.hasOutput());
if (hasOutput()) {
result = result && getOutput()
.equals(other.getOutput());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (hasOutput()) {
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutput().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.RegressionSignature 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 tensorflow.serving.Manifest.RegressionSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.RegressionSignature 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 tensorflow.serving.Manifest.RegressionSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.RegressionSignature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.RegressionSignature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* RegressionSignature specifies a graph that takes an input and returns an
* output.
*
*
* Protobuf type {@code tensorflow.serving.RegressionSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.RegressionSignature)
tensorflow.serving.Manifest.RegressionSignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_RegressionSignature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_RegressionSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.RegressionSignature.class, tensorflow.serving.Manifest.RegressionSignature.Builder.class);
}
// Construct using tensorflow.serving.Manifest.RegressionSignature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (inputBuilder_ == null) {
input_ = null;
} else {
input_ = null;
inputBuilder_ = null;
}
if (outputBuilder_ == null) {
output_ = null;
} else {
output_ = null;
outputBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_RegressionSignature_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.RegressionSignature getDefaultInstanceForType() {
return tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.RegressionSignature build() {
tensorflow.serving.Manifest.RegressionSignature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.RegressionSignature buildPartial() {
tensorflow.serving.Manifest.RegressionSignature result = new tensorflow.serving.Manifest.RegressionSignature(this);
if (inputBuilder_ == null) {
result.input_ = input_;
} else {
result.input_ = inputBuilder_.build();
}
if (outputBuilder_ == null) {
result.output_ = output_;
} else {
result.output_ = outputBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.RegressionSignature) {
return mergeFrom((tensorflow.serving.Manifest.RegressionSignature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.RegressionSignature other) {
if (other == tensorflow.serving.Manifest.RegressionSignature.getDefaultInstance()) return this;
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (other.hasOutput()) {
mergeOutput(other.getOutput());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.RegressionSignature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.RegressionSignature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tensorflow.serving.Manifest.TensorBinding input_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> inputBuilder_;
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public boolean hasInput() {
return inputBuilder_ != null || input_ != null;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getInput() {
if (inputBuilder_ == null) {
return input_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
} else {
return inputBuilder_.getMessage();
}
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder setInput(tensorflow.serving.Manifest.TensorBinding value) {
if (inputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
onChanged();
} else {
inputBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder setInput(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (inputBuilder_ == null) {
input_ = builderForValue.build();
onChanged();
} else {
inputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder mergeInput(tensorflow.serving.Manifest.TensorBinding value) {
if (inputBuilder_ == null) {
if (input_ != null) {
input_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(input_).mergeFrom(value).buildPartial();
} else {
input_ = value;
}
onChanged();
} else {
inputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder clearInput() {
if (inputBuilder_ == null) {
input_ = null;
onChanged();
} else {
input_ = null;
inputBuilder_ = null;
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getInputBuilder() {
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder() {
if (inputBuilder_ != null) {
return inputBuilder_.getMessageOrBuilder();
} else {
return input_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
}
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getInputFieldBuilder() {
if (inputBuilder_ == null) {
inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getInput(),
getParentForChildren(),
isClean());
input_ = null;
}
return inputBuilder_;
}
private tensorflow.serving.Manifest.TensorBinding output_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> outputBuilder_;
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public boolean hasOutput() {
return outputBuilder_ != null || output_ != null;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public tensorflow.serving.Manifest.TensorBinding getOutput() {
if (outputBuilder_ == null) {
return output_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : output_;
} else {
return outputBuilder_.getMessage();
}
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public Builder setOutput(tensorflow.serving.Manifest.TensorBinding value) {
if (outputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
output_ = value;
onChanged();
} else {
outputBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public Builder setOutput(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (outputBuilder_ == null) {
output_ = builderForValue.build();
onChanged();
} else {
outputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public Builder mergeOutput(tensorflow.serving.Manifest.TensorBinding value) {
if (outputBuilder_ == null) {
if (output_ != null) {
output_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(output_).mergeFrom(value).buildPartial();
} else {
output_ = value;
}
onChanged();
} else {
outputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public Builder clearOutput() {
if (outputBuilder_ == null) {
output_ = null;
onChanged();
} else {
output_ = null;
outputBuilder_ = null;
}
return this;
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getOutputBuilder() {
onChanged();
return getOutputFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getOutputOrBuilder() {
if (outputBuilder_ != null) {
return outputBuilder_.getMessageOrBuilder();
} else {
return output_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : output_;
}
}
/**
* .tensorflow.serving.TensorBinding output = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getOutputFieldBuilder() {
if (outputBuilder_ == null) {
outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getOutput(),
getParentForChildren(),
isClean());
output_ = null;
}
return outputBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.RegressionSignature)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.RegressionSignature)
private static final tensorflow.serving.Manifest.RegressionSignature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.RegressionSignature();
}
public static tensorflow.serving.Manifest.RegressionSignature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegressionSignature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegressionSignature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.RegressionSignature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClassificationSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.ClassificationSignature)
com.google.protobuf.MessageOrBuilder {
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
boolean hasInput();
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
tensorflow.serving.Manifest.TensorBinding getInput();
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder();
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
boolean hasClasses();
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
tensorflow.serving.Manifest.TensorBinding getClasses();
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getClassesOrBuilder();
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
boolean hasScores();
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
tensorflow.serving.Manifest.TensorBinding getScores();
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
tensorflow.serving.Manifest.TensorBindingOrBuilder getScoresOrBuilder();
}
/**
*
* ClassificationSignature specifies a graph that takes an input and returns
* classes and their scores.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* Protobuf type {@code tensorflow.serving.ClassificationSignature}
*/
public static final class ClassificationSignature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.ClassificationSignature)
ClassificationSignatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClassificationSignature.newBuilder() to construct.
private ClassificationSignature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClassificationSignature() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClassificationSignature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (input_ != null) {
subBuilder = input_.toBuilder();
}
input_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(input_);
input_ = subBuilder.buildPartial();
}
break;
}
case 18: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (classes_ != null) {
subBuilder = classes_.toBuilder();
}
classes_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(classes_);
classes_ = subBuilder.buildPartial();
}
break;
}
case 26: {
tensorflow.serving.Manifest.TensorBinding.Builder subBuilder = null;
if (scores_ != null) {
subBuilder = scores_.toBuilder();
}
scores_ = input.readMessage(tensorflow.serving.Manifest.TensorBinding.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scores_);
scores_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_ClassificationSignature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_ClassificationSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.ClassificationSignature.class, tensorflow.serving.Manifest.ClassificationSignature.Builder.class);
}
public static final int INPUT_FIELD_NUMBER = 1;
private tensorflow.serving.Manifest.TensorBinding input_;
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public boolean hasInput() {
return input_ != null;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getInput() {
return input_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder() {
return getInput();
}
public static final int CLASSES_FIELD_NUMBER = 2;
private tensorflow.serving.Manifest.TensorBinding classes_;
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public boolean hasClasses() {
return classes_ != null;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public tensorflow.serving.Manifest.TensorBinding getClasses() {
return classes_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : classes_;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getClassesOrBuilder() {
return getClasses();
}
public static final int SCORES_FIELD_NUMBER = 3;
private tensorflow.serving.Manifest.TensorBinding scores_;
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public boolean hasScores() {
return scores_ != null;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public tensorflow.serving.Manifest.TensorBinding getScores() {
return scores_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : scores_;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getScoresOrBuilder() {
return getScores();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (input_ != null) {
output.writeMessage(1, getInput());
}
if (classes_ != null) {
output.writeMessage(2, getClasses());
}
if (scores_ != null) {
output.writeMessage(3, getScores());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (input_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getInput());
}
if (classes_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getClasses());
}
if (scores_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getScores());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.ClassificationSignature)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.ClassificationSignature other = (tensorflow.serving.Manifest.ClassificationSignature) obj;
boolean result = true;
result = result && (hasInput() == other.hasInput());
if (hasInput()) {
result = result && getInput()
.equals(other.getInput());
}
result = result && (hasClasses() == other.hasClasses());
if (hasClasses()) {
result = result && getClasses()
.equals(other.getClasses());
}
result = result && (hasScores() == other.hasScores());
if (hasScores()) {
result = result && getScores()
.equals(other.getScores());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
if (hasClasses()) {
hash = (37 * hash) + CLASSES_FIELD_NUMBER;
hash = (53 * hash) + getClasses().hashCode();
}
if (hasScores()) {
hash = (37 * hash) + SCORES_FIELD_NUMBER;
hash = (53 * hash) + getScores().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.ClassificationSignature 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 tensorflow.serving.Manifest.ClassificationSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.ClassificationSignature 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 tensorflow.serving.Manifest.ClassificationSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.ClassificationSignature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.ClassificationSignature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ClassificationSignature specifies a graph that takes an input and returns
* classes and their scores.
* WARNING(break-tutorial-inline-code): The following code snippet is
* in-lined in tutorials, please update tutorial documents accordingly
* whenever code changes.
*
*
* Protobuf type {@code tensorflow.serving.ClassificationSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.ClassificationSignature)
tensorflow.serving.Manifest.ClassificationSignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_ClassificationSignature_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_ClassificationSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.ClassificationSignature.class, tensorflow.serving.Manifest.ClassificationSignature.Builder.class);
}
// Construct using tensorflow.serving.Manifest.ClassificationSignature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (inputBuilder_ == null) {
input_ = null;
} else {
input_ = null;
inputBuilder_ = null;
}
if (classesBuilder_ == null) {
classes_ = null;
} else {
classes_ = null;
classesBuilder_ = null;
}
if (scoresBuilder_ == null) {
scores_ = null;
} else {
scores_ = null;
scoresBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_ClassificationSignature_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.ClassificationSignature getDefaultInstanceForType() {
return tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.ClassificationSignature build() {
tensorflow.serving.Manifest.ClassificationSignature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.ClassificationSignature buildPartial() {
tensorflow.serving.Manifest.ClassificationSignature result = new tensorflow.serving.Manifest.ClassificationSignature(this);
if (inputBuilder_ == null) {
result.input_ = input_;
} else {
result.input_ = inputBuilder_.build();
}
if (classesBuilder_ == null) {
result.classes_ = classes_;
} else {
result.classes_ = classesBuilder_.build();
}
if (scoresBuilder_ == null) {
result.scores_ = scores_;
} else {
result.scores_ = scoresBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.ClassificationSignature) {
return mergeFrom((tensorflow.serving.Manifest.ClassificationSignature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.ClassificationSignature other) {
if (other == tensorflow.serving.Manifest.ClassificationSignature.getDefaultInstance()) return this;
if (other.hasInput()) {
mergeInput(other.getInput());
}
if (other.hasClasses()) {
mergeClasses(other.getClasses());
}
if (other.hasScores()) {
mergeScores(other.getScores());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.ClassificationSignature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.ClassificationSignature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private tensorflow.serving.Manifest.TensorBinding input_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> inputBuilder_;
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public boolean hasInput() {
return inputBuilder_ != null || input_ != null;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getInput() {
if (inputBuilder_ == null) {
return input_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
} else {
return inputBuilder_.getMessage();
}
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder setInput(tensorflow.serving.Manifest.TensorBinding value) {
if (inputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
input_ = value;
onChanged();
} else {
inputBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder setInput(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (inputBuilder_ == null) {
input_ = builderForValue.build();
onChanged();
} else {
inputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder mergeInput(tensorflow.serving.Manifest.TensorBinding value) {
if (inputBuilder_ == null) {
if (input_ != null) {
input_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(input_).mergeFrom(value).buildPartial();
} else {
input_ = value;
}
onChanged();
} else {
inputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public Builder clearInput() {
if (inputBuilder_ == null) {
input_ = null;
onChanged();
} else {
input_ = null;
inputBuilder_ = null;
}
return this;
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getInputBuilder() {
onChanged();
return getInputFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getInputOrBuilder() {
if (inputBuilder_ != null) {
return inputBuilder_.getMessageOrBuilder();
} else {
return input_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : input_;
}
}
/**
* .tensorflow.serving.TensorBinding input = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getInputFieldBuilder() {
if (inputBuilder_ == null) {
inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getInput(),
getParentForChildren(),
isClean());
input_ = null;
}
return inputBuilder_;
}
private tensorflow.serving.Manifest.TensorBinding classes_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> classesBuilder_;
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public boolean hasClasses() {
return classesBuilder_ != null || classes_ != null;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public tensorflow.serving.Manifest.TensorBinding getClasses() {
if (classesBuilder_ == null) {
return classes_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : classes_;
} else {
return classesBuilder_.getMessage();
}
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public Builder setClasses(tensorflow.serving.Manifest.TensorBinding value) {
if (classesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
classes_ = value;
onChanged();
} else {
classesBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public Builder setClasses(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (classesBuilder_ == null) {
classes_ = builderForValue.build();
onChanged();
} else {
classesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public Builder mergeClasses(tensorflow.serving.Manifest.TensorBinding value) {
if (classesBuilder_ == null) {
if (classes_ != null) {
classes_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(classes_).mergeFrom(value).buildPartial();
} else {
classes_ = value;
}
onChanged();
} else {
classesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public Builder clearClasses() {
if (classesBuilder_ == null) {
classes_ = null;
onChanged();
} else {
classes_ = null;
classesBuilder_ = null;
}
return this;
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getClassesBuilder() {
onChanged();
return getClassesFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getClassesOrBuilder() {
if (classesBuilder_ != null) {
return classesBuilder_.getMessageOrBuilder();
} else {
return classes_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : classes_;
}
}
/**
* .tensorflow.serving.TensorBinding classes = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getClassesFieldBuilder() {
if (classesBuilder_ == null) {
classesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getClasses(),
getParentForChildren(),
isClean());
classes_ = null;
}
return classesBuilder_;
}
private tensorflow.serving.Manifest.TensorBinding scores_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder> scoresBuilder_;
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public boolean hasScores() {
return scoresBuilder_ != null || scores_ != null;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public tensorflow.serving.Manifest.TensorBinding getScores() {
if (scoresBuilder_ == null) {
return scores_ == null ? tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : scores_;
} else {
return scoresBuilder_.getMessage();
}
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public Builder setScores(tensorflow.serving.Manifest.TensorBinding value) {
if (scoresBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scores_ = value;
onChanged();
} else {
scoresBuilder_.setMessage(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public Builder setScores(
tensorflow.serving.Manifest.TensorBinding.Builder builderForValue) {
if (scoresBuilder_ == null) {
scores_ = builderForValue.build();
onChanged();
} else {
scoresBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public Builder mergeScores(tensorflow.serving.Manifest.TensorBinding value) {
if (scoresBuilder_ == null) {
if (scores_ != null) {
scores_ =
tensorflow.serving.Manifest.TensorBinding.newBuilder(scores_).mergeFrom(value).buildPartial();
} else {
scores_ = value;
}
onChanged();
} else {
scoresBuilder_.mergeFrom(value);
}
return this;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public Builder clearScores() {
if (scoresBuilder_ == null) {
scores_ = null;
onChanged();
} else {
scores_ = null;
scoresBuilder_ = null;
}
return this;
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public tensorflow.serving.Manifest.TensorBinding.Builder getScoresBuilder() {
onChanged();
return getScoresFieldBuilder().getBuilder();
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
public tensorflow.serving.Manifest.TensorBindingOrBuilder getScoresOrBuilder() {
if (scoresBuilder_ != null) {
return scoresBuilder_.getMessageOrBuilder();
} else {
return scores_ == null ?
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance() : scores_;
}
}
/**
* .tensorflow.serving.TensorBinding scores = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>
getScoresFieldBuilder() {
if (scoresBuilder_ == null) {
scoresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.serving.Manifest.TensorBinding, tensorflow.serving.Manifest.TensorBinding.Builder, tensorflow.serving.Manifest.TensorBindingOrBuilder>(
getScores(),
getParentForChildren(),
isClean());
scores_ = null;
}
return scoresBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.ClassificationSignature)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.ClassificationSignature)
private static final tensorflow.serving.Manifest.ClassificationSignature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.ClassificationSignature();
}
public static tensorflow.serving.Manifest.ClassificationSignature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClassificationSignature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClassificationSignature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.ClassificationSignature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GenericSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.GenericSignature)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
int getMapCount();
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
boolean containsMap(
java.lang.String key);
/**
* Use {@link #getMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMap();
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
java.util.Map
getMapMap();
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
tensorflow.serving.Manifest.TensorBinding getMapOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.TensorBinding defaultValue);
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
tensorflow.serving.Manifest.TensorBinding getMapOrThrow(
java.lang.String key);
}
/**
*
* GenericSignature specifies a map from logical name to Tensor name.
* Typical application of GenericSignature is to use a single GenericSignature
* that includes all of the Tensor nodes and target names that may be useful at
* serving, analysis or debugging time. The recommended name for this signature
* in the ModelManifest is "generic_bindings".
*
*
* Protobuf type {@code tensorflow.serving.GenericSignature}
*/
public static final class GenericSignature extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.GenericSignature)
GenericSignatureOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenericSignature.newBuilder() to construct.
private GenericSignature(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenericSignature() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenericSignature(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
map_ = com.google.protobuf.MapField.newMapField(
MapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
map__ = input.readMessage(
MapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
map_.getMutableMap().put(
map__.getKey(), map__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.GenericSignature.class, tensorflow.serving.Manifest.GenericSignature.Builder.class);
}
public static final int MAP_FIELD_NUMBER = 1;
private static final class MapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, tensorflow.serving.Manifest.TensorBinding> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_MapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
tensorflow.serving.Manifest.TensorBinding.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, tensorflow.serving.Manifest.TensorBinding> map_;
private com.google.protobuf.MapField
internalGetMap() {
if (map_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MapDefaultEntryHolder.defaultEntry);
}
return map_;
}
public int getMapCount() {
return internalGetMap().getMap().size();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public boolean containsMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap().getMap().containsKey(key);
}
/**
* Use {@link #getMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap() {
return getMapMap();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public java.util.Map getMapMap() {
return internalGetMap().getMap();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getMapOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.TensorBinding defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMap(),
MapDefaultEntryHolder.defaultEntry,
1);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
map__ = MapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, map__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.serving.Manifest.GenericSignature)) {
return super.equals(obj);
}
tensorflow.serving.Manifest.GenericSignature other = (tensorflow.serving.Manifest.GenericSignature) obj;
boolean result = true;
result = result && internalGetMap().equals(
other.internalGetMap());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetMap().getMap().isEmpty()) {
hash = (37 * hash) + MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetMap().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.GenericSignature 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 tensorflow.serving.Manifest.GenericSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.GenericSignature 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 tensorflow.serving.Manifest.GenericSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.Manifest.GenericSignature parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tensorflow.serving.Manifest.GenericSignature prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GenericSignature specifies a map from logical name to Tensor name.
* Typical application of GenericSignature is to use a single GenericSignature
* that includes all of the Tensor nodes and target names that may be useful at
* serving, analysis or debugging time. The recommended name for this signature
* in the ModelManifest is "generic_bindings".
*
*
* Protobuf type {@code tensorflow.serving.GenericSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.GenericSignature)
tensorflow.serving.Manifest.GenericSignatureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.Manifest.GenericSignature.class, tensorflow.serving.Manifest.GenericSignature.Builder.class);
}
// Construct using tensorflow.serving.Manifest.GenericSignature.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableMap().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.Manifest.internal_static_tensorflow_serving_GenericSignature_descriptor;
}
@java.lang.Override
public tensorflow.serving.Manifest.GenericSignature getDefaultInstanceForType() {
return tensorflow.serving.Manifest.GenericSignature.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.Manifest.GenericSignature build() {
tensorflow.serving.Manifest.GenericSignature result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.Manifest.GenericSignature buildPartial() {
tensorflow.serving.Manifest.GenericSignature result = new tensorflow.serving.Manifest.GenericSignature(this);
int from_bitField0_ = bitField0_;
result.map_ = internalGetMap();
result.map_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tensorflow.serving.Manifest.GenericSignature) {
return mergeFrom((tensorflow.serving.Manifest.GenericSignature)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.Manifest.GenericSignature other) {
if (other == tensorflow.serving.Manifest.GenericSignature.getDefaultInstance()) return this;
internalGetMutableMap().mergeFrom(
other.internalGetMap());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
tensorflow.serving.Manifest.GenericSignature parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.Manifest.GenericSignature) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, tensorflow.serving.Manifest.TensorBinding> map_;
private com.google.protobuf.MapField
internalGetMap() {
if (map_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MapDefaultEntryHolder.defaultEntry);
}
return map_;
}
private com.google.protobuf.MapField
internalGetMutableMap() {
onChanged();;
if (map_ == null) {
map_ = com.google.protobuf.MapField.newMapField(
MapDefaultEntryHolder.defaultEntry);
}
if (!map_.isMutable()) {
map_ = map_.copy();
}
return map_;
}
public int getMapCount() {
return internalGetMap().getMap().size();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public boolean containsMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap().getMap().containsKey(key);
}
/**
* Use {@link #getMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap() {
return getMapMap();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public java.util.Map getMapMap() {
return internalGetMap().getMap();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getMapOrDefault(
java.lang.String key,
tensorflow.serving.Manifest.TensorBinding defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public tensorflow.serving.Manifest.TensorBinding getMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMap() {
internalGetMutableMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public Builder removeMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMap() {
return internalGetMutableMap().getMutableMap();
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public Builder putMap(
java.lang.String key,
tensorflow.serving.Manifest.TensorBinding value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .tensorflow.serving.TensorBinding> map = 1;
*/
public Builder putAllMap(
java.util.Map values) {
internalGetMutableMap().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.serving.GenericSignature)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.GenericSignature)
private static final tensorflow.serving.Manifest.GenericSignature DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.Manifest.GenericSignature();
}
public static tensorflow.serving.Manifest.GenericSignature getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenericSignature parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenericSignature(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tensorflow.serving.Manifest.GenericSignature getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_Signatures_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_Signatures_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_TensorBinding_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_TensorBinding_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_AssetFile_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_AssetFile_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_Signature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_Signature_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_RegressionSignature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_RegressionSignature_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_ClassificationSignature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_ClassificationSignature_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_GenericSignature_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_GenericSignature_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_GenericSignature_MapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_GenericSignature_MapEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n0tensorflow/contrib/session_bundle/mani" +
"fest.proto\022\022tensorflow.serving\"\354\001\n\nSigna" +
"tures\0228\n\021default_signature\030\001 \001(\0132\035.tenso" +
"rflow.serving.Signature\022M\n\020named_signatu" +
"res\030\002 \003(\01323.tensorflow.serving.Signature" +
"s.NamedSignaturesEntry\032U\n\024NamedSignature" +
"sEntry\022\013\n\003key\030\001 \001(\t\022,\n\005value\030\002 \001(\0132\035.ten" +
"sorflow.serving.Signature:\0028\001\"$\n\rTensorB" +
"inding\022\023\n\013tensor_name\030\001 \001(\t\"X\n\tAssetFile" +
"\0229\n\016tensor_binding\030\001 \001(\0132!.tensorflow.se" +
"rving.TensorBinding\022\020\n\010filename\030\002 \001(\t\"\360\001" +
"\n\tSignature\022G\n\024regression_signature\030\001 \001(" +
"\0132\'.tensorflow.serving.RegressionSignatu" +
"reH\000\022O\n\030classification_signature\030\002 \001(\0132+" +
".tensorflow.serving.ClassificationSignat" +
"ureH\000\022A\n\021generic_signature\030\003 \001(\0132$.tenso" +
"rflow.serving.GenericSignatureH\000B\006\n\004type" +
"\"z\n\023RegressionSignature\0220\n\005input\030\001 \001(\0132!" +
".tensorflow.serving.TensorBinding\0221\n\006out" +
"put\030\002 \001(\0132!.tensorflow.serving.TensorBin" +
"ding\"\262\001\n\027ClassificationSignature\0220\n\005inpu" +
"t\030\001 \001(\0132!.tensorflow.serving.TensorBindi" +
"ng\0222\n\007classes\030\002 \001(\0132!.tensorflow.serving" +
".TensorBinding\0221\n\006scores\030\003 \001(\0132!.tensorf" +
"low.serving.TensorBinding\"\235\001\n\020GenericSig" +
"nature\022:\n\003map\030\001 \003(\0132-.tensorflow.serving" +
".GenericSignature.MapEntry\032M\n\010MapEntry\022\013" +
"\n\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.tensorflow." +
"serving.TensorBinding:\0028\001b\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[] {
}, assigner);
internal_static_tensorflow_serving_Signatures_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_serving_Signatures_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_Signatures_descriptor,
new java.lang.String[] { "DefaultSignature", "NamedSignatures", });
internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_descriptor =
internal_static_tensorflow_serving_Signatures_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_Signatures_NamedSignaturesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_tensorflow_serving_TensorBinding_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tensorflow_serving_TensorBinding_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_TensorBinding_descriptor,
new java.lang.String[] { "TensorName", });
internal_static_tensorflow_serving_AssetFile_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tensorflow_serving_AssetFile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_AssetFile_descriptor,
new java.lang.String[] { "TensorBinding", "Filename", });
internal_static_tensorflow_serving_Signature_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_tensorflow_serving_Signature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_Signature_descriptor,
new java.lang.String[] { "RegressionSignature", "ClassificationSignature", "GenericSignature", "Type", });
internal_static_tensorflow_serving_RegressionSignature_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_tensorflow_serving_RegressionSignature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_RegressionSignature_descriptor,
new java.lang.String[] { "Input", "Output", });
internal_static_tensorflow_serving_ClassificationSignature_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_tensorflow_serving_ClassificationSignature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_ClassificationSignature_descriptor,
new java.lang.String[] { "Input", "Classes", "Scores", });
internal_static_tensorflow_serving_GenericSignature_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_tensorflow_serving_GenericSignature_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_GenericSignature_descriptor,
new java.lang.String[] { "Map", });
internal_static_tensorflow_serving_GenericSignature_MapEntry_descriptor =
internal_static_tensorflow_serving_GenericSignature_descriptor.getNestedTypes().get(0);
internal_static_tensorflow_serving_GenericSignature_MapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_GenericSignature_MapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}