tensorflow.serving.ClassRegistrationTest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow_serving/util/class_registration_test.proto
package tensorflow.serving;
public final class ClassRegistrationTest {
private ClassRegistrationTest() {}
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 Config1OrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.Config1)
com.google.protobuf.MessageOrBuilder {
/**
* string string_field = 1;
*/
java.lang.String getStringField();
/**
* string string_field = 1;
*/
com.google.protobuf.ByteString
getStringFieldBytes();
}
/**
* Protobuf type {@code tensorflow.serving.Config1}
*/
public static final class Config1 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.Config1)
Config1OrBuilder {
private static final long serialVersionUID = 0L;
// Use Config1.newBuilder() to construct.
private Config1(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Config1() {
stringField_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Config1(
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();
stringField_ = 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.ClassRegistrationTest.internal_static_tensorflow_serving_Config1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.Config1.class, tensorflow.serving.ClassRegistrationTest.Config1.Builder.class);
}
public static final int STRING_FIELD_FIELD_NUMBER = 1;
private volatile java.lang.Object stringField_;
/**
* string string_field = 1;
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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();
stringField_ = s;
return s;
}
}
/**
* string string_field = 1;
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = 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 (!getStringFieldBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringField_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStringFieldBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stringField_);
}
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.ClassRegistrationTest.Config1)) {
return super.equals(obj);
}
tensorflow.serving.ClassRegistrationTest.Config1 other = (tensorflow.serving.ClassRegistrationTest.Config1) obj;
boolean result = true;
result = result && getStringField()
.equals(other.getStringField());
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) + STRING_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getStringField().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.ClassRegistrationTest.Config1 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 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.ClassRegistrationTest.Config1 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 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.ClassRegistrationTest.Config1 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 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.ClassRegistrationTest.Config1 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config1 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.ClassRegistrationTest.Config1 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;
}
/**
* Protobuf type {@code tensorflow.serving.Config1}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.Config1)
tensorflow.serving.ClassRegistrationTest.Config1OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.Config1.class, tensorflow.serving.ClassRegistrationTest.Config1.Builder.class);
}
// Construct using tensorflow.serving.ClassRegistrationTest.Config1.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();
stringField_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config1_descriptor;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config1 getDefaultInstanceForType() {
return tensorflow.serving.ClassRegistrationTest.Config1.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config1 build() {
tensorflow.serving.ClassRegistrationTest.Config1 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config1 buildPartial() {
tensorflow.serving.ClassRegistrationTest.Config1 result = new tensorflow.serving.ClassRegistrationTest.Config1(this);
result.stringField_ = stringField_;
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.ClassRegistrationTest.Config1) {
return mergeFrom((tensorflow.serving.ClassRegistrationTest.Config1)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.ClassRegistrationTest.Config1 other) {
if (other == tensorflow.serving.ClassRegistrationTest.Config1.getDefaultInstance()) return this;
if (!other.getStringField().isEmpty()) {
stringField_ = other.stringField_;
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.ClassRegistrationTest.Config1 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.ClassRegistrationTest.Config1) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object stringField_ = "";
/**
* string string_field = 1;
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stringField_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string_field = 1;
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string string_field = 1;
*/
public Builder setStringField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stringField_ = value;
onChanged();
return this;
}
/**
* string string_field = 1;
*/
public Builder clearStringField() {
stringField_ = getDefaultInstance().getStringField();
onChanged();
return this;
}
/**
* string string_field = 1;
*/
public Builder setStringFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stringField_ = 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.Config1)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.Config1)
private static final tensorflow.serving.ClassRegistrationTest.Config1 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.ClassRegistrationTest.Config1();
}
public static tensorflow.serving.ClassRegistrationTest.Config1 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Config1 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Config1(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.ClassRegistrationTest.Config1 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface Config2OrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.Config2)
com.google.protobuf.MessageOrBuilder {
/**
* string string_field = 1;
*/
java.lang.String getStringField();
/**
* string string_field = 1;
*/
com.google.protobuf.ByteString
getStringFieldBytes();
}
/**
* Protobuf type {@code tensorflow.serving.Config2}
*/
public static final class Config2 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.Config2)
Config2OrBuilder {
private static final long serialVersionUID = 0L;
// Use Config2.newBuilder() to construct.
private Config2(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Config2() {
stringField_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Config2(
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();
stringField_ = 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.ClassRegistrationTest.internal_static_tensorflow_serving_Config2_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.Config2.class, tensorflow.serving.ClassRegistrationTest.Config2.Builder.class);
}
public static final int STRING_FIELD_FIELD_NUMBER = 1;
private volatile java.lang.Object stringField_;
/**
* string string_field = 1;
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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();
stringField_ = s;
return s;
}
}
/**
* string string_field = 1;
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = 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 (!getStringFieldBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringField_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStringFieldBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stringField_);
}
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.ClassRegistrationTest.Config2)) {
return super.equals(obj);
}
tensorflow.serving.ClassRegistrationTest.Config2 other = (tensorflow.serving.ClassRegistrationTest.Config2) obj;
boolean result = true;
result = result && getStringField()
.equals(other.getStringField());
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) + STRING_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getStringField().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.ClassRegistrationTest.Config2 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 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.ClassRegistrationTest.Config2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 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.ClassRegistrationTest.Config2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 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.ClassRegistrationTest.Config2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.Config2 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.ClassRegistrationTest.Config2 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;
}
/**
* Protobuf type {@code tensorflow.serving.Config2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.Config2)
tensorflow.serving.ClassRegistrationTest.Config2OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config2_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config2_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.Config2.class, tensorflow.serving.ClassRegistrationTest.Config2.Builder.class);
}
// Construct using tensorflow.serving.ClassRegistrationTest.Config2.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();
stringField_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_Config2_descriptor;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config2 getDefaultInstanceForType() {
return tensorflow.serving.ClassRegistrationTest.Config2.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config2 build() {
tensorflow.serving.ClassRegistrationTest.Config2 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.Config2 buildPartial() {
tensorflow.serving.ClassRegistrationTest.Config2 result = new tensorflow.serving.ClassRegistrationTest.Config2(this);
result.stringField_ = stringField_;
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.ClassRegistrationTest.Config2) {
return mergeFrom((tensorflow.serving.ClassRegistrationTest.Config2)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.ClassRegistrationTest.Config2 other) {
if (other == tensorflow.serving.ClassRegistrationTest.Config2.getDefaultInstance()) return this;
if (!other.getStringField().isEmpty()) {
stringField_ = other.stringField_;
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.ClassRegistrationTest.Config2 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.ClassRegistrationTest.Config2) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object stringField_ = "";
/**
* string string_field = 1;
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stringField_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string string_field = 1;
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string string_field = 1;
*/
public Builder setStringField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
stringField_ = value;
onChanged();
return this;
}
/**
* string string_field = 1;
*/
public Builder clearStringField() {
stringField_ = getDefaultInstance().getStringField();
onChanged();
return this;
}
/**
* string string_field = 1;
*/
public Builder setStringFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
stringField_ = 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.Config2)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.Config2)
private static final tensorflow.serving.ClassRegistrationTest.Config2 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.ClassRegistrationTest.Config2();
}
public static tensorflow.serving.ClassRegistrationTest.Config2 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Config2 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Config2(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.ClassRegistrationTest.Config2 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MessageWithAnyOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.serving.MessageWithAny)
com.google.protobuf.MessageOrBuilder {
/**
* .google.protobuf.Any any_field = 1;
*/
boolean hasAnyField();
/**
* .google.protobuf.Any any_field = 1;
*/
com.google.protobuf.Any getAnyField();
/**
* .google.protobuf.Any any_field = 1;
*/
com.google.protobuf.AnyOrBuilder getAnyFieldOrBuilder();
}
/**
* Protobuf type {@code tensorflow.serving.MessageWithAny}
*/
public static final class MessageWithAny extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.serving.MessageWithAny)
MessageWithAnyOrBuilder {
private static final long serialVersionUID = 0L;
// Use MessageWithAny.newBuilder() to construct.
private MessageWithAny(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private MessageWithAny() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MessageWithAny(
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: {
com.google.protobuf.Any.Builder subBuilder = null;
if (anyField_ != null) {
subBuilder = anyField_.toBuilder();
}
anyField_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(anyField_);
anyField_ = 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.ClassRegistrationTest.internal_static_tensorflow_serving_MessageWithAny_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_MessageWithAny_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.MessageWithAny.class, tensorflow.serving.ClassRegistrationTest.MessageWithAny.Builder.class);
}
public static final int ANY_FIELD_FIELD_NUMBER = 1;
private com.google.protobuf.Any anyField_;
/**
* .google.protobuf.Any any_field = 1;
*/
public boolean hasAnyField() {
return anyField_ != null;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public com.google.protobuf.Any getAnyField() {
return anyField_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyField_;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public com.google.protobuf.AnyOrBuilder getAnyFieldOrBuilder() {
return getAnyField();
}
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 (anyField_ != null) {
output.writeMessage(1, getAnyField());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (anyField_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAnyField());
}
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.ClassRegistrationTest.MessageWithAny)) {
return super.equals(obj);
}
tensorflow.serving.ClassRegistrationTest.MessageWithAny other = (tensorflow.serving.ClassRegistrationTest.MessageWithAny) obj;
boolean result = true;
result = result && (hasAnyField() == other.hasAnyField());
if (hasAnyField()) {
result = result && getAnyField()
.equals(other.getAnyField());
}
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 (hasAnyField()) {
hash = (37 * hash) + ANY_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getAnyField().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny 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.ClassRegistrationTest.MessageWithAny parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny 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.ClassRegistrationTest.MessageWithAny parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny 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.ClassRegistrationTest.MessageWithAny parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny 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.ClassRegistrationTest.MessageWithAny 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;
}
/**
* Protobuf type {@code tensorflow.serving.MessageWithAny}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.serving.MessageWithAny)
tensorflow.serving.ClassRegistrationTest.MessageWithAnyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_MessageWithAny_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_MessageWithAny_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.serving.ClassRegistrationTest.MessageWithAny.class, tensorflow.serving.ClassRegistrationTest.MessageWithAny.Builder.class);
}
// Construct using tensorflow.serving.ClassRegistrationTest.MessageWithAny.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 (anyFieldBuilder_ == null) {
anyField_ = null;
} else {
anyField_ = null;
anyFieldBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.serving.ClassRegistrationTest.internal_static_tensorflow_serving_MessageWithAny_descriptor;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.MessageWithAny getDefaultInstanceForType() {
return tensorflow.serving.ClassRegistrationTest.MessageWithAny.getDefaultInstance();
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.MessageWithAny build() {
tensorflow.serving.ClassRegistrationTest.MessageWithAny result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.serving.ClassRegistrationTest.MessageWithAny buildPartial() {
tensorflow.serving.ClassRegistrationTest.MessageWithAny result = new tensorflow.serving.ClassRegistrationTest.MessageWithAny(this);
if (anyFieldBuilder_ == null) {
result.anyField_ = anyField_;
} else {
result.anyField_ = anyFieldBuilder_.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.ClassRegistrationTest.MessageWithAny) {
return mergeFrom((tensorflow.serving.ClassRegistrationTest.MessageWithAny)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.serving.ClassRegistrationTest.MessageWithAny other) {
if (other == tensorflow.serving.ClassRegistrationTest.MessageWithAny.getDefaultInstance()) return this;
if (other.hasAnyField()) {
mergeAnyField(other.getAnyField());
}
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.ClassRegistrationTest.MessageWithAny parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.serving.ClassRegistrationTest.MessageWithAny) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Any anyField_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> anyFieldBuilder_;
/**
* .google.protobuf.Any any_field = 1;
*/
public boolean hasAnyField() {
return anyFieldBuilder_ != null || anyField_ != null;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public com.google.protobuf.Any getAnyField() {
if (anyFieldBuilder_ == null) {
return anyField_ == null ? com.google.protobuf.Any.getDefaultInstance() : anyField_;
} else {
return anyFieldBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any any_field = 1;
*/
public Builder setAnyField(com.google.protobuf.Any value) {
if (anyFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
anyField_ = value;
onChanged();
} else {
anyFieldBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public Builder setAnyField(
com.google.protobuf.Any.Builder builderForValue) {
if (anyFieldBuilder_ == null) {
anyField_ = builderForValue.build();
onChanged();
} else {
anyFieldBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public Builder mergeAnyField(com.google.protobuf.Any value) {
if (anyFieldBuilder_ == null) {
if (anyField_ != null) {
anyField_ =
com.google.protobuf.Any.newBuilder(anyField_).mergeFrom(value).buildPartial();
} else {
anyField_ = value;
}
onChanged();
} else {
anyFieldBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public Builder clearAnyField() {
if (anyFieldBuilder_ == null) {
anyField_ = null;
onChanged();
} else {
anyField_ = null;
anyFieldBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Any any_field = 1;
*/
public com.google.protobuf.Any.Builder getAnyFieldBuilder() {
onChanged();
return getAnyFieldFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any any_field = 1;
*/
public com.google.protobuf.AnyOrBuilder getAnyFieldOrBuilder() {
if (anyFieldBuilder_ != null) {
return anyFieldBuilder_.getMessageOrBuilder();
} else {
return anyField_ == null ?
com.google.protobuf.Any.getDefaultInstance() : anyField_;
}
}
/**
* .google.protobuf.Any any_field = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getAnyFieldFieldBuilder() {
if (anyFieldBuilder_ == null) {
anyFieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getAnyField(),
getParentForChildren(),
isClean());
anyField_ = null;
}
return anyFieldBuilder_;
}
@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.MessageWithAny)
}
// @@protoc_insertion_point(class_scope:tensorflow.serving.MessageWithAny)
private static final tensorflow.serving.ClassRegistrationTest.MessageWithAny DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.serving.ClassRegistrationTest.MessageWithAny();
}
public static tensorflow.serving.ClassRegistrationTest.MessageWithAny getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MessageWithAny parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MessageWithAny(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.ClassRegistrationTest.MessageWithAny getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_Config1_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_Config1_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_Config2_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_Config2_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_tensorflow_serving_MessageWithAny_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_tensorflow_serving_MessageWithAny_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n5tensorflow_serving/util/class_registra" +
"tion_test.proto\022\022tensorflow.serving\032\031goo" +
"gle/protobuf/any.proto\"\037\n\007Config1\022\024\n\014str" +
"ing_field\030\001 \001(\t\"\037\n\007Config2\022\024\n\014string_fie" +
"ld\030\001 \001(\t\"9\n\016MessageWithAny\022\'\n\tany_field\030" +
"\001 \001(\0132\024.google.protobuf.Anyb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.AnyProto.getDescriptor(),
}, assigner);
internal_static_tensorflow_serving_Config1_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_tensorflow_serving_Config1_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_Config1_descriptor,
new java.lang.String[] { "StringField", });
internal_static_tensorflow_serving_Config2_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_tensorflow_serving_Config2_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_Config2_descriptor,
new java.lang.String[] { "StringField", });
internal_static_tensorflow_serving_MessageWithAny_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_tensorflow_serving_MessageWithAny_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_tensorflow_serving_MessageWithAny_descriptor,
new java.lang.String[] { "AnyField", });
com.google.protobuf.AnyProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}