Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
tensorflow.contrib.proto.TestExample Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/contrib/proto/python/kernel_tests/test_example.proto
package tensorflow.contrib.proto;
public final class TestExample {
private TestExample() {}
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 TestCaseOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.TestCase)
com.google.protobuf.MessageOrBuilder {
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
java.util.List
getValuesList();
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
tensorflow.contrib.proto.TestExample.TestValue getValues(int index);
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
int getValuesCount();
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
java.util.List extends tensorflow.contrib.proto.TestExample.TestValueOrBuilder>
getValuesOrBuilderList();
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValuesOrBuilder(
int index);
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
java.util.List getShapesList();
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
int getShapesCount();
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
int getShapes(int index);
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
java.util.List getSizesList();
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
int getSizesCount();
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
int getSizes(int index);
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
java.util.List
getFieldsList();
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
tensorflow.contrib.proto.TestExample.FieldSpec getFields(int index);
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
int getFieldsCount();
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
java.util.List extends tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder>
getFieldsOrBuilderList();
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
* A TestCase holds a proto and assertions about how it should decode.
*
*
* Protobuf type {@code tensorflow.contrib.proto.TestCase}
*/
public static final class TestCase extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.TestCase)
TestCaseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestCase.newBuilder() to construct.
private TestCase(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestCase() {
values_ = java.util.Collections.emptyList();
shapes_ = java.util.Collections.emptyList();
sizes_ = java.util.Collections.emptyList();
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestCase(
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)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(
input.readMessage(tensorflow.contrib.proto.TestExample.TestValue.PARSER, extensionRegistry));
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shapes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
shapes_.add(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
shapes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
shapes_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sizes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
sizes_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
sizes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
sizes_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
fields_.add(
input.readMessage(tensorflow.contrib.proto.TestExample.FieldSpec.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
shapes_ = java.util.Collections.unmodifiableList(shapes_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
sizes_ = java.util.Collections.unmodifiableList(sizes_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestCase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestCase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.TestCase.class, tensorflow.contrib.proto.TestExample.TestCase.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private java.util.List values_;
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public java.util.List getValuesList() {
return values_;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.TestValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValue getValues(int index) {
return values_.get(index);
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
public static final int SHAPES_FIELD_NUMBER = 2;
private java.util.List shapes_;
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public java.util.List
getShapesList() {
return shapes_;
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public int getShapesCount() {
return shapes_.size();
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public int getShapes(int index) {
return shapes_.get(index);
}
public static final int SIZES_FIELD_NUMBER = 3;
private java.util.List sizes_;
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public java.util.List
getSizesList() {
return sizes_;
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public int getSizesCount() {
return sizes_.size();
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public int getSizes(int index) {
return sizes_.get(index);
}
public static final int FIELDS_FIELD_NUMBER = 4;
private java.util.List fields_;
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public int getFieldsCount() {
return fields_.size();
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpec getFields(int index) {
return fields_.get(index);
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(1, values_.get(i));
}
for (int i = 0; i < shapes_.size(); i++) {
output.writeInt32(2, shapes_.get(i));
}
for (int i = 0; i < sizes_.size(); i++) {
output.writeInt32(3, sizes_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(4, fields_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, values_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < shapes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(shapes_.get(i));
}
size += dataSize;
size += 1 * getShapesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sizes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(sizes_.get(i));
}
size += dataSize;
size += 1 * getSizesList().size();
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, fields_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tensorflow.contrib.proto.TestExample.TestCase)) {
return super.equals(obj);
}
tensorflow.contrib.proto.TestExample.TestCase other = (tensorflow.contrib.proto.TestExample.TestCase) obj;
boolean result = true;
result = result && getValuesList()
.equals(other.getValuesList());
result = result && getShapesList()
.equals(other.getShapesList());
result = result && getSizesList()
.equals(other.getSizesList());
result = result && getFieldsList()
.equals(other.getFieldsList());
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 (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (getShapesCount() > 0) {
hash = (37 * hash) + SHAPES_FIELD_NUMBER;
hash = (53 * hash) + getShapesList().hashCode();
}
if (getSizesCount() > 0) {
hash = (37 * hash) + SIZES_FIELD_NUMBER;
hash = (53 * hash) + getSizesList().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestCase parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestCase 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.contrib.proto.TestExample.TestCase parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestCase 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.contrib.proto.TestExample.TestCase parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestCase 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.contrib.proto.TestExample.TestCase 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 TestCase holds a proto and assertions about how it should decode.
*
*
* Protobuf type {@code tensorflow.contrib.proto.TestCase}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.TestCase)
tensorflow.contrib.proto.TestExample.TestCaseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestCase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestCase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.TestCase.class, tensorflow.contrib.proto.TestExample.TestCase.Builder.class);
}
// Construct using tensorflow.contrib.proto.TestExample.TestCase.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValuesFieldBuilder();
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
valuesBuilder_.clear();
}
shapes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
sizes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
fieldsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestCase_descriptor;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestCase getDefaultInstanceForType() {
return tensorflow.contrib.proto.TestExample.TestCase.getDefaultInstance();
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestCase build() {
tensorflow.contrib.proto.TestExample.TestCase result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestCase buildPartial() {
tensorflow.contrib.proto.TestExample.TestCase result = new tensorflow.contrib.proto.TestExample.TestCase(this);
int from_bitField0_ = bitField0_;
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
shapes_ = java.util.Collections.unmodifiableList(shapes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.shapes_ = shapes_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
sizes_ = java.util.Collections.unmodifiableList(sizes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.sizes_ = sizes_;
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.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.contrib.proto.TestExample.TestCase) {
return mergeFrom((tensorflow.contrib.proto.TestExample.TestCase)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.contrib.proto.TestExample.TestCase other) {
if (other == tensorflow.contrib.proto.TestExample.TestCase.getDefaultInstance()) return this;
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
if (!other.shapes_.isEmpty()) {
if (shapes_.isEmpty()) {
shapes_ = other.shapes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureShapesIsMutable();
shapes_.addAll(other.shapes_);
}
onChanged();
}
if (!other.sizes_.isEmpty()) {
if (sizes_.isEmpty()) {
sizes_ = other.sizes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSizesIsMutable();
sizes_.addAll(other.sizes_);
}
onChanged();
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000008);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
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.contrib.proto.TestExample.TestCase parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.contrib.proto.TestExample.TestCase) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder> valuesBuilder_;
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValue getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder setValues(
int index, tensorflow.contrib.proto.TestExample.TestValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder setValues(
int index, tensorflow.contrib.proto.TestExample.TestValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder addValues(tensorflow.contrib.proto.TestExample.TestValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder addValues(
int index, tensorflow.contrib.proto.TestExample.TestValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder addValues(
tensorflow.contrib.proto.TestExample.TestValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder addValues(
int index, tensorflow.contrib.proto.TestExample.TestValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder addAllValues(
java.lang.Iterable extends tensorflow.contrib.proto.TestExample.TestValue> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValue.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.TestValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValue.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance());
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public tensorflow.contrib.proto.TestExample.TestValue.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance());
}
/**
*
* Batches of primitive values.
*
*
* repeated .tensorflow.contrib.proto.TestValue values = 1;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder>(
values_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private java.util.List shapes_ = java.util.Collections.emptyList();
private void ensureShapesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
shapes_ = new java.util.ArrayList(shapes_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public java.util.List
getShapesList() {
return java.util.Collections.unmodifiableList(shapes_);
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public int getShapesCount() {
return shapes_.size();
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public int getShapes(int index) {
return shapes_.get(index);
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public Builder setShapes(
int index, int value) {
ensureShapesIsMutable();
shapes_.set(index, value);
onChanged();
return this;
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public Builder addShapes(int value) {
ensureShapesIsMutable();
shapes_.add(value);
onChanged();
return this;
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public Builder addAllShapes(
java.lang.Iterable extends java.lang.Integer> values) {
ensureShapesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, shapes_);
onChanged();
return this;
}
/**
*
* The batch shapes.
*
*
* repeated int32 shapes = 2;
*/
public Builder clearShapes() {
shapes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List sizes_ = java.util.Collections.emptyList();
private void ensureSizesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
sizes_ = new java.util.ArrayList(sizes_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public java.util.List
getSizesList() {
return java.util.Collections.unmodifiableList(sizes_);
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public int getSizesCount() {
return sizes_.size();
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public int getSizes(int index) {
return sizes_.get(index);
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public Builder setSizes(
int index, int value) {
ensureSizesIsMutable();
sizes_.set(index, value);
onChanged();
return this;
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public Builder addSizes(int value) {
ensureSizesIsMutable();
sizes_.add(value);
onChanged();
return this;
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public Builder addAllSizes(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSizesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sizes_);
onChanged();
return this;
}
/**
*
* Expected sizes for each field.
*
*
* repeated int32 sizes = 3;
*/
public Builder clearSizes() {
sizes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.FieldSpec, tensorflow.contrib.proto.TestExample.FieldSpec.Builder, tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder> fieldsBuilder_;
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpec getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder setFields(
int index, tensorflow.contrib.proto.TestExample.FieldSpec value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder setFields(
int index, tensorflow.contrib.proto.TestExample.FieldSpec.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder addFields(tensorflow.contrib.proto.TestExample.FieldSpec value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder addFields(
int index, tensorflow.contrib.proto.TestExample.FieldSpec value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder addFields(
tensorflow.contrib.proto.TestExample.FieldSpec.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder addFields(
int index, tensorflow.contrib.proto.TestExample.FieldSpec.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder addAllFields(
java.lang.Iterable extends tensorflow.contrib.proto.TestExample.FieldSpec> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpec.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpec.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
tensorflow.contrib.proto.TestExample.FieldSpec.getDefaultInstance());
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public tensorflow.contrib.proto.TestExample.FieldSpec.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, tensorflow.contrib.proto.TestExample.FieldSpec.getDefaultInstance());
}
/**
*
* Expected values for each field.
*
*
* repeated .tensorflow.contrib.proto.FieldSpec fields = 4;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.FieldSpec, tensorflow.contrib.proto.TestExample.FieldSpec.Builder, tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.FieldSpec, tensorflow.contrib.proto.TestExample.FieldSpec.Builder, tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder>(
fields_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.contrib.proto.TestCase)
}
// @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.TestCase)
private static final tensorflow.contrib.proto.TestExample.TestCase DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.TestCase();
}
public static tensorflow.contrib.proto.TestExample.TestCase getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestCase parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestCase(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.contrib.proto.TestExample.TestCase getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.FieldSpec)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .tensorflow.DataType dtype = 2;
*/
boolean hasDtype();
/**
* optional .tensorflow.DataType dtype = 2;
*/
org.tensorflow.framework.DataType getDtype();
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
boolean hasValue();
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
tensorflow.contrib.proto.TestExample.TestValue getValue();
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValueOrBuilder();
}
/**
*
* FieldSpec describes the expected output for a single field.
*
*
* Protobuf type {@code tensorflow.contrib.proto.FieldSpec}
*/
public static final class FieldSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.FieldSpec)
FieldSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldSpec.newBuilder() to construct.
private FieldSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldSpec() {
name_ = "";
dtype_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldSpec(
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.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType value = org.tensorflow.framework.DataType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
dtype_ = rawValue;
}
break;
}
case 26: {
tensorflow.contrib.proto.TestExample.TestValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(tensorflow.contrib.proto.TestExample.TestValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default: {
if (!parseUnknownField(
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.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.FieldSpec.class, tensorflow.contrib.proto.TestExample.FieldSpec.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DTYPE_FIELD_NUMBER = 2;
private int dtype_;
/**
* optional .tensorflow.DataType dtype = 2;
*/
public boolean hasDtype() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tensorflow.DataType dtype = 2;
*/
public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.DT_INVALID : result;
}
public static final int VALUE_FIELD_NUMBER = 3;
private tensorflow.contrib.proto.TestExample.TestValue value_;
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public tensorflow.contrib.proto.TestExample.TestValue getValue() {
return value_ == null ? tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance() : value_;
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValueOrBuilder() {
return value_ == null ? tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance() : value_;
}
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, dtype_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getValue());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dtype_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getValue());
}
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.contrib.proto.TestExample.FieldSpec)) {
return super.equals(obj);
}
tensorflow.contrib.proto.TestExample.FieldSpec other = (tensorflow.contrib.proto.TestExample.FieldSpec) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasDtype() == other.hasDtype());
if (hasDtype()) {
result = result && dtype_ == other.dtype_;
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDtype()) {
hash = (37 * hash) + DTYPE_FIELD_NUMBER;
hash = (53 * hash) + dtype_;
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec 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.contrib.proto.TestExample.FieldSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec 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.contrib.proto.TestExample.FieldSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.FieldSpec 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.contrib.proto.TestExample.FieldSpec 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;
}
/**
*
* FieldSpec describes the expected output for a single field.
*
*
* Protobuf type {@code tensorflow.contrib.proto.FieldSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.FieldSpec)
tensorflow.contrib.proto.TestExample.FieldSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.FieldSpec.class, tensorflow.contrib.proto.TestExample.FieldSpec.Builder.class);
}
// Construct using tensorflow.contrib.proto.TestExample.FieldSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
dtype_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_FieldSpec_descriptor;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.FieldSpec getDefaultInstanceForType() {
return tensorflow.contrib.proto.TestExample.FieldSpec.getDefaultInstance();
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.FieldSpec build() {
tensorflow.contrib.proto.TestExample.FieldSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.FieldSpec buildPartial() {
tensorflow.contrib.proto.TestExample.FieldSpec result = new tensorflow.contrib.proto.TestExample.FieldSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.dtype_ = dtype_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
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.contrib.proto.TestExample.FieldSpec) {
return mergeFrom((tensorflow.contrib.proto.TestExample.FieldSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.contrib.proto.TestExample.FieldSpec other) {
if (other == tensorflow.contrib.proto.TestExample.FieldSpec.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDtype()) {
setDtype(other.getDtype());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
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.contrib.proto.TestExample.FieldSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.contrib.proto.TestExample.FieldSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private int dtype_ = 0;
/**
* optional .tensorflow.DataType dtype = 2;
*/
public boolean hasDtype() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tensorflow.DataType dtype = 2;
*/
public org.tensorflow.framework.DataType getDtype() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(dtype_);
return result == null ? org.tensorflow.framework.DataType.DT_INVALID : result;
}
/**
* optional .tensorflow.DataType dtype = 2;
*/
public Builder setDtype(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dtype_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .tensorflow.DataType dtype = 2;
*/
public Builder clearDtype() {
bitField0_ = (bitField0_ & ~0x00000002);
dtype_ = 0;
onChanged();
return this;
}
private tensorflow.contrib.proto.TestExample.TestValue value_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder> valueBuilder_;
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public tensorflow.contrib.proto.TestExample.TestValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public Builder setValue(tensorflow.contrib.proto.TestExample.TestValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public Builder setValue(
tensorflow.contrib.proto.TestExample.TestValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public Builder mergeValue(tensorflow.contrib.proto.TestExample.TestValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
value_ != null &&
value_ != tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance()) {
value_ =
tensorflow.contrib.proto.TestExample.TestValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public tensorflow.contrib.proto.TestExample.TestValue.Builder getValueBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
public tensorflow.contrib.proto.TestExample.TestValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance() : value_;
}
}
/**
* optional .tensorflow.contrib.proto.TestValue value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tensorflow.contrib.proto.TestExample.TestValue, tensorflow.contrib.proto.TestExample.TestValue.Builder, tensorflow.contrib.proto.TestExample.TestValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.contrib.proto.FieldSpec)
}
// @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.FieldSpec)
private static final tensorflow.contrib.proto.TestExample.FieldSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.FieldSpec();
}
public static tensorflow.contrib.proto.TestExample.FieldSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldSpec(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.contrib.proto.TestExample.FieldSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TestValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.TestValue)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double double_value = 1;
*/
java.util.List getDoubleValueList();
/**
* repeated double double_value = 1;
*/
int getDoubleValueCount();
/**
* repeated double double_value = 1;
*/
double getDoubleValue(int index);
/**
* repeated float float_value = 2;
*/
java.util.List getFloatValueList();
/**
* repeated float float_value = 2;
*/
int getFloatValueCount();
/**
* repeated float float_value = 2;
*/
float getFloatValue(int index);
/**
* repeated int64 int64_value = 3;
*/
java.util.List getInt64ValueList();
/**
* repeated int64 int64_value = 3;
*/
int getInt64ValueCount();
/**
* repeated int64 int64_value = 3;
*/
long getInt64Value(int index);
/**
* repeated uint64 uint64_value = 4;
*/
java.util.List getUint64ValueList();
/**
* repeated uint64 uint64_value = 4;
*/
int getUint64ValueCount();
/**
* repeated uint64 uint64_value = 4;
*/
long getUint64Value(int index);
/**
* repeated int32 int32_value = 5;
*/
java.util.List getInt32ValueList();
/**
* repeated int32 int32_value = 5;
*/
int getInt32ValueCount();
/**
* repeated int32 int32_value = 5;
*/
int getInt32Value(int index);
/**
* repeated fixed64 fixed64_value = 6;
*/
java.util.List getFixed64ValueList();
/**
* repeated fixed64 fixed64_value = 6;
*/
int getFixed64ValueCount();
/**
* repeated fixed64 fixed64_value = 6;
*/
long getFixed64Value(int index);
/**
* repeated fixed32 fixed32_value = 7;
*/
java.util.List getFixed32ValueList();
/**
* repeated fixed32 fixed32_value = 7;
*/
int getFixed32ValueCount();
/**
* repeated fixed32 fixed32_value = 7;
*/
int getFixed32Value(int index);
/**
* repeated bool bool_value = 8;
*/
java.util.List getBoolValueList();
/**
* repeated bool bool_value = 8;
*/
int getBoolValueCount();
/**
* repeated bool bool_value = 8;
*/
boolean getBoolValue(int index);
/**
* repeated string string_value = 9;
*/
java.util.List
getStringValueList();
/**
* repeated string string_value = 9;
*/
int getStringValueCount();
/**
* repeated string string_value = 9;
*/
java.lang.String getStringValue(int index);
/**
* repeated string string_value = 9;
*/
com.google.protobuf.ByteString
getStringValueBytes(int index);
/**
* repeated bytes bytes_value = 12;
*/
java.util.List getBytesValueList();
/**
* repeated bytes bytes_value = 12;
*/
int getBytesValueCount();
/**
* repeated bytes bytes_value = 12;
*/
com.google.protobuf.ByteString getBytesValue(int index);
/**
* repeated uint32 uint32_value = 13;
*/
java.util.List getUint32ValueList();
/**
* repeated uint32 uint32_value = 13;
*/
int getUint32ValueCount();
/**
* repeated uint32 uint32_value = 13;
*/
int getUint32Value(int index);
/**
* repeated sfixed32 sfixed32_value = 15;
*/
java.util.List getSfixed32ValueList();
/**
* repeated sfixed32 sfixed32_value = 15;
*/
int getSfixed32ValueCount();
/**
* repeated sfixed32 sfixed32_value = 15;
*/
int getSfixed32Value(int index);
/**
* repeated sfixed64 sfixed64_value = 16;
*/
java.util.List getSfixed64ValueList();
/**
* repeated sfixed64 sfixed64_value = 16;
*/
int getSfixed64ValueCount();
/**
* repeated sfixed64 sfixed64_value = 16;
*/
long getSfixed64Value(int index);
/**
* repeated sint32 sint32_value = 17;
*/
java.util.List getSint32ValueList();
/**
* repeated sint32 sint32_value = 17;
*/
int getSint32ValueCount();
/**
* repeated sint32 sint32_value = 17;
*/
int getSint32Value(int index);
/**
* repeated sint64 sint64_value = 18;
*/
java.util.List getSint64ValueList();
/**
* repeated sint64 sint64_value = 18;
*/
int getSint64ValueCount();
/**
* repeated sint64 sint64_value = 18;
*/
long getSint64Value(int index);
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
java.util.List
getMessageValueList();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
tensorflow.contrib.proto.TestExample.PrimitiveValue getMessageValue(int index);
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
int getMessageValueCount();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
java.util.List extends tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueOrBuilderList();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder getMessageValueOrBuilder(
int index);
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
boolean hasDoubleValueWithDefault();
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
double getDoubleValueWithDefault();
/**
* optional float float_value_with_default = 21 [default = 2];
*/
boolean hasFloatValueWithDefault();
/**
* optional float float_value_with_default = 21 [default = 2];
*/
float getFloatValueWithDefault();
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
boolean hasInt64ValueWithDefault();
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
long getInt64ValueWithDefault();
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
boolean hasUint64ValueWithDefault();
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
long getUint64ValueWithDefault();
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
boolean hasInt32ValueWithDefault();
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
int getInt32ValueWithDefault();
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
boolean hasFixed64ValueWithDefault();
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
long getFixed64ValueWithDefault();
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
boolean hasFixed32ValueWithDefault();
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
int getFixed32ValueWithDefault();
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
boolean hasBoolValueWithDefault();
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
boolean getBoolValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
boolean hasStringValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
java.lang.String getStringValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
com.google.protobuf.ByteString
getStringValueWithDefaultBytes();
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
boolean hasBytesValueWithDefault();
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
com.google.protobuf.ByteString getBytesValueWithDefault();
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
boolean hasUint32ValueWithDefault();
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
int getUint32ValueWithDefault();
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
boolean hasSfixed32ValueWithDefault();
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
int getSfixed32ValueWithDefault();
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
boolean hasSfixed64ValueWithDefault();
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
long getSfixed64ValueWithDefault();
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
boolean hasSint32ValueWithDefault();
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
int getSint32ValueWithDefault();
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
boolean hasSint64ValueWithDefault();
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
long getSint64ValueWithDefault();
}
/**
*
* NOTE: This definition must be kept in sync with PackedTestValue.
*
*
* Protobuf type {@code tensorflow.contrib.proto.TestValue}
*/
public static final class TestValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.TestValue)
TestValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestValue.newBuilder() to construct.
private TestValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestValue() {
doubleValue_ = java.util.Collections.emptyList();
floatValue_ = java.util.Collections.emptyList();
int64Value_ = java.util.Collections.emptyList();
uint64Value_ = java.util.Collections.emptyList();
int32Value_ = java.util.Collections.emptyList();
fixed64Value_ = java.util.Collections.emptyList();
fixed32Value_ = java.util.Collections.emptyList();
boolValue_ = java.util.Collections.emptyList();
stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bytesValue_ = java.util.Collections.emptyList();
uint32Value_ = java.util.Collections.emptyList();
sfixed32Value_ = java.util.Collections.emptyList();
sfixed64Value_ = java.util.Collections.emptyList();
sint32Value_ = java.util.Collections.emptyList();
sint64Value_ = java.util.Collections.emptyList();
messageValue_ = java.util.Collections.emptyList();
doubleValueWithDefault_ = 1D;
floatValueWithDefault_ = 2F;
int64ValueWithDefault_ = 3L;
uint64ValueWithDefault_ = 4L;
int32ValueWithDefault_ = 5;
fixed64ValueWithDefault_ = 6L;
fixed32ValueWithDefault_ = 7;
boolValueWithDefault_ = true;
stringValueWithDefault_ = "a";
bytesValueWithDefault_ = com.google.protobuf.Internal.bytesDefaultValue("a longer default string");
uint32ValueWithDefault_ = 9;
sfixed32ValueWithDefault_ = 10;
sfixed64ValueWithDefault_ = 11L;
sint32ValueWithDefault_ = 12;
sint64ValueWithDefault_ = 13L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TestValue(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
doubleValue_.add(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
doubleValue_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 21: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
floatValue_.add(input.readFloat());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
floatValue_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
int64Value_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
int64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
int64Value_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
uint64Value_.add(input.readUInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
uint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
uint64Value_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
int32Value_.add(input.readInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
int32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
int32Value_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
fixed64Value_.add(input.readFixed64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
fixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
fixed64Value_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 61: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
fixed32Value_.add(input.readFixed32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
fixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
fixed32Value_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
boolValue_.add(input.readBool());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
boolValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
boolValue_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
stringValue_.add(bs);
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
bytesValue_.add(input.readBytes());
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
uint32Value_.add(input.readUInt32());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) {
uint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
while (input.getBytesUntilLimit() > 0) {
uint32Value_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 125: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
sfixed32Value_.add(input.readSFixed32());
break;
}
case 122: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) {
sfixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
while (input.getBytesUntilLimit() > 0) {
sfixed32Value_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
case 129: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
sfixed64Value_.add(input.readSFixed64());
break;
}
case 130: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) {
sfixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
while (input.getBytesUntilLimit() > 0) {
sfixed64Value_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
case 136: {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
sint32Value_.add(input.readSInt32());
break;
}
case 138: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) {
sint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
while (input.getBytesUntilLimit() > 0) {
sint32Value_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 144: {
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
sint64Value_.add(input.readSInt64());
break;
}
case 146: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000) && input.getBytesUntilLimit() > 0) {
sint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
while (input.getBytesUntilLimit() > 0) {
sint64Value_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
messageValue_.add(
input.readMessage(tensorflow.contrib.proto.TestExample.PrimitiveValue.PARSER, extensionRegistry));
break;
}
case 161: {
bitField0_ |= 0x00000001;
doubleValueWithDefault_ = input.readDouble();
break;
}
case 173: {
bitField0_ |= 0x00000002;
floatValueWithDefault_ = input.readFloat();
break;
}
case 176: {
bitField0_ |= 0x00000004;
int64ValueWithDefault_ = input.readInt64();
break;
}
case 184: {
bitField0_ |= 0x00000008;
uint64ValueWithDefault_ = input.readUInt64();
break;
}
case 192: {
bitField0_ |= 0x00000010;
int32ValueWithDefault_ = input.readInt32();
break;
}
case 201: {
bitField0_ |= 0x00000020;
fixed64ValueWithDefault_ = input.readFixed64();
break;
}
case 213: {
bitField0_ |= 0x00000040;
fixed32ValueWithDefault_ = input.readFixed32();
break;
}
case 216: {
bitField0_ |= 0x00000080;
boolValueWithDefault_ = input.readBool();
break;
}
case 226: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
stringValueWithDefault_ = bs;
break;
}
case 234: {
bitField0_ |= 0x00000200;
bytesValueWithDefault_ = input.readBytes();
break;
}
case 240: {
bitField0_ |= 0x00000400;
uint32ValueWithDefault_ = input.readUInt32();
break;
}
case 253: {
bitField0_ |= 0x00000800;
sfixed32ValueWithDefault_ = input.readSFixed32();
break;
}
case 257: {
bitField0_ |= 0x00001000;
sfixed64ValueWithDefault_ = input.readSFixed64();
break;
}
case 264: {
bitField0_ |= 0x00002000;
sint32ValueWithDefault_ = input.readSInt32();
break;
}
case 272: {
bitField0_ |= 0x00004000;
sint64ValueWithDefault_ = input.readSInt64();
break;
}
default: {
if (!parseUnknownField(
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = java.util.Collections.unmodifiableList(floatValue_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = java.util.Collections.unmodifiableList(int64Value_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = java.util.Collections.unmodifiableList(uint64Value_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = java.util.Collections.unmodifiableList(int32Value_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = java.util.Collections.unmodifiableList(fixed64Value_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = java.util.Collections.unmodifiableList(fixed32Value_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = java.util.Collections.unmodifiableList(boolValue_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = stringValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = java.util.Collections.unmodifiableList(bytesValue_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = java.util.Collections.unmodifiableList(uint32Value_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = java.util.Collections.unmodifiableList(sfixed32Value_);
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = java.util.Collections.unmodifiableList(sfixed64Value_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = java.util.Collections.unmodifiableList(sint32Value_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = java.util.Collections.unmodifiableList(sint64Value_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = java.util.Collections.unmodifiableList(messageValue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.TestValue.class, tensorflow.contrib.proto.TestExample.TestValue.Builder.class);
}
private int bitField0_;
public static final int DOUBLE_VALUE_FIELD_NUMBER = 1;
private java.util.List doubleValue_;
/**
* repeated double double_value = 1;
*/
public java.util.List
getDoubleValueList() {
return doubleValue_;
}
/**
* repeated double double_value = 1;
*/
public int getDoubleValueCount() {
return doubleValue_.size();
}
/**
* repeated double double_value = 1;
*/
public double getDoubleValue(int index) {
return doubleValue_.get(index);
}
public static final int FLOAT_VALUE_FIELD_NUMBER = 2;
private java.util.List floatValue_;
/**
* repeated float float_value = 2;
*/
public java.util.List
getFloatValueList() {
return floatValue_;
}
/**
* repeated float float_value = 2;
*/
public int getFloatValueCount() {
return floatValue_.size();
}
/**
* repeated float float_value = 2;
*/
public float getFloatValue(int index) {
return floatValue_.get(index);
}
public static final int INT64_VALUE_FIELD_NUMBER = 3;
private java.util.List int64Value_;
/**
* repeated int64 int64_value = 3;
*/
public java.util.List
getInt64ValueList() {
return int64Value_;
}
/**
* repeated int64 int64_value = 3;
*/
public int getInt64ValueCount() {
return int64Value_.size();
}
/**
* repeated int64 int64_value = 3;
*/
public long getInt64Value(int index) {
return int64Value_.get(index);
}
public static final int UINT64_VALUE_FIELD_NUMBER = 4;
private java.util.List uint64Value_;
/**
* repeated uint64 uint64_value = 4;
*/
public java.util.List
getUint64ValueList() {
return uint64Value_;
}
/**
* repeated uint64 uint64_value = 4;
*/
public int getUint64ValueCount() {
return uint64Value_.size();
}
/**
* repeated uint64 uint64_value = 4;
*/
public long getUint64Value(int index) {
return uint64Value_.get(index);
}
public static final int INT32_VALUE_FIELD_NUMBER = 5;
private java.util.List int32Value_;
/**
* repeated int32 int32_value = 5;
*/
public java.util.List
getInt32ValueList() {
return int32Value_;
}
/**
* repeated int32 int32_value = 5;
*/
public int getInt32ValueCount() {
return int32Value_.size();
}
/**
* repeated int32 int32_value = 5;
*/
public int getInt32Value(int index) {
return int32Value_.get(index);
}
public static final int FIXED64_VALUE_FIELD_NUMBER = 6;
private java.util.List fixed64Value_;
/**
* repeated fixed64 fixed64_value = 6;
*/
public java.util.List
getFixed64ValueList() {
return fixed64Value_;
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public int getFixed64ValueCount() {
return fixed64Value_.size();
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public long getFixed64Value(int index) {
return fixed64Value_.get(index);
}
public static final int FIXED32_VALUE_FIELD_NUMBER = 7;
private java.util.List fixed32Value_;
/**
* repeated fixed32 fixed32_value = 7;
*/
public java.util.List
getFixed32ValueList() {
return fixed32Value_;
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public int getFixed32ValueCount() {
return fixed32Value_.size();
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public int getFixed32Value(int index) {
return fixed32Value_.get(index);
}
public static final int BOOL_VALUE_FIELD_NUMBER = 8;
private java.util.List boolValue_;
/**
* repeated bool bool_value = 8;
*/
public java.util.List
getBoolValueList() {
return boolValue_;
}
/**
* repeated bool bool_value = 8;
*/
public int getBoolValueCount() {
return boolValue_.size();
}
/**
* repeated bool bool_value = 8;
*/
public boolean getBoolValue(int index) {
return boolValue_.get(index);
}
public static final int STRING_VALUE_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList stringValue_;
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ProtocolStringList
getStringValueList() {
return stringValue_;
}
/**
* repeated string string_value = 9;
*/
public int getStringValueCount() {
return stringValue_.size();
}
/**
* repeated string string_value = 9;
*/
public java.lang.String getStringValue(int index) {
return stringValue_.get(index);
}
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ByteString
getStringValueBytes(int index) {
return stringValue_.getByteString(index);
}
public static final int BYTES_VALUE_FIELD_NUMBER = 12;
private java.util.List bytesValue_;
/**
* repeated bytes bytes_value = 12;
*/
public java.util.List
getBytesValueList() {
return bytesValue_;
}
/**
* repeated bytes bytes_value = 12;
*/
public int getBytesValueCount() {
return bytesValue_.size();
}
/**
* repeated bytes bytes_value = 12;
*/
public com.google.protobuf.ByteString getBytesValue(int index) {
return bytesValue_.get(index);
}
public static final int UINT32_VALUE_FIELD_NUMBER = 13;
private java.util.List uint32Value_;
/**
* repeated uint32 uint32_value = 13;
*/
public java.util.List
getUint32ValueList() {
return uint32Value_;
}
/**
* repeated uint32 uint32_value = 13;
*/
public int getUint32ValueCount() {
return uint32Value_.size();
}
/**
* repeated uint32 uint32_value = 13;
*/
public int getUint32Value(int index) {
return uint32Value_.get(index);
}
public static final int SFIXED32_VALUE_FIELD_NUMBER = 15;
private java.util.List sfixed32Value_;
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public java.util.List
getSfixed32ValueList() {
return sfixed32Value_;
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public int getSfixed32ValueCount() {
return sfixed32Value_.size();
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public int getSfixed32Value(int index) {
return sfixed32Value_.get(index);
}
public static final int SFIXED64_VALUE_FIELD_NUMBER = 16;
private java.util.List sfixed64Value_;
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public java.util.List
getSfixed64ValueList() {
return sfixed64Value_;
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public int getSfixed64ValueCount() {
return sfixed64Value_.size();
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public long getSfixed64Value(int index) {
return sfixed64Value_.get(index);
}
public static final int SINT32_VALUE_FIELD_NUMBER = 17;
private java.util.List sint32Value_;
/**
* repeated sint32 sint32_value = 17;
*/
public java.util.List
getSint32ValueList() {
return sint32Value_;
}
/**
* repeated sint32 sint32_value = 17;
*/
public int getSint32ValueCount() {
return sint32Value_.size();
}
/**
* repeated sint32 sint32_value = 17;
*/
public int getSint32Value(int index) {
return sint32Value_.get(index);
}
public static final int SINT64_VALUE_FIELD_NUMBER = 18;
private java.util.List sint64Value_;
/**
* repeated sint64 sint64_value = 18;
*/
public java.util.List
getSint64ValueList() {
return sint64Value_;
}
/**
* repeated sint64 sint64_value = 18;
*/
public int getSint64ValueCount() {
return sint64Value_.size();
}
/**
* repeated sint64 sint64_value = 18;
*/
public long getSint64Value(int index) {
return sint64Value_.get(index);
}
public static final int MESSAGE_VALUE_FIELD_NUMBER = 19;
private java.util.List messageValue_;
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List getMessageValueList() {
return messageValue_;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueOrBuilderList() {
return messageValue_;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public int getMessageValueCount() {
return messageValue_.size();
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue getMessageValue(int index) {
return messageValue_.get(index);
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder getMessageValueOrBuilder(
int index) {
return messageValue_.get(index);
}
public static final int DOUBLE_VALUE_WITH_DEFAULT_FIELD_NUMBER = 20;
private double doubleValueWithDefault_;
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public boolean hasDoubleValueWithDefault() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public double getDoubleValueWithDefault() {
return doubleValueWithDefault_;
}
public static final int FLOAT_VALUE_WITH_DEFAULT_FIELD_NUMBER = 21;
private float floatValueWithDefault_;
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public boolean hasFloatValueWithDefault() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public float getFloatValueWithDefault() {
return floatValueWithDefault_;
}
public static final int INT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 22;
private long int64ValueWithDefault_;
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public boolean hasInt64ValueWithDefault() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public long getInt64ValueWithDefault() {
return int64ValueWithDefault_;
}
public static final int UINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 23;
private long uint64ValueWithDefault_;
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public boolean hasUint64ValueWithDefault() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public long getUint64ValueWithDefault() {
return uint64ValueWithDefault_;
}
public static final int INT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 24;
private int int32ValueWithDefault_;
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public boolean hasInt32ValueWithDefault() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public int getInt32ValueWithDefault() {
return int32ValueWithDefault_;
}
public static final int FIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 25;
private long fixed64ValueWithDefault_;
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public boolean hasFixed64ValueWithDefault() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public long getFixed64ValueWithDefault() {
return fixed64ValueWithDefault_;
}
public static final int FIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 26;
private int fixed32ValueWithDefault_;
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public boolean hasFixed32ValueWithDefault() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public int getFixed32ValueWithDefault() {
return fixed32ValueWithDefault_;
}
public static final int BOOL_VALUE_WITH_DEFAULT_FIELD_NUMBER = 27;
private boolean boolValueWithDefault_;
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean hasBoolValueWithDefault() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean getBoolValueWithDefault() {
return boolValueWithDefault_;
}
public static final int STRING_VALUE_WITH_DEFAULT_FIELD_NUMBER = 28;
private volatile java.lang.Object stringValueWithDefault_;
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public boolean hasStringValueWithDefault() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public java.lang.String getStringValueWithDefault() {
java.lang.Object ref = stringValueWithDefault_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
stringValueWithDefault_ = s;
}
return s;
}
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public com.google.protobuf.ByteString
getStringValueWithDefaultBytes() {
java.lang.Object ref = stringValueWithDefault_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringValueWithDefault_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_VALUE_WITH_DEFAULT_FIELD_NUMBER = 29;
private com.google.protobuf.ByteString bytesValueWithDefault_;
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public boolean hasBytesValueWithDefault() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public com.google.protobuf.ByteString getBytesValueWithDefault() {
return bytesValueWithDefault_;
}
public static final int UINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 30;
private int uint32ValueWithDefault_;
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public boolean hasUint32ValueWithDefault() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public int getUint32ValueWithDefault() {
return uint32ValueWithDefault_;
}
public static final int SFIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 31;
private int sfixed32ValueWithDefault_;
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public boolean hasSfixed32ValueWithDefault() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public int getSfixed32ValueWithDefault() {
return sfixed32ValueWithDefault_;
}
public static final int SFIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 32;
private long sfixed64ValueWithDefault_;
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public boolean hasSfixed64ValueWithDefault() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public long getSfixed64ValueWithDefault() {
return sfixed64ValueWithDefault_;
}
public static final int SINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 33;
private int sint32ValueWithDefault_;
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public boolean hasSint32ValueWithDefault() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public int getSint32ValueWithDefault() {
return sint32ValueWithDefault_;
}
public static final int SINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 34;
private long sint64ValueWithDefault_;
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public boolean hasSint64ValueWithDefault() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public long getSint64ValueWithDefault() {
return sint64ValueWithDefault_;
}
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 {
for (int i = 0; i < doubleValue_.size(); i++) {
output.writeDouble(1, doubleValue_.get(i));
}
for (int i = 0; i < floatValue_.size(); i++) {
output.writeFloat(2, floatValue_.get(i));
}
for (int i = 0; i < int64Value_.size(); i++) {
output.writeInt64(3, int64Value_.get(i));
}
for (int i = 0; i < uint64Value_.size(); i++) {
output.writeUInt64(4, uint64Value_.get(i));
}
for (int i = 0; i < int32Value_.size(); i++) {
output.writeInt32(5, int32Value_.get(i));
}
for (int i = 0; i < fixed64Value_.size(); i++) {
output.writeFixed64(6, fixed64Value_.get(i));
}
for (int i = 0; i < fixed32Value_.size(); i++) {
output.writeFixed32(7, fixed32Value_.get(i));
}
for (int i = 0; i < boolValue_.size(); i++) {
output.writeBool(8, boolValue_.get(i));
}
for (int i = 0; i < stringValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, stringValue_.getRaw(i));
}
for (int i = 0; i < bytesValue_.size(); i++) {
output.writeBytes(12, bytesValue_.get(i));
}
for (int i = 0; i < uint32Value_.size(); i++) {
output.writeUInt32(13, uint32Value_.get(i));
}
for (int i = 0; i < sfixed32Value_.size(); i++) {
output.writeSFixed32(15, sfixed32Value_.get(i));
}
for (int i = 0; i < sfixed64Value_.size(); i++) {
output.writeSFixed64(16, sfixed64Value_.get(i));
}
for (int i = 0; i < sint32Value_.size(); i++) {
output.writeSInt32(17, sint32Value_.get(i));
}
for (int i = 0; i < sint64Value_.size(); i++) {
output.writeSInt64(18, sint64Value_.get(i));
}
for (int i = 0; i < messageValue_.size(); i++) {
output.writeMessage(19, messageValue_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(20, doubleValueWithDefault_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(21, floatValueWithDefault_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(22, int64ValueWithDefault_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(23, uint64ValueWithDefault_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(24, int32ValueWithDefault_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeFixed64(25, fixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFixed32(26, fixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(27, boolValueWithDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, stringValueWithDefault_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(29, bytesValueWithDefault_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeUInt32(30, uint32ValueWithDefault_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeSFixed32(31, sfixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeSFixed64(32, sfixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeSInt32(33, sint32ValueWithDefault_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeSInt64(34, sint64ValueWithDefault_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getDoubleValueList().size();
size += dataSize;
size += 1 * getDoubleValueList().size();
}
{
int dataSize = 0;
dataSize = 4 * getFloatValueList().size();
size += dataSize;
size += 1 * getFloatValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < int64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(int64Value_.get(i));
}
size += dataSize;
size += 1 * getInt64ValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < uint64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(uint64Value_.get(i));
}
size += dataSize;
size += 1 * getUint64ValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < int32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(int32Value_.get(i));
}
size += dataSize;
size += 1 * getInt32ValueList().size();
}
{
int dataSize = 0;
dataSize = 8 * getFixed64ValueList().size();
size += dataSize;
size += 1 * getFixed64ValueList().size();
}
{
int dataSize = 0;
dataSize = 4 * getFixed32ValueList().size();
size += dataSize;
size += 1 * getFixed32ValueList().size();
}
{
int dataSize = 0;
dataSize = 1 * getBoolValueList().size();
size += dataSize;
size += 1 * getBoolValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < stringValue_.size(); i++) {
dataSize += computeStringSizeNoTag(stringValue_.getRaw(i));
}
size += dataSize;
size += 1 * getStringValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < bytesValue_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(bytesValue_.get(i));
}
size += dataSize;
size += 1 * getBytesValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < uint32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(uint32Value_.get(i));
}
size += dataSize;
size += 1 * getUint32ValueList().size();
}
{
int dataSize = 0;
dataSize = 4 * getSfixed32ValueList().size();
size += dataSize;
size += 1 * getSfixed32ValueList().size();
}
{
int dataSize = 0;
dataSize = 8 * getSfixed64ValueList().size();
size += dataSize;
size += 2 * getSfixed64ValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sint32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(sint32Value_.get(i));
}
size += dataSize;
size += 2 * getSint32ValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sint64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(sint64Value_.get(i));
}
size += dataSize;
size += 2 * getSint64ValueList().size();
}
for (int i = 0; i < messageValue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, messageValue_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(20, doubleValueWithDefault_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(21, floatValueWithDefault_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(22, int64ValueWithDefault_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(23, uint64ValueWithDefault_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(24, int32ValueWithDefault_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(25, fixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(26, fixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, boolValueWithDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, stringValueWithDefault_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(29, bytesValueWithDefault_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(30, uint32ValueWithDefault_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(31, sfixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(32, sfixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(33, sint32ValueWithDefault_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(34, sint64ValueWithDefault_);
}
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.contrib.proto.TestExample.TestValue)) {
return super.equals(obj);
}
tensorflow.contrib.proto.TestExample.TestValue other = (tensorflow.contrib.proto.TestExample.TestValue) obj;
boolean result = true;
result = result && getDoubleValueList()
.equals(other.getDoubleValueList());
result = result && getFloatValueList()
.equals(other.getFloatValueList());
result = result && getInt64ValueList()
.equals(other.getInt64ValueList());
result = result && getUint64ValueList()
.equals(other.getUint64ValueList());
result = result && getInt32ValueList()
.equals(other.getInt32ValueList());
result = result && getFixed64ValueList()
.equals(other.getFixed64ValueList());
result = result && getFixed32ValueList()
.equals(other.getFixed32ValueList());
result = result && getBoolValueList()
.equals(other.getBoolValueList());
result = result && getStringValueList()
.equals(other.getStringValueList());
result = result && getBytesValueList()
.equals(other.getBytesValueList());
result = result && getUint32ValueList()
.equals(other.getUint32ValueList());
result = result && getSfixed32ValueList()
.equals(other.getSfixed32ValueList());
result = result && getSfixed64ValueList()
.equals(other.getSfixed64ValueList());
result = result && getSint32ValueList()
.equals(other.getSint32ValueList());
result = result && getSint64ValueList()
.equals(other.getSint64ValueList());
result = result && getMessageValueList()
.equals(other.getMessageValueList());
result = result && (hasDoubleValueWithDefault() == other.hasDoubleValueWithDefault());
if (hasDoubleValueWithDefault()) {
result = result && (
java.lang.Double.doubleToLongBits(getDoubleValueWithDefault())
== java.lang.Double.doubleToLongBits(
other.getDoubleValueWithDefault()));
}
result = result && (hasFloatValueWithDefault() == other.hasFloatValueWithDefault());
if (hasFloatValueWithDefault()) {
result = result && (
java.lang.Float.floatToIntBits(getFloatValueWithDefault())
== java.lang.Float.floatToIntBits(
other.getFloatValueWithDefault()));
}
result = result && (hasInt64ValueWithDefault() == other.hasInt64ValueWithDefault());
if (hasInt64ValueWithDefault()) {
result = result && (getInt64ValueWithDefault()
== other.getInt64ValueWithDefault());
}
result = result && (hasUint64ValueWithDefault() == other.hasUint64ValueWithDefault());
if (hasUint64ValueWithDefault()) {
result = result && (getUint64ValueWithDefault()
== other.getUint64ValueWithDefault());
}
result = result && (hasInt32ValueWithDefault() == other.hasInt32ValueWithDefault());
if (hasInt32ValueWithDefault()) {
result = result && (getInt32ValueWithDefault()
== other.getInt32ValueWithDefault());
}
result = result && (hasFixed64ValueWithDefault() == other.hasFixed64ValueWithDefault());
if (hasFixed64ValueWithDefault()) {
result = result && (getFixed64ValueWithDefault()
== other.getFixed64ValueWithDefault());
}
result = result && (hasFixed32ValueWithDefault() == other.hasFixed32ValueWithDefault());
if (hasFixed32ValueWithDefault()) {
result = result && (getFixed32ValueWithDefault()
== other.getFixed32ValueWithDefault());
}
result = result && (hasBoolValueWithDefault() == other.hasBoolValueWithDefault());
if (hasBoolValueWithDefault()) {
result = result && (getBoolValueWithDefault()
== other.getBoolValueWithDefault());
}
result = result && (hasStringValueWithDefault() == other.hasStringValueWithDefault());
if (hasStringValueWithDefault()) {
result = result && getStringValueWithDefault()
.equals(other.getStringValueWithDefault());
}
result = result && (hasBytesValueWithDefault() == other.hasBytesValueWithDefault());
if (hasBytesValueWithDefault()) {
result = result && getBytesValueWithDefault()
.equals(other.getBytesValueWithDefault());
}
result = result && (hasUint32ValueWithDefault() == other.hasUint32ValueWithDefault());
if (hasUint32ValueWithDefault()) {
result = result && (getUint32ValueWithDefault()
== other.getUint32ValueWithDefault());
}
result = result && (hasSfixed32ValueWithDefault() == other.hasSfixed32ValueWithDefault());
if (hasSfixed32ValueWithDefault()) {
result = result && (getSfixed32ValueWithDefault()
== other.getSfixed32ValueWithDefault());
}
result = result && (hasSfixed64ValueWithDefault() == other.hasSfixed64ValueWithDefault());
if (hasSfixed64ValueWithDefault()) {
result = result && (getSfixed64ValueWithDefault()
== other.getSfixed64ValueWithDefault());
}
result = result && (hasSint32ValueWithDefault() == other.hasSint32ValueWithDefault());
if (hasSint32ValueWithDefault()) {
result = result && (getSint32ValueWithDefault()
== other.getSint32ValueWithDefault());
}
result = result && (hasSint64ValueWithDefault() == other.hasSint64ValueWithDefault());
if (hasSint64ValueWithDefault()) {
result = result && (getSint64ValueWithDefault()
== other.getSint64ValueWithDefault());
}
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 (getDoubleValueCount() > 0) {
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getDoubleValueList().hashCode();
}
if (getFloatValueCount() > 0) {
hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFloatValueList().hashCode();
}
if (getInt64ValueCount() > 0) {
hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInt64ValueList().hashCode();
}
if (getUint64ValueCount() > 0) {
hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getUint64ValueList().hashCode();
}
if (getInt32ValueCount() > 0) {
hash = (37 * hash) + INT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInt32ValueList().hashCode();
}
if (getFixed64ValueCount() > 0) {
hash = (37 * hash) + FIXED64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFixed64ValueList().hashCode();
}
if (getFixed32ValueCount() > 0) {
hash = (37 * hash) + FIXED32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFixed32ValueList().hashCode();
}
if (getBoolValueCount() > 0) {
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBoolValueList().hashCode();
}
if (getStringValueCount() > 0) {
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValueList().hashCode();
}
if (getBytesValueCount() > 0) {
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValueList().hashCode();
}
if (getUint32ValueCount() > 0) {
hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getUint32ValueList().hashCode();
}
if (getSfixed32ValueCount() > 0) {
hash = (37 * hash) + SFIXED32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSfixed32ValueList().hashCode();
}
if (getSfixed64ValueCount() > 0) {
hash = (37 * hash) + SFIXED64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSfixed64ValueList().hashCode();
}
if (getSint32ValueCount() > 0) {
hash = (37 * hash) + SINT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSint32ValueList().hashCode();
}
if (getSint64ValueCount() > 0) {
hash = (37 * hash) + SINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSint64ValueList().hashCode();
}
if (getMessageValueCount() > 0) {
hash = (37 * hash) + MESSAGE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getMessageValueList().hashCode();
}
if (hasDoubleValueWithDefault()) {
hash = (37 * hash) + DOUBLE_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValueWithDefault()));
}
if (hasFloatValueWithDefault()) {
hash = (37 * hash) + FLOAT_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloatValueWithDefault());
}
if (hasInt64ValueWithDefault()) {
hash = (37 * hash) + INT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt64ValueWithDefault());
}
if (hasUint64ValueWithDefault()) {
hash = (37 * hash) + UINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUint64ValueWithDefault());
}
if (hasInt32ValueWithDefault()) {
hash = (37 * hash) + INT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getInt32ValueWithDefault();
}
if (hasFixed64ValueWithDefault()) {
hash = (37 * hash) + FIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFixed64ValueWithDefault());
}
if (hasFixed32ValueWithDefault()) {
hash = (37 * hash) + FIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getFixed32ValueWithDefault();
}
if (hasBoolValueWithDefault()) {
hash = (37 * hash) + BOOL_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValueWithDefault());
}
if (hasStringValueWithDefault()) {
hash = (37 * hash) + STRING_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getStringValueWithDefault().hashCode();
}
if (hasBytesValueWithDefault()) {
hash = (37 * hash) + BYTES_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getBytesValueWithDefault().hashCode();
}
if (hasUint32ValueWithDefault()) {
hash = (37 * hash) + UINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getUint32ValueWithDefault();
}
if (hasSfixed32ValueWithDefault()) {
hash = (37 * hash) + SFIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getSfixed32ValueWithDefault();
}
if (hasSfixed64ValueWithDefault()) {
hash = (37 * hash) + SFIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSfixed64ValueWithDefault());
}
if (hasSint32ValueWithDefault()) {
hash = (37 * hash) + SINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getSint32ValueWithDefault();
}
if (hasSint64ValueWithDefault()) {
hash = (37 * hash) + SINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSint64ValueWithDefault());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.TestValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestValue 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.contrib.proto.TestExample.TestValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestValue 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.contrib.proto.TestExample.TestValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.TestValue 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.contrib.proto.TestExample.TestValue 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;
}
/**
*
* NOTE: This definition must be kept in sync with PackedTestValue.
*
*
* Protobuf type {@code tensorflow.contrib.proto.TestValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.TestValue)
tensorflow.contrib.proto.TestExample.TestValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.TestValue.class, tensorflow.contrib.proto.TestExample.TestValue.Builder.class);
}
// Construct using tensorflow.contrib.proto.TestExample.TestValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessageValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
doubleValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
floatValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
int64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
uint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
int32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
fixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
fixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
boolValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
bytesValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
uint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
sfixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
sfixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
sint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
sint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
if (messageValueBuilder_ == null) {
messageValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
messageValueBuilder_.clear();
}
doubleValueWithDefault_ = 1D;
bitField0_ = (bitField0_ & ~0x00010000);
floatValueWithDefault_ = 2F;
bitField0_ = (bitField0_ & ~0x00020000);
int64ValueWithDefault_ = 3L;
bitField0_ = (bitField0_ & ~0x00040000);
uint64ValueWithDefault_ = 4L;
bitField0_ = (bitField0_ & ~0x00080000);
int32ValueWithDefault_ = 5;
bitField0_ = (bitField0_ & ~0x00100000);
fixed64ValueWithDefault_ = 6L;
bitField0_ = (bitField0_ & ~0x00200000);
fixed32ValueWithDefault_ = 7;
bitField0_ = (bitField0_ & ~0x00400000);
boolValueWithDefault_ = true;
bitField0_ = (bitField0_ & ~0x00800000);
stringValueWithDefault_ = "a";
bitField0_ = (bitField0_ & ~0x01000000);
bytesValueWithDefault_ = com.google.protobuf.Internal.bytesDefaultValue("a longer default string");
bitField0_ = (bitField0_ & ~0x02000000);
uint32ValueWithDefault_ = 9;
bitField0_ = (bitField0_ & ~0x04000000);
sfixed32ValueWithDefault_ = 10;
bitField0_ = (bitField0_ & ~0x08000000);
sfixed64ValueWithDefault_ = 11L;
bitField0_ = (bitField0_ & ~0x10000000);
sint32ValueWithDefault_ = 12;
bitField0_ = (bitField0_ & ~0x20000000);
sint64ValueWithDefault_ = 13L;
bitField0_ = (bitField0_ & ~0x40000000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_TestValue_descriptor;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestValue getDefaultInstanceForType() {
return tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance();
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestValue build() {
tensorflow.contrib.proto.TestExample.TestValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.TestValue buildPartial() {
tensorflow.contrib.proto.TestExample.TestValue result = new tensorflow.contrib.proto.TestExample.TestValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.doubleValue_ = doubleValue_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = java.util.Collections.unmodifiableList(floatValue_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.floatValue_ = floatValue_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = java.util.Collections.unmodifiableList(int64Value_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.int64Value_ = int64Value_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = java.util.Collections.unmodifiableList(uint64Value_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.uint64Value_ = uint64Value_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = java.util.Collections.unmodifiableList(int32Value_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.int32Value_ = int32Value_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = java.util.Collections.unmodifiableList(fixed64Value_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.fixed64Value_ = fixed64Value_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = java.util.Collections.unmodifiableList(fixed32Value_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.fixed32Value_ = fixed32Value_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = java.util.Collections.unmodifiableList(boolValue_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.boolValue_ = boolValue_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = stringValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.stringValue_ = stringValue_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = java.util.Collections.unmodifiableList(bytesValue_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.bytesValue_ = bytesValue_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = java.util.Collections.unmodifiableList(uint32Value_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.uint32Value_ = uint32Value_;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = java.util.Collections.unmodifiableList(sfixed32Value_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.sfixed32Value_ = sfixed32Value_;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = java.util.Collections.unmodifiableList(sfixed64Value_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.sfixed64Value_ = sfixed64Value_;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = java.util.Collections.unmodifiableList(sint32Value_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.sint32Value_ = sint32Value_;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = java.util.Collections.unmodifiableList(sint64Value_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.sint64Value_ = sint64Value_;
if (messageValueBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = java.util.Collections.unmodifiableList(messageValue_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.messageValue_ = messageValue_;
} else {
result.messageValue_ = messageValueBuilder_.build();
}
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00000001;
}
result.doubleValueWithDefault_ = doubleValueWithDefault_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00000002;
}
result.floatValueWithDefault_ = floatValueWithDefault_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00000004;
}
result.int64ValueWithDefault_ = int64ValueWithDefault_;
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00000008;
}
result.uint64ValueWithDefault_ = uint64ValueWithDefault_;
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00000010;
}
result.int32ValueWithDefault_ = int32ValueWithDefault_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00000020;
}
result.fixed64ValueWithDefault_ = fixed64ValueWithDefault_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00000040;
}
result.fixed32ValueWithDefault_ = fixed32ValueWithDefault_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00000080;
}
result.boolValueWithDefault_ = boolValueWithDefault_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x00000100;
}
result.stringValueWithDefault_ = stringValueWithDefault_;
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x00000200;
}
result.bytesValueWithDefault_ = bytesValueWithDefault_;
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x00000400;
}
result.uint32ValueWithDefault_ = uint32ValueWithDefault_;
if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
to_bitField0_ |= 0x00000800;
}
result.sfixed32ValueWithDefault_ = sfixed32ValueWithDefault_;
if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
to_bitField0_ |= 0x00001000;
}
result.sfixed64ValueWithDefault_ = sfixed64ValueWithDefault_;
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x00002000;
}
result.sint32ValueWithDefault_ = sint32ValueWithDefault_;
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x00004000;
}
result.sint64ValueWithDefault_ = sint64ValueWithDefault_;
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.contrib.proto.TestExample.TestValue) {
return mergeFrom((tensorflow.contrib.proto.TestExample.TestValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.contrib.proto.TestExample.TestValue other) {
if (other == tensorflow.contrib.proto.TestExample.TestValue.getDefaultInstance()) return this;
if (!other.doubleValue_.isEmpty()) {
if (doubleValue_.isEmpty()) {
doubleValue_ = other.doubleValue_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDoubleValueIsMutable();
doubleValue_.addAll(other.doubleValue_);
}
onChanged();
}
if (!other.floatValue_.isEmpty()) {
if (floatValue_.isEmpty()) {
floatValue_ = other.floatValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFloatValueIsMutable();
floatValue_.addAll(other.floatValue_);
}
onChanged();
}
if (!other.int64Value_.isEmpty()) {
if (int64Value_.isEmpty()) {
int64Value_ = other.int64Value_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInt64ValueIsMutable();
int64Value_.addAll(other.int64Value_);
}
onChanged();
}
if (!other.uint64Value_.isEmpty()) {
if (uint64Value_.isEmpty()) {
uint64Value_ = other.uint64Value_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureUint64ValueIsMutable();
uint64Value_.addAll(other.uint64Value_);
}
onChanged();
}
if (!other.int32Value_.isEmpty()) {
if (int32Value_.isEmpty()) {
int32Value_ = other.int32Value_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureInt32ValueIsMutable();
int32Value_.addAll(other.int32Value_);
}
onChanged();
}
if (!other.fixed64Value_.isEmpty()) {
if (fixed64Value_.isEmpty()) {
fixed64Value_ = other.fixed64Value_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureFixed64ValueIsMutable();
fixed64Value_.addAll(other.fixed64Value_);
}
onChanged();
}
if (!other.fixed32Value_.isEmpty()) {
if (fixed32Value_.isEmpty()) {
fixed32Value_ = other.fixed32Value_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureFixed32ValueIsMutable();
fixed32Value_.addAll(other.fixed32Value_);
}
onChanged();
}
if (!other.boolValue_.isEmpty()) {
if (boolValue_.isEmpty()) {
boolValue_ = other.boolValue_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureBoolValueIsMutable();
boolValue_.addAll(other.boolValue_);
}
onChanged();
}
if (!other.stringValue_.isEmpty()) {
if (stringValue_.isEmpty()) {
stringValue_ = other.stringValue_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureStringValueIsMutable();
stringValue_.addAll(other.stringValue_);
}
onChanged();
}
if (!other.bytesValue_.isEmpty()) {
if (bytesValue_.isEmpty()) {
bytesValue_ = other.bytesValue_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureBytesValueIsMutable();
bytesValue_.addAll(other.bytesValue_);
}
onChanged();
}
if (!other.uint32Value_.isEmpty()) {
if (uint32Value_.isEmpty()) {
uint32Value_ = other.uint32Value_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureUint32ValueIsMutable();
uint32Value_.addAll(other.uint32Value_);
}
onChanged();
}
if (!other.sfixed32Value_.isEmpty()) {
if (sfixed32Value_.isEmpty()) {
sfixed32Value_ = other.sfixed32Value_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureSfixed32ValueIsMutable();
sfixed32Value_.addAll(other.sfixed32Value_);
}
onChanged();
}
if (!other.sfixed64Value_.isEmpty()) {
if (sfixed64Value_.isEmpty()) {
sfixed64Value_ = other.sfixed64Value_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureSfixed64ValueIsMutable();
sfixed64Value_.addAll(other.sfixed64Value_);
}
onChanged();
}
if (!other.sint32Value_.isEmpty()) {
if (sint32Value_.isEmpty()) {
sint32Value_ = other.sint32Value_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureSint32ValueIsMutable();
sint32Value_.addAll(other.sint32Value_);
}
onChanged();
}
if (!other.sint64Value_.isEmpty()) {
if (sint64Value_.isEmpty()) {
sint64Value_ = other.sint64Value_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureSint64ValueIsMutable();
sint64Value_.addAll(other.sint64Value_);
}
onChanged();
}
if (messageValueBuilder_ == null) {
if (!other.messageValue_.isEmpty()) {
if (messageValue_.isEmpty()) {
messageValue_ = other.messageValue_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureMessageValueIsMutable();
messageValue_.addAll(other.messageValue_);
}
onChanged();
}
} else {
if (!other.messageValue_.isEmpty()) {
if (messageValueBuilder_.isEmpty()) {
messageValueBuilder_.dispose();
messageValueBuilder_ = null;
messageValue_ = other.messageValue_;
bitField0_ = (bitField0_ & ~0x00008000);
messageValueBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessageValueFieldBuilder() : null;
} else {
messageValueBuilder_.addAllMessages(other.messageValue_);
}
}
}
if (other.hasDoubleValueWithDefault()) {
setDoubleValueWithDefault(other.getDoubleValueWithDefault());
}
if (other.hasFloatValueWithDefault()) {
setFloatValueWithDefault(other.getFloatValueWithDefault());
}
if (other.hasInt64ValueWithDefault()) {
setInt64ValueWithDefault(other.getInt64ValueWithDefault());
}
if (other.hasUint64ValueWithDefault()) {
setUint64ValueWithDefault(other.getUint64ValueWithDefault());
}
if (other.hasInt32ValueWithDefault()) {
setInt32ValueWithDefault(other.getInt32ValueWithDefault());
}
if (other.hasFixed64ValueWithDefault()) {
setFixed64ValueWithDefault(other.getFixed64ValueWithDefault());
}
if (other.hasFixed32ValueWithDefault()) {
setFixed32ValueWithDefault(other.getFixed32ValueWithDefault());
}
if (other.hasBoolValueWithDefault()) {
setBoolValueWithDefault(other.getBoolValueWithDefault());
}
if (other.hasStringValueWithDefault()) {
bitField0_ |= 0x01000000;
stringValueWithDefault_ = other.stringValueWithDefault_;
onChanged();
}
if (other.hasBytesValueWithDefault()) {
setBytesValueWithDefault(other.getBytesValueWithDefault());
}
if (other.hasUint32ValueWithDefault()) {
setUint32ValueWithDefault(other.getUint32ValueWithDefault());
}
if (other.hasSfixed32ValueWithDefault()) {
setSfixed32ValueWithDefault(other.getSfixed32ValueWithDefault());
}
if (other.hasSfixed64ValueWithDefault()) {
setSfixed64ValueWithDefault(other.getSfixed64ValueWithDefault());
}
if (other.hasSint32ValueWithDefault()) {
setSint32ValueWithDefault(other.getSint32ValueWithDefault());
}
if (other.hasSint64ValueWithDefault()) {
setSint64ValueWithDefault(other.getSint64ValueWithDefault());
}
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.contrib.proto.TestExample.TestValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.contrib.proto.TestExample.TestValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List doubleValue_ = java.util.Collections.emptyList();
private void ensureDoubleValueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = new java.util.ArrayList(doubleValue_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double double_value = 1;
*/
public java.util.List
getDoubleValueList() {
return java.util.Collections.unmodifiableList(doubleValue_);
}
/**
* repeated double double_value = 1;
*/
public int getDoubleValueCount() {
return doubleValue_.size();
}
/**
* repeated double double_value = 1;
*/
public double getDoubleValue(int index) {
return doubleValue_.get(index);
}
/**
* repeated double double_value = 1;
*/
public Builder setDoubleValue(
int index, double value) {
ensureDoubleValueIsMutable();
doubleValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated double double_value = 1;
*/
public Builder addDoubleValue(double value) {
ensureDoubleValueIsMutable();
doubleValue_.add(value);
onChanged();
return this;
}
/**
* repeated double double_value = 1;
*/
public Builder addAllDoubleValue(
java.lang.Iterable extends java.lang.Double> values) {
ensureDoubleValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, doubleValue_);
onChanged();
return this;
}
/**
* repeated double double_value = 1;
*/
public Builder clearDoubleValue() {
doubleValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List floatValue_ = java.util.Collections.emptyList();
private void ensureFloatValueIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = new java.util.ArrayList(floatValue_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated float float_value = 2;
*/
public java.util.List
getFloatValueList() {
return java.util.Collections.unmodifiableList(floatValue_);
}
/**
* repeated float float_value = 2;
*/
public int getFloatValueCount() {
return floatValue_.size();
}
/**
* repeated float float_value = 2;
*/
public float getFloatValue(int index) {
return floatValue_.get(index);
}
/**
* repeated float float_value = 2;
*/
public Builder setFloatValue(
int index, float value) {
ensureFloatValueIsMutable();
floatValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated float float_value = 2;
*/
public Builder addFloatValue(float value) {
ensureFloatValueIsMutable();
floatValue_.add(value);
onChanged();
return this;
}
/**
* repeated float float_value = 2;
*/
public Builder addAllFloatValue(
java.lang.Iterable extends java.lang.Float> values) {
ensureFloatValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, floatValue_);
onChanged();
return this;
}
/**
* repeated float float_value = 2;
*/
public Builder clearFloatValue() {
floatValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List int64Value_ = java.util.Collections.emptyList();
private void ensureInt64ValueIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = new java.util.ArrayList(int64Value_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int64 int64_value = 3;
*/
public java.util.List
getInt64ValueList() {
return java.util.Collections.unmodifiableList(int64Value_);
}
/**
* repeated int64 int64_value = 3;
*/
public int getInt64ValueCount() {
return int64Value_.size();
}
/**
* repeated int64 int64_value = 3;
*/
public long getInt64Value(int index) {
return int64Value_.get(index);
}
/**
* repeated int64 int64_value = 3;
*/
public Builder setInt64Value(
int index, long value) {
ensureInt64ValueIsMutable();
int64Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 int64_value = 3;
*/
public Builder addInt64Value(long value) {
ensureInt64ValueIsMutable();
int64Value_.add(value);
onChanged();
return this;
}
/**
* repeated int64 int64_value = 3;
*/
public Builder addAllInt64Value(
java.lang.Iterable extends java.lang.Long> values) {
ensureInt64ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, int64Value_);
onChanged();
return this;
}
/**
* repeated int64 int64_value = 3;
*/
public Builder clearInt64Value() {
int64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.List uint64Value_ = java.util.Collections.emptyList();
private void ensureUint64ValueIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = new java.util.ArrayList(uint64Value_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated uint64 uint64_value = 4;
*/
public java.util.List
getUint64ValueList() {
return java.util.Collections.unmodifiableList(uint64Value_);
}
/**
* repeated uint64 uint64_value = 4;
*/
public int getUint64ValueCount() {
return uint64Value_.size();
}
/**
* repeated uint64 uint64_value = 4;
*/
public long getUint64Value(int index) {
return uint64Value_.get(index);
}
/**
* repeated uint64 uint64_value = 4;
*/
public Builder setUint64Value(
int index, long value) {
ensureUint64ValueIsMutable();
uint64Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 uint64_value = 4;
*/
public Builder addUint64Value(long value) {
ensureUint64ValueIsMutable();
uint64Value_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 uint64_value = 4;
*/
public Builder addAllUint64Value(
java.lang.Iterable extends java.lang.Long> values) {
ensureUint64ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uint64Value_);
onChanged();
return this;
}
/**
* repeated uint64 uint64_value = 4;
*/
public Builder clearUint64Value() {
uint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private java.util.List int32Value_ = java.util.Collections.emptyList();
private void ensureInt32ValueIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = new java.util.ArrayList(int32Value_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated int32 int32_value = 5;
*/
public java.util.List
getInt32ValueList() {
return java.util.Collections.unmodifiableList(int32Value_);
}
/**
* repeated int32 int32_value = 5;
*/
public int getInt32ValueCount() {
return int32Value_.size();
}
/**
* repeated int32 int32_value = 5;
*/
public int getInt32Value(int index) {
return int32Value_.get(index);
}
/**
* repeated int32 int32_value = 5;
*/
public Builder setInt32Value(
int index, int value) {
ensureInt32ValueIsMutable();
int32Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 int32_value = 5;
*/
public Builder addInt32Value(int value) {
ensureInt32ValueIsMutable();
int32Value_.add(value);
onChanged();
return this;
}
/**
* repeated int32 int32_value = 5;
*/
public Builder addAllInt32Value(
java.lang.Iterable extends java.lang.Integer> values) {
ensureInt32ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, int32Value_);
onChanged();
return this;
}
/**
* repeated int32 int32_value = 5;
*/
public Builder clearInt32Value() {
int32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private java.util.List fixed64Value_ = java.util.Collections.emptyList();
private void ensureFixed64ValueIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = new java.util.ArrayList(fixed64Value_);
bitField0_ |= 0x00000020;
}
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public java.util.List
getFixed64ValueList() {
return java.util.Collections.unmodifiableList(fixed64Value_);
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public int getFixed64ValueCount() {
return fixed64Value_.size();
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public long getFixed64Value(int index) {
return fixed64Value_.get(index);
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public Builder setFixed64Value(
int index, long value) {
ensureFixed64ValueIsMutable();
fixed64Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public Builder addFixed64Value(long value) {
ensureFixed64ValueIsMutable();
fixed64Value_.add(value);
onChanged();
return this;
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public Builder addAllFixed64Value(
java.lang.Iterable extends java.lang.Long> values) {
ensureFixed64ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fixed64Value_);
onChanged();
return this;
}
/**
* repeated fixed64 fixed64_value = 6;
*/
public Builder clearFixed64Value() {
fixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private java.util.List fixed32Value_ = java.util.Collections.emptyList();
private void ensureFixed32ValueIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = new java.util.ArrayList(fixed32Value_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public java.util.List
getFixed32ValueList() {
return java.util.Collections.unmodifiableList(fixed32Value_);
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public int getFixed32ValueCount() {
return fixed32Value_.size();
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public int getFixed32Value(int index) {
return fixed32Value_.get(index);
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public Builder setFixed32Value(
int index, int value) {
ensureFixed32ValueIsMutable();
fixed32Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public Builder addFixed32Value(int value) {
ensureFixed32ValueIsMutable();
fixed32Value_.add(value);
onChanged();
return this;
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public Builder addAllFixed32Value(
java.lang.Iterable extends java.lang.Integer> values) {
ensureFixed32ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fixed32Value_);
onChanged();
return this;
}
/**
* repeated fixed32 fixed32_value = 7;
*/
public Builder clearFixed32Value() {
fixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private java.util.List boolValue_ = java.util.Collections.emptyList();
private void ensureBoolValueIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = new java.util.ArrayList(boolValue_);
bitField0_ |= 0x00000080;
}
}
/**
* repeated bool bool_value = 8;
*/
public java.util.List
getBoolValueList() {
return java.util.Collections.unmodifiableList(boolValue_);
}
/**
* repeated bool bool_value = 8;
*/
public int getBoolValueCount() {
return boolValue_.size();
}
/**
* repeated bool bool_value = 8;
*/
public boolean getBoolValue(int index) {
return boolValue_.get(index);
}
/**
* repeated bool bool_value = 8;
*/
public Builder setBoolValue(
int index, boolean value) {
ensureBoolValueIsMutable();
boolValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated bool bool_value = 8;
*/
public Builder addBoolValue(boolean value) {
ensureBoolValueIsMutable();
boolValue_.add(value);
onChanged();
return this;
}
/**
* repeated bool bool_value = 8;
*/
public Builder addAllBoolValue(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureBoolValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, boolValue_);
onChanged();
return this;
}
/**
* repeated bool bool_value = 8;
*/
public Builder clearBoolValue() {
boolValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringValueIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = new com.google.protobuf.LazyStringArrayList(stringValue_);
bitField0_ |= 0x00000100;
}
}
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ProtocolStringList
getStringValueList() {
return stringValue_.getUnmodifiableView();
}
/**
* repeated string string_value = 9;
*/
public int getStringValueCount() {
return stringValue_.size();
}
/**
* repeated string string_value = 9;
*/
public java.lang.String getStringValue(int index) {
return stringValue_.get(index);
}
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ByteString
getStringValueBytes(int index) {
return stringValue_.getByteString(index);
}
/**
* repeated string string_value = 9;
*/
public Builder setStringValue(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringValueIsMutable();
stringValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated string string_value = 9;
*/
public Builder addStringValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringValueIsMutable();
stringValue_.add(value);
onChanged();
return this;
}
/**
* repeated string string_value = 9;
*/
public Builder addAllStringValue(
java.lang.Iterable values) {
ensureStringValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringValue_);
onChanged();
return this;
}
/**
* repeated string string_value = 9;
*/
public Builder clearStringValue() {
stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* repeated string string_value = 9;
*/
public Builder addStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringValueIsMutable();
stringValue_.add(value);
onChanged();
return this;
}
private java.util.List bytesValue_ = java.util.Collections.emptyList();
private void ensureBytesValueIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = new java.util.ArrayList(bytesValue_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated bytes bytes_value = 12;
*/
public java.util.List
getBytesValueList() {
return java.util.Collections.unmodifiableList(bytesValue_);
}
/**
* repeated bytes bytes_value = 12;
*/
public int getBytesValueCount() {
return bytesValue_.size();
}
/**
* repeated bytes bytes_value = 12;
*/
public com.google.protobuf.ByteString getBytesValue(int index) {
return bytesValue_.get(index);
}
/**
* repeated bytes bytes_value = 12;
*/
public Builder setBytesValue(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesValueIsMutable();
bytesValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes bytes_value = 12;
*/
public Builder addBytesValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesValueIsMutable();
bytesValue_.add(value);
onChanged();
return this;
}
/**
* repeated bytes bytes_value = 12;
*/
public Builder addAllBytesValue(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureBytesValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bytesValue_);
onChanged();
return this;
}
/**
* repeated bytes bytes_value = 12;
*/
public Builder clearBytesValue() {
bytesValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private java.util.List uint32Value_ = java.util.Collections.emptyList();
private void ensureUint32ValueIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = new java.util.ArrayList(uint32Value_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated uint32 uint32_value = 13;
*/
public java.util.List
getUint32ValueList() {
return java.util.Collections.unmodifiableList(uint32Value_);
}
/**
* repeated uint32 uint32_value = 13;
*/
public int getUint32ValueCount() {
return uint32Value_.size();
}
/**
* repeated uint32 uint32_value = 13;
*/
public int getUint32Value(int index) {
return uint32Value_.get(index);
}
/**
* repeated uint32 uint32_value = 13;
*/
public Builder setUint32Value(
int index, int value) {
ensureUint32ValueIsMutable();
uint32Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 uint32_value = 13;
*/
public Builder addUint32Value(int value) {
ensureUint32ValueIsMutable();
uint32Value_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 uint32_value = 13;
*/
public Builder addAllUint32Value(
java.lang.Iterable extends java.lang.Integer> values) {
ensureUint32ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uint32Value_);
onChanged();
return this;
}
/**
* repeated uint32 uint32_value = 13;
*/
public Builder clearUint32Value() {
uint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private java.util.List sfixed32Value_ = java.util.Collections.emptyList();
private void ensureSfixed32ValueIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = new java.util.ArrayList(sfixed32Value_);
bitField0_ |= 0x00000800;
}
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public java.util.List
getSfixed32ValueList() {
return java.util.Collections.unmodifiableList(sfixed32Value_);
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public int getSfixed32ValueCount() {
return sfixed32Value_.size();
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public int getSfixed32Value(int index) {
return sfixed32Value_.get(index);
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public Builder setSfixed32Value(
int index, int value) {
ensureSfixed32ValueIsMutable();
sfixed32Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public Builder addSfixed32Value(int value) {
ensureSfixed32ValueIsMutable();
sfixed32Value_.add(value);
onChanged();
return this;
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public Builder addAllSfixed32Value(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSfixed32ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sfixed32Value_);
onChanged();
return this;
}
/**
* repeated sfixed32 sfixed32_value = 15;
*/
public Builder clearSfixed32Value() {
sfixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private java.util.List sfixed64Value_ = java.util.Collections.emptyList();
private void ensureSfixed64ValueIsMutable() {
if (!((bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = new java.util.ArrayList(sfixed64Value_);
bitField0_ |= 0x00001000;
}
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public java.util.List
getSfixed64ValueList() {
return java.util.Collections.unmodifiableList(sfixed64Value_);
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public int getSfixed64ValueCount() {
return sfixed64Value_.size();
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public long getSfixed64Value(int index) {
return sfixed64Value_.get(index);
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public Builder setSfixed64Value(
int index, long value) {
ensureSfixed64ValueIsMutable();
sfixed64Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public Builder addSfixed64Value(long value) {
ensureSfixed64ValueIsMutable();
sfixed64Value_.add(value);
onChanged();
return this;
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public Builder addAllSfixed64Value(
java.lang.Iterable extends java.lang.Long> values) {
ensureSfixed64ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sfixed64Value_);
onChanged();
return this;
}
/**
* repeated sfixed64 sfixed64_value = 16;
*/
public Builder clearSfixed64Value() {
sfixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private java.util.List sint32Value_ = java.util.Collections.emptyList();
private void ensureSint32ValueIsMutable() {
if (!((bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = new java.util.ArrayList(sint32Value_);
bitField0_ |= 0x00002000;
}
}
/**
* repeated sint32 sint32_value = 17;
*/
public java.util.List
getSint32ValueList() {
return java.util.Collections.unmodifiableList(sint32Value_);
}
/**
* repeated sint32 sint32_value = 17;
*/
public int getSint32ValueCount() {
return sint32Value_.size();
}
/**
* repeated sint32 sint32_value = 17;
*/
public int getSint32Value(int index) {
return sint32Value_.get(index);
}
/**
* repeated sint32 sint32_value = 17;
*/
public Builder setSint32Value(
int index, int value) {
ensureSint32ValueIsMutable();
sint32Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated sint32 sint32_value = 17;
*/
public Builder addSint32Value(int value) {
ensureSint32ValueIsMutable();
sint32Value_.add(value);
onChanged();
return this;
}
/**
* repeated sint32 sint32_value = 17;
*/
public Builder addAllSint32Value(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSint32ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sint32Value_);
onChanged();
return this;
}
/**
* repeated sint32 sint32_value = 17;
*/
public Builder clearSint32Value() {
sint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
private java.util.List sint64Value_ = java.util.Collections.emptyList();
private void ensureSint64ValueIsMutable() {
if (!((bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = new java.util.ArrayList(sint64Value_);
bitField0_ |= 0x00004000;
}
}
/**
* repeated sint64 sint64_value = 18;
*/
public java.util.List
getSint64ValueList() {
return java.util.Collections.unmodifiableList(sint64Value_);
}
/**
* repeated sint64 sint64_value = 18;
*/
public int getSint64ValueCount() {
return sint64Value_.size();
}
/**
* repeated sint64 sint64_value = 18;
*/
public long getSint64Value(int index) {
return sint64Value_.get(index);
}
/**
* repeated sint64 sint64_value = 18;
*/
public Builder setSint64Value(
int index, long value) {
ensureSint64ValueIsMutable();
sint64Value_.set(index, value);
onChanged();
return this;
}
/**
* repeated sint64 sint64_value = 18;
*/
public Builder addSint64Value(long value) {
ensureSint64ValueIsMutable();
sint64Value_.add(value);
onChanged();
return this;
}
/**
* repeated sint64 sint64_value = 18;
*/
public Builder addAllSint64Value(
java.lang.Iterable extends java.lang.Long> values) {
ensureSint64ValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sint64Value_);
onChanged();
return this;
}
/**
* repeated sint64 sint64_value = 18;
*/
public Builder clearSint64Value() {
sint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
private java.util.List messageValue_ =
java.util.Collections.emptyList();
private void ensureMessageValueIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = new java.util.ArrayList(messageValue_);
bitField0_ |= 0x00008000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.PrimitiveValue, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder, tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder> messageValueBuilder_;
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List getMessageValueList() {
if (messageValueBuilder_ == null) {
return java.util.Collections.unmodifiableList(messageValue_);
} else {
return messageValueBuilder_.getMessageList();
}
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public int getMessageValueCount() {
if (messageValueBuilder_ == null) {
return messageValue_.size();
} else {
return messageValueBuilder_.getCount();
}
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue getMessageValue(int index) {
if (messageValueBuilder_ == null) {
return messageValue_.get(index);
} else {
return messageValueBuilder_.getMessage(index);
}
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder setMessageValue(
int index, tensorflow.contrib.proto.TestExample.PrimitiveValue value) {
if (messageValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageValueIsMutable();
messageValue_.set(index, value);
onChanged();
} else {
messageValueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder setMessageValue(
int index, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder builderForValue) {
if (messageValueBuilder_ == null) {
ensureMessageValueIsMutable();
messageValue_.set(index, builderForValue.build());
onChanged();
} else {
messageValueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder addMessageValue(tensorflow.contrib.proto.TestExample.PrimitiveValue value) {
if (messageValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageValueIsMutable();
messageValue_.add(value);
onChanged();
} else {
messageValueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder addMessageValue(
int index, tensorflow.contrib.proto.TestExample.PrimitiveValue value) {
if (messageValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageValueIsMutable();
messageValue_.add(index, value);
onChanged();
} else {
messageValueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder addMessageValue(
tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder builderForValue) {
if (messageValueBuilder_ == null) {
ensureMessageValueIsMutable();
messageValue_.add(builderForValue.build());
onChanged();
} else {
messageValueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder addMessageValue(
int index, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder builderForValue) {
if (messageValueBuilder_ == null) {
ensureMessageValueIsMutable();
messageValue_.add(index, builderForValue.build());
onChanged();
} else {
messageValueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder addAllMessageValue(
java.lang.Iterable extends tensorflow.contrib.proto.TestExample.PrimitiveValue> values) {
if (messageValueBuilder_ == null) {
ensureMessageValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messageValue_);
onChanged();
} else {
messageValueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder clearMessageValue() {
if (messageValueBuilder_ == null) {
messageValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
} else {
messageValueBuilder_.clear();
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public Builder removeMessageValue(int index) {
if (messageValueBuilder_ == null) {
ensureMessageValueIsMutable();
messageValue_.remove(index);
onChanged();
} else {
messageValueBuilder_.remove(index);
}
return this;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder getMessageValueBuilder(
int index) {
return getMessageValueFieldBuilder().getBuilder(index);
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder getMessageValueOrBuilder(
int index) {
if (messageValueBuilder_ == null) {
return messageValue_.get(index); } else {
return messageValueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueOrBuilderList() {
if (messageValueBuilder_ != null) {
return messageValueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(messageValue_);
}
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder addMessageValueBuilder() {
return getMessageValueFieldBuilder().addBuilder(
tensorflow.contrib.proto.TestExample.PrimitiveValue.getDefaultInstance());
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder addMessageValueBuilder(
int index) {
return getMessageValueFieldBuilder().addBuilder(
index, tensorflow.contrib.proto.TestExample.PrimitiveValue.getDefaultInstance());
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List
getMessageValueBuilderList() {
return getMessageValueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.PrimitiveValue, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder, tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueFieldBuilder() {
if (messageValueBuilder_ == null) {
messageValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tensorflow.contrib.proto.TestExample.PrimitiveValue, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder, tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>(
messageValue_,
((bitField0_ & 0x00008000) == 0x00008000),
getParentForChildren(),
isClean());
messageValue_ = null;
}
return messageValueBuilder_;
}
private double doubleValueWithDefault_ = 1D;
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public boolean hasDoubleValueWithDefault() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public double getDoubleValueWithDefault() {
return doubleValueWithDefault_;
}
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public Builder setDoubleValueWithDefault(double value) {
bitField0_ |= 0x00010000;
doubleValueWithDefault_ = value;
onChanged();
return this;
}
/**
*
* Optional fields with explicitly-specified defaults.
*
*
* optional double double_value_with_default = 20 [default = 1];
*/
public Builder clearDoubleValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00010000);
doubleValueWithDefault_ = 1D;
onChanged();
return this;
}
private float floatValueWithDefault_ = 2F;
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public boolean hasFloatValueWithDefault() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public float getFloatValueWithDefault() {
return floatValueWithDefault_;
}
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public Builder setFloatValueWithDefault(float value) {
bitField0_ |= 0x00020000;
floatValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public Builder clearFloatValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00020000);
floatValueWithDefault_ = 2F;
onChanged();
return this;
}
private long int64ValueWithDefault_ = 3L;
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public boolean hasInt64ValueWithDefault() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public long getInt64ValueWithDefault() {
return int64ValueWithDefault_;
}
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public Builder setInt64ValueWithDefault(long value) {
bitField0_ |= 0x00040000;
int64ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public Builder clearInt64ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00040000);
int64ValueWithDefault_ = 3L;
onChanged();
return this;
}
private long uint64ValueWithDefault_ = 4L;
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public boolean hasUint64ValueWithDefault() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public long getUint64ValueWithDefault() {
return uint64ValueWithDefault_;
}
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public Builder setUint64ValueWithDefault(long value) {
bitField0_ |= 0x00080000;
uint64ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public Builder clearUint64ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00080000);
uint64ValueWithDefault_ = 4L;
onChanged();
return this;
}
private int int32ValueWithDefault_ = 5;
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public boolean hasInt32ValueWithDefault() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public int getInt32ValueWithDefault() {
return int32ValueWithDefault_;
}
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public Builder setInt32ValueWithDefault(int value) {
bitField0_ |= 0x00100000;
int32ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public Builder clearInt32ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00100000);
int32ValueWithDefault_ = 5;
onChanged();
return this;
}
private long fixed64ValueWithDefault_ = 6L;
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public boolean hasFixed64ValueWithDefault() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public long getFixed64ValueWithDefault() {
return fixed64ValueWithDefault_;
}
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public Builder setFixed64ValueWithDefault(long value) {
bitField0_ |= 0x00200000;
fixed64ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public Builder clearFixed64ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00200000);
fixed64ValueWithDefault_ = 6L;
onChanged();
return this;
}
private int fixed32ValueWithDefault_ = 7;
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public boolean hasFixed32ValueWithDefault() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public int getFixed32ValueWithDefault() {
return fixed32ValueWithDefault_;
}
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public Builder setFixed32ValueWithDefault(int value) {
bitField0_ |= 0x00400000;
fixed32ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public Builder clearFixed32ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00400000);
fixed32ValueWithDefault_ = 7;
onChanged();
return this;
}
private boolean boolValueWithDefault_ = true;
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean hasBoolValueWithDefault() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean getBoolValueWithDefault() {
return boolValueWithDefault_;
}
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public Builder setBoolValueWithDefault(boolean value) {
bitField0_ |= 0x00800000;
boolValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public Builder clearBoolValueWithDefault() {
bitField0_ = (bitField0_ & ~0x00800000);
boolValueWithDefault_ = true;
onChanged();
return this;
}
private java.lang.Object stringValueWithDefault_ = "a";
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public boolean hasStringValueWithDefault() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public java.lang.String getStringValueWithDefault() {
java.lang.Object ref = stringValueWithDefault_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
stringValueWithDefault_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public com.google.protobuf.ByteString
getStringValueWithDefaultBytes() {
java.lang.Object ref = stringValueWithDefault_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringValueWithDefault_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public Builder setStringValueWithDefault(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
stringValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public Builder clearStringValueWithDefault() {
bitField0_ = (bitField0_ & ~0x01000000);
stringValueWithDefault_ = getDefaultInstance().getStringValueWithDefault();
onChanged();
return this;
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public Builder setStringValueWithDefaultBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
stringValueWithDefault_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString bytesValueWithDefault_ = com.google.protobuf.Internal.bytesDefaultValue("a longer default string");
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public boolean hasBytesValueWithDefault() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public com.google.protobuf.ByteString getBytesValueWithDefault() {
return bytesValueWithDefault_;
}
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public Builder setBytesValueWithDefault(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x02000000;
bytesValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public Builder clearBytesValueWithDefault() {
bitField0_ = (bitField0_ & ~0x02000000);
bytesValueWithDefault_ = getDefaultInstance().getBytesValueWithDefault();
onChanged();
return this;
}
private int uint32ValueWithDefault_ = 9;
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public boolean hasUint32ValueWithDefault() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public int getUint32ValueWithDefault() {
return uint32ValueWithDefault_;
}
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public Builder setUint32ValueWithDefault(int value) {
bitField0_ |= 0x04000000;
uint32ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public Builder clearUint32ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x04000000);
uint32ValueWithDefault_ = 9;
onChanged();
return this;
}
private int sfixed32ValueWithDefault_ = 10;
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public boolean hasSfixed32ValueWithDefault() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public int getSfixed32ValueWithDefault() {
return sfixed32ValueWithDefault_;
}
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public Builder setSfixed32ValueWithDefault(int value) {
bitField0_ |= 0x08000000;
sfixed32ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public Builder clearSfixed32ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x08000000);
sfixed32ValueWithDefault_ = 10;
onChanged();
return this;
}
private long sfixed64ValueWithDefault_ = 11L;
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public boolean hasSfixed64ValueWithDefault() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public long getSfixed64ValueWithDefault() {
return sfixed64ValueWithDefault_;
}
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public Builder setSfixed64ValueWithDefault(long value) {
bitField0_ |= 0x10000000;
sfixed64ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public Builder clearSfixed64ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x10000000);
sfixed64ValueWithDefault_ = 11L;
onChanged();
return this;
}
private int sint32ValueWithDefault_ = 12;
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public boolean hasSint32ValueWithDefault() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public int getSint32ValueWithDefault() {
return sint32ValueWithDefault_;
}
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public Builder setSint32ValueWithDefault(int value) {
bitField0_ |= 0x20000000;
sint32ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public Builder clearSint32ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x20000000);
sint32ValueWithDefault_ = 12;
onChanged();
return this;
}
private long sint64ValueWithDefault_ = 13L;
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public boolean hasSint64ValueWithDefault() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public long getSint64ValueWithDefault() {
return sint64ValueWithDefault_;
}
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public Builder setSint64ValueWithDefault(long value) {
bitField0_ |= 0x40000000;
sint64ValueWithDefault_ = value;
onChanged();
return this;
}
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public Builder clearSint64ValueWithDefault() {
bitField0_ = (bitField0_ & ~0x40000000);
sint64ValueWithDefault_ = 13L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.contrib.proto.TestValue)
}
// @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.TestValue)
private static final tensorflow.contrib.proto.TestExample.TestValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.TestValue();
}
public static tensorflow.contrib.proto.TestExample.TestValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TestValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TestValue(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.contrib.proto.TestExample.TestValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PackedTestValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.PackedTestValue)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double double_value = 1 [packed = true];
*/
java.util.List getDoubleValueList();
/**
* repeated double double_value = 1 [packed = true];
*/
int getDoubleValueCount();
/**
* repeated double double_value = 1 [packed = true];
*/
double getDoubleValue(int index);
/**
* repeated float float_value = 2 [packed = true];
*/
java.util.List getFloatValueList();
/**
* repeated float float_value = 2 [packed = true];
*/
int getFloatValueCount();
/**
* repeated float float_value = 2 [packed = true];
*/
float getFloatValue(int index);
/**
* repeated int64 int64_value = 3 [packed = true];
*/
java.util.List getInt64ValueList();
/**
* repeated int64 int64_value = 3 [packed = true];
*/
int getInt64ValueCount();
/**
* repeated int64 int64_value = 3 [packed = true];
*/
long getInt64Value(int index);
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
java.util.List getUint64ValueList();
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
int getUint64ValueCount();
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
long getUint64Value(int index);
/**
* repeated int32 int32_value = 5 [packed = true];
*/
java.util.List getInt32ValueList();
/**
* repeated int32 int32_value = 5 [packed = true];
*/
int getInt32ValueCount();
/**
* repeated int32 int32_value = 5 [packed = true];
*/
int getInt32Value(int index);
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
java.util.List getFixed64ValueList();
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
int getFixed64ValueCount();
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
long getFixed64Value(int index);
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
java.util.List getFixed32ValueList();
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
int getFixed32ValueCount();
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
int getFixed32Value(int index);
/**
* repeated bool bool_value = 8 [packed = true];
*/
java.util.List getBoolValueList();
/**
* repeated bool bool_value = 8 [packed = true];
*/
int getBoolValueCount();
/**
* repeated bool bool_value = 8 [packed = true];
*/
boolean getBoolValue(int index);
/**
* repeated string string_value = 9;
*/
java.util.List
getStringValueList();
/**
* repeated string string_value = 9;
*/
int getStringValueCount();
/**
* repeated string string_value = 9;
*/
java.lang.String getStringValue(int index);
/**
* repeated string string_value = 9;
*/
com.google.protobuf.ByteString
getStringValueBytes(int index);
/**
* repeated bytes bytes_value = 12;
*/
java.util.List getBytesValueList();
/**
* repeated bytes bytes_value = 12;
*/
int getBytesValueCount();
/**
* repeated bytes bytes_value = 12;
*/
com.google.protobuf.ByteString getBytesValue(int index);
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
java.util.List getUint32ValueList();
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
int getUint32ValueCount();
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
int getUint32Value(int index);
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
java.util.List getSfixed32ValueList();
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
int getSfixed32ValueCount();
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
int getSfixed32Value(int index);
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
java.util.List getSfixed64ValueList();
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
int getSfixed64ValueCount();
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
long getSfixed64Value(int index);
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
java.util.List getSint32ValueList();
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
int getSint32ValueCount();
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
int getSint32Value(int index);
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
java.util.List getSint64ValueList();
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
int getSint64ValueCount();
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
long getSint64Value(int index);
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
java.util.List
getMessageValueList();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
tensorflow.contrib.proto.TestExample.PrimitiveValue getMessageValue(int index);
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
int getMessageValueCount();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
java.util.List extends tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueOrBuilderList();
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder getMessageValueOrBuilder(
int index);
/**
* optional double double_value_with_default = 20 [default = 1];
*/
boolean hasDoubleValueWithDefault();
/**
* optional double double_value_with_default = 20 [default = 1];
*/
double getDoubleValueWithDefault();
/**
* optional float float_value_with_default = 21 [default = 2];
*/
boolean hasFloatValueWithDefault();
/**
* optional float float_value_with_default = 21 [default = 2];
*/
float getFloatValueWithDefault();
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
boolean hasInt64ValueWithDefault();
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
long getInt64ValueWithDefault();
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
boolean hasUint64ValueWithDefault();
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
long getUint64ValueWithDefault();
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
boolean hasInt32ValueWithDefault();
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
int getInt32ValueWithDefault();
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
boolean hasFixed64ValueWithDefault();
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
long getFixed64ValueWithDefault();
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
boolean hasFixed32ValueWithDefault();
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
int getFixed32ValueWithDefault();
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
boolean hasBoolValueWithDefault();
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
boolean getBoolValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
boolean hasStringValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
java.lang.String getStringValueWithDefault();
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
com.google.protobuf.ByteString
getStringValueWithDefaultBytes();
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
boolean hasBytesValueWithDefault();
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
com.google.protobuf.ByteString getBytesValueWithDefault();
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
boolean hasUint32ValueWithDefault();
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
int getUint32ValueWithDefault();
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
boolean hasSfixed32ValueWithDefault();
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
int getSfixed32ValueWithDefault();
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
boolean hasSfixed64ValueWithDefault();
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
long getSfixed64ValueWithDefault();
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
boolean hasSint32ValueWithDefault();
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
int getSint32ValueWithDefault();
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
boolean hasSint64ValueWithDefault();
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
long getSint64ValueWithDefault();
}
/**
*
* A PackedTestValue looks exactly the same as a TestValue in the text format,
* but the binary serializion is different. We test the packed representations
* by loading the same test cases using this definition instead of TestValue.
* NOTE: This definition must be kept in sync with TestValue in every way except
* the packed=true declaration.
*
*
* Protobuf type {@code tensorflow.contrib.proto.PackedTestValue}
*/
public static final class PackedTestValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.PackedTestValue)
PackedTestValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use PackedTestValue.newBuilder() to construct.
private PackedTestValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PackedTestValue() {
doubleValue_ = java.util.Collections.emptyList();
floatValue_ = java.util.Collections.emptyList();
int64Value_ = java.util.Collections.emptyList();
uint64Value_ = java.util.Collections.emptyList();
int32Value_ = java.util.Collections.emptyList();
fixed64Value_ = java.util.Collections.emptyList();
fixed32Value_ = java.util.Collections.emptyList();
boolValue_ = java.util.Collections.emptyList();
stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bytesValue_ = java.util.Collections.emptyList();
uint32Value_ = java.util.Collections.emptyList();
sfixed32Value_ = java.util.Collections.emptyList();
sfixed64Value_ = java.util.Collections.emptyList();
sint32Value_ = java.util.Collections.emptyList();
sint64Value_ = java.util.Collections.emptyList();
messageValue_ = java.util.Collections.emptyList();
doubleValueWithDefault_ = 1D;
floatValueWithDefault_ = 2F;
int64ValueWithDefault_ = 3L;
uint64ValueWithDefault_ = 4L;
int32ValueWithDefault_ = 5;
fixed64ValueWithDefault_ = 6L;
fixed32ValueWithDefault_ = 7;
boolValueWithDefault_ = true;
stringValueWithDefault_ = "a";
bytesValueWithDefault_ = com.google.protobuf.Internal.bytesDefaultValue("a longer default string");
uint32ValueWithDefault_ = 9;
sfixed32ValueWithDefault_ = 10;
sfixed64ValueWithDefault_ = 11L;
sint32ValueWithDefault_ = 12;
sint64ValueWithDefault_ = 13L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PackedTestValue(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
doubleValue_.add(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
doubleValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
doubleValue_.add(input.readDouble());
}
input.popLimit(limit);
break;
}
case 21: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
floatValue_.add(input.readFloat());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
floatValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
floatValue_.add(input.readFloat());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
int64Value_.add(input.readInt64());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
int64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
int64Value_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
uint64Value_.add(input.readUInt64());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
uint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
uint64Value_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
int32Value_.add(input.readInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
int32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
int32Value_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 49: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
fixed64Value_.add(input.readFixed64());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
fixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
fixed64Value_.add(input.readFixed64());
}
input.popLimit(limit);
break;
}
case 61: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
fixed32Value_.add(input.readFixed32());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
fixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
fixed32Value_.add(input.readFixed32());
}
input.popLimit(limit);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
boolValue_.add(input.readBool());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
boolValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
boolValue_.add(input.readBool());
}
input.popLimit(limit);
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000100;
}
stringValue_.add(bs);
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
bytesValue_.add(input.readBytes());
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
uint32Value_.add(input.readUInt32());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) {
uint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
while (input.getBytesUntilLimit() > 0) {
uint32Value_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 125: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
sfixed32Value_.add(input.readSFixed32());
break;
}
case 122: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) {
sfixed32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
while (input.getBytesUntilLimit() > 0) {
sfixed32Value_.add(input.readSFixed32());
}
input.popLimit(limit);
break;
}
case 129: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
sfixed64Value_.add(input.readSFixed64());
break;
}
case 130: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) {
sfixed64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
while (input.getBytesUntilLimit() > 0) {
sfixed64Value_.add(input.readSFixed64());
}
input.popLimit(limit);
break;
}
case 136: {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
sint32Value_.add(input.readSInt32());
break;
}
case 138: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) {
sint32Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
while (input.getBytesUntilLimit() > 0) {
sint32Value_.add(input.readSInt32());
}
input.popLimit(limit);
break;
}
case 144: {
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
sint64Value_.add(input.readSInt64());
break;
}
case 146: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000) && input.getBytesUntilLimit() > 0) {
sint64Value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
while (input.getBytesUntilLimit() > 0) {
sint64Value_.add(input.readSInt64());
}
input.popLimit(limit);
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
messageValue_.add(
input.readMessage(tensorflow.contrib.proto.TestExample.PrimitiveValue.PARSER, extensionRegistry));
break;
}
case 161: {
bitField0_ |= 0x00000001;
doubleValueWithDefault_ = input.readDouble();
break;
}
case 173: {
bitField0_ |= 0x00000002;
floatValueWithDefault_ = input.readFloat();
break;
}
case 176: {
bitField0_ |= 0x00000004;
int64ValueWithDefault_ = input.readInt64();
break;
}
case 184: {
bitField0_ |= 0x00000008;
uint64ValueWithDefault_ = input.readUInt64();
break;
}
case 192: {
bitField0_ |= 0x00000010;
int32ValueWithDefault_ = input.readInt32();
break;
}
case 201: {
bitField0_ |= 0x00000020;
fixed64ValueWithDefault_ = input.readFixed64();
break;
}
case 213: {
bitField0_ |= 0x00000040;
fixed32ValueWithDefault_ = input.readFixed32();
break;
}
case 216: {
bitField0_ |= 0x00000080;
boolValueWithDefault_ = input.readBool();
break;
}
case 226: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
stringValueWithDefault_ = bs;
break;
}
case 234: {
bitField0_ |= 0x00000200;
bytesValueWithDefault_ = input.readBytes();
break;
}
case 240: {
bitField0_ |= 0x00000400;
uint32ValueWithDefault_ = input.readUInt32();
break;
}
case 253: {
bitField0_ |= 0x00000800;
sfixed32ValueWithDefault_ = input.readSFixed32();
break;
}
case 257: {
bitField0_ |= 0x00001000;
sfixed64ValueWithDefault_ = input.readSFixed64();
break;
}
case 264: {
bitField0_ |= 0x00002000;
sint32ValueWithDefault_ = input.readSInt32();
break;
}
case 272: {
bitField0_ |= 0x00004000;
sint64ValueWithDefault_ = input.readSInt64();
break;
}
default: {
if (!parseUnknownField(
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = java.util.Collections.unmodifiableList(floatValue_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = java.util.Collections.unmodifiableList(int64Value_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = java.util.Collections.unmodifiableList(uint64Value_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = java.util.Collections.unmodifiableList(int32Value_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = java.util.Collections.unmodifiableList(fixed64Value_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = java.util.Collections.unmodifiableList(fixed32Value_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = java.util.Collections.unmodifiableList(boolValue_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = stringValue_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = java.util.Collections.unmodifiableList(bytesValue_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = java.util.Collections.unmodifiableList(uint32Value_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = java.util.Collections.unmodifiableList(sfixed32Value_);
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = java.util.Collections.unmodifiableList(sfixed64Value_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = java.util.Collections.unmodifiableList(sint32Value_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = java.util.Collections.unmodifiableList(sint64Value_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = java.util.Collections.unmodifiableList(messageValue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PackedTestValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.PackedTestValue.class, tensorflow.contrib.proto.TestExample.PackedTestValue.Builder.class);
}
private int bitField0_;
public static final int DOUBLE_VALUE_FIELD_NUMBER = 1;
private java.util.List doubleValue_;
/**
* repeated double double_value = 1 [packed = true];
*/
public java.util.List
getDoubleValueList() {
return doubleValue_;
}
/**
* repeated double double_value = 1 [packed = true];
*/
public int getDoubleValueCount() {
return doubleValue_.size();
}
/**
* repeated double double_value = 1 [packed = true];
*/
public double getDoubleValue(int index) {
return doubleValue_.get(index);
}
private int doubleValueMemoizedSerializedSize = -1;
public static final int FLOAT_VALUE_FIELD_NUMBER = 2;
private java.util.List floatValue_;
/**
* repeated float float_value = 2 [packed = true];
*/
public java.util.List
getFloatValueList() {
return floatValue_;
}
/**
* repeated float float_value = 2 [packed = true];
*/
public int getFloatValueCount() {
return floatValue_.size();
}
/**
* repeated float float_value = 2 [packed = true];
*/
public float getFloatValue(int index) {
return floatValue_.get(index);
}
private int floatValueMemoizedSerializedSize = -1;
public static final int INT64_VALUE_FIELD_NUMBER = 3;
private java.util.List int64Value_;
/**
* repeated int64 int64_value = 3 [packed = true];
*/
public java.util.List
getInt64ValueList() {
return int64Value_;
}
/**
* repeated int64 int64_value = 3 [packed = true];
*/
public int getInt64ValueCount() {
return int64Value_.size();
}
/**
* repeated int64 int64_value = 3 [packed = true];
*/
public long getInt64Value(int index) {
return int64Value_.get(index);
}
private int int64ValueMemoizedSerializedSize = -1;
public static final int UINT64_VALUE_FIELD_NUMBER = 4;
private java.util.List uint64Value_;
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
public java.util.List
getUint64ValueList() {
return uint64Value_;
}
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
public int getUint64ValueCount() {
return uint64Value_.size();
}
/**
* repeated uint64 uint64_value = 4 [packed = true];
*/
public long getUint64Value(int index) {
return uint64Value_.get(index);
}
private int uint64ValueMemoizedSerializedSize = -1;
public static final int INT32_VALUE_FIELD_NUMBER = 5;
private java.util.List int32Value_;
/**
* repeated int32 int32_value = 5 [packed = true];
*/
public java.util.List
getInt32ValueList() {
return int32Value_;
}
/**
* repeated int32 int32_value = 5 [packed = true];
*/
public int getInt32ValueCount() {
return int32Value_.size();
}
/**
* repeated int32 int32_value = 5 [packed = true];
*/
public int getInt32Value(int index) {
return int32Value_.get(index);
}
private int int32ValueMemoizedSerializedSize = -1;
public static final int FIXED64_VALUE_FIELD_NUMBER = 6;
private java.util.List fixed64Value_;
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
public java.util.List
getFixed64ValueList() {
return fixed64Value_;
}
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
public int getFixed64ValueCount() {
return fixed64Value_.size();
}
/**
* repeated fixed64 fixed64_value = 6 [packed = true];
*/
public long getFixed64Value(int index) {
return fixed64Value_.get(index);
}
private int fixed64ValueMemoizedSerializedSize = -1;
public static final int FIXED32_VALUE_FIELD_NUMBER = 7;
private java.util.List fixed32Value_;
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
public java.util.List
getFixed32ValueList() {
return fixed32Value_;
}
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
public int getFixed32ValueCount() {
return fixed32Value_.size();
}
/**
* repeated fixed32 fixed32_value = 7 [packed = true];
*/
public int getFixed32Value(int index) {
return fixed32Value_.get(index);
}
private int fixed32ValueMemoizedSerializedSize = -1;
public static final int BOOL_VALUE_FIELD_NUMBER = 8;
private java.util.List boolValue_;
/**
* repeated bool bool_value = 8 [packed = true];
*/
public java.util.List
getBoolValueList() {
return boolValue_;
}
/**
* repeated bool bool_value = 8 [packed = true];
*/
public int getBoolValueCount() {
return boolValue_.size();
}
/**
* repeated bool bool_value = 8 [packed = true];
*/
public boolean getBoolValue(int index) {
return boolValue_.get(index);
}
private int boolValueMemoizedSerializedSize = -1;
public static final int STRING_VALUE_FIELD_NUMBER = 9;
private com.google.protobuf.LazyStringList stringValue_;
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ProtocolStringList
getStringValueList() {
return stringValue_;
}
/**
* repeated string string_value = 9;
*/
public int getStringValueCount() {
return stringValue_.size();
}
/**
* repeated string string_value = 9;
*/
public java.lang.String getStringValue(int index) {
return stringValue_.get(index);
}
/**
* repeated string string_value = 9;
*/
public com.google.protobuf.ByteString
getStringValueBytes(int index) {
return stringValue_.getByteString(index);
}
public static final int BYTES_VALUE_FIELD_NUMBER = 12;
private java.util.List bytesValue_;
/**
* repeated bytes bytes_value = 12;
*/
public java.util.List
getBytesValueList() {
return bytesValue_;
}
/**
* repeated bytes bytes_value = 12;
*/
public int getBytesValueCount() {
return bytesValue_.size();
}
/**
* repeated bytes bytes_value = 12;
*/
public com.google.protobuf.ByteString getBytesValue(int index) {
return bytesValue_.get(index);
}
public static final int UINT32_VALUE_FIELD_NUMBER = 13;
private java.util.List uint32Value_;
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
public java.util.List
getUint32ValueList() {
return uint32Value_;
}
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
public int getUint32ValueCount() {
return uint32Value_.size();
}
/**
* repeated uint32 uint32_value = 13 [packed = true];
*/
public int getUint32Value(int index) {
return uint32Value_.get(index);
}
private int uint32ValueMemoizedSerializedSize = -1;
public static final int SFIXED32_VALUE_FIELD_NUMBER = 15;
private java.util.List sfixed32Value_;
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
public java.util.List
getSfixed32ValueList() {
return sfixed32Value_;
}
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
public int getSfixed32ValueCount() {
return sfixed32Value_.size();
}
/**
* repeated sfixed32 sfixed32_value = 15 [packed = true];
*/
public int getSfixed32Value(int index) {
return sfixed32Value_.get(index);
}
private int sfixed32ValueMemoizedSerializedSize = -1;
public static final int SFIXED64_VALUE_FIELD_NUMBER = 16;
private java.util.List sfixed64Value_;
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
public java.util.List
getSfixed64ValueList() {
return sfixed64Value_;
}
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
public int getSfixed64ValueCount() {
return sfixed64Value_.size();
}
/**
* repeated sfixed64 sfixed64_value = 16 [packed = true];
*/
public long getSfixed64Value(int index) {
return sfixed64Value_.get(index);
}
private int sfixed64ValueMemoizedSerializedSize = -1;
public static final int SINT32_VALUE_FIELD_NUMBER = 17;
private java.util.List sint32Value_;
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
public java.util.List
getSint32ValueList() {
return sint32Value_;
}
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
public int getSint32ValueCount() {
return sint32Value_.size();
}
/**
* repeated sint32 sint32_value = 17 [packed = true];
*/
public int getSint32Value(int index) {
return sint32Value_.get(index);
}
private int sint32ValueMemoizedSerializedSize = -1;
public static final int SINT64_VALUE_FIELD_NUMBER = 18;
private java.util.List sint64Value_;
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
public java.util.List
getSint64ValueList() {
return sint64Value_;
}
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
public int getSint64ValueCount() {
return sint64Value_.size();
}
/**
* repeated sint64 sint64_value = 18 [packed = true];
*/
public long getSint64Value(int index) {
return sint64Value_.get(index);
}
private int sint64ValueMemoizedSerializedSize = -1;
public static final int MESSAGE_VALUE_FIELD_NUMBER = 19;
private java.util.List messageValue_;
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List getMessageValueList() {
return messageValue_;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public java.util.List extends tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder>
getMessageValueOrBuilderList() {
return messageValue_;
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public int getMessageValueCount() {
return messageValue_.size();
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValue getMessageValue(int index) {
return messageValue_.get(index);
}
/**
* repeated .tensorflow.contrib.proto.PrimitiveValue message_value = 19;
*/
public tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder getMessageValueOrBuilder(
int index) {
return messageValue_.get(index);
}
public static final int DOUBLE_VALUE_WITH_DEFAULT_FIELD_NUMBER = 20;
private double doubleValueWithDefault_;
/**
* optional double double_value_with_default = 20 [default = 1];
*/
public boolean hasDoubleValueWithDefault() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional double double_value_with_default = 20 [default = 1];
*/
public double getDoubleValueWithDefault() {
return doubleValueWithDefault_;
}
public static final int FLOAT_VALUE_WITH_DEFAULT_FIELD_NUMBER = 21;
private float floatValueWithDefault_;
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public boolean hasFloatValueWithDefault() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional float float_value_with_default = 21 [default = 2];
*/
public float getFloatValueWithDefault() {
return floatValueWithDefault_;
}
public static final int INT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 22;
private long int64ValueWithDefault_;
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public boolean hasInt64ValueWithDefault() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 int64_value_with_default = 22 [default = 3];
*/
public long getInt64ValueWithDefault() {
return int64ValueWithDefault_;
}
public static final int UINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 23;
private long uint64ValueWithDefault_;
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public boolean hasUint64ValueWithDefault() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 uint64_value_with_default = 23 [default = 4];
*/
public long getUint64ValueWithDefault() {
return uint64ValueWithDefault_;
}
public static final int INT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 24;
private int int32ValueWithDefault_;
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public boolean hasInt32ValueWithDefault() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 int32_value_with_default = 24 [default = 5];
*/
public int getInt32ValueWithDefault() {
return int32ValueWithDefault_;
}
public static final int FIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 25;
private long fixed64ValueWithDefault_;
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public boolean hasFixed64ValueWithDefault() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional fixed64 fixed64_value_with_default = 25 [default = 6];
*/
public long getFixed64ValueWithDefault() {
return fixed64ValueWithDefault_;
}
public static final int FIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 26;
private int fixed32ValueWithDefault_;
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public boolean hasFixed32ValueWithDefault() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional fixed32 fixed32_value_with_default = 26 [default = 7];
*/
public int getFixed32ValueWithDefault() {
return fixed32ValueWithDefault_;
}
public static final int BOOL_VALUE_WITH_DEFAULT_FIELD_NUMBER = 27;
private boolean boolValueWithDefault_;
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean hasBoolValueWithDefault() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool bool_value_with_default = 27 [default = true];
*/
public boolean getBoolValueWithDefault() {
return boolValueWithDefault_;
}
public static final int STRING_VALUE_WITH_DEFAULT_FIELD_NUMBER = 28;
private volatile java.lang.Object stringValueWithDefault_;
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public boolean hasStringValueWithDefault() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public java.lang.String getStringValueWithDefault() {
java.lang.Object ref = stringValueWithDefault_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
stringValueWithDefault_ = s;
}
return s;
}
}
/**
* optional string string_value_with_default = 28 [default = "a"];
*/
public com.google.protobuf.ByteString
getStringValueWithDefaultBytes() {
java.lang.Object ref = stringValueWithDefault_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringValueWithDefault_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_VALUE_WITH_DEFAULT_FIELD_NUMBER = 29;
private com.google.protobuf.ByteString bytesValueWithDefault_;
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public boolean hasBytesValueWithDefault() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional bytes bytes_value_with_default = 29 [default = "a longer default string"];
*/
public com.google.protobuf.ByteString getBytesValueWithDefault() {
return bytesValueWithDefault_;
}
public static final int UINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 30;
private int uint32ValueWithDefault_;
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public boolean hasUint32ValueWithDefault() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional uint32 uint32_value_with_default = 30 [default = 9];
*/
public int getUint32ValueWithDefault() {
return uint32ValueWithDefault_;
}
public static final int SFIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 31;
private int sfixed32ValueWithDefault_;
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public boolean hasSfixed32ValueWithDefault() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional sfixed32 sfixed32_value_with_default = 31 [default = 10];
*/
public int getSfixed32ValueWithDefault() {
return sfixed32ValueWithDefault_;
}
public static final int SFIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 32;
private long sfixed64ValueWithDefault_;
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public boolean hasSfixed64ValueWithDefault() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional sfixed64 sfixed64_value_with_default = 32 [default = 11];
*/
public long getSfixed64ValueWithDefault() {
return sfixed64ValueWithDefault_;
}
public static final int SINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER = 33;
private int sint32ValueWithDefault_;
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public boolean hasSint32ValueWithDefault() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional sint32 sint32_value_with_default = 33 [default = 12];
*/
public int getSint32ValueWithDefault() {
return sint32ValueWithDefault_;
}
public static final int SINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER = 34;
private long sint64ValueWithDefault_;
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public boolean hasSint64ValueWithDefault() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional sint64 sint64_value_with_default = 34 [default = 13];
*/
public long getSint64ValueWithDefault() {
return sint64ValueWithDefault_;
}
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 {
getSerializedSize();
if (getDoubleValueList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(doubleValueMemoizedSerializedSize);
}
for (int i = 0; i < doubleValue_.size(); i++) {
output.writeDoubleNoTag(doubleValue_.get(i));
}
if (getFloatValueList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(floatValueMemoizedSerializedSize);
}
for (int i = 0; i < floatValue_.size(); i++) {
output.writeFloatNoTag(floatValue_.get(i));
}
if (getInt64ValueList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(int64ValueMemoizedSerializedSize);
}
for (int i = 0; i < int64Value_.size(); i++) {
output.writeInt64NoTag(int64Value_.get(i));
}
if (getUint64ValueList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(uint64ValueMemoizedSerializedSize);
}
for (int i = 0; i < uint64Value_.size(); i++) {
output.writeUInt64NoTag(uint64Value_.get(i));
}
if (getInt32ValueList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(int32ValueMemoizedSerializedSize);
}
for (int i = 0; i < int32Value_.size(); i++) {
output.writeInt32NoTag(int32Value_.get(i));
}
if (getFixed64ValueList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(fixed64ValueMemoizedSerializedSize);
}
for (int i = 0; i < fixed64Value_.size(); i++) {
output.writeFixed64NoTag(fixed64Value_.get(i));
}
if (getFixed32ValueList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(fixed32ValueMemoizedSerializedSize);
}
for (int i = 0; i < fixed32Value_.size(); i++) {
output.writeFixed32NoTag(fixed32Value_.get(i));
}
if (getBoolValueList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(boolValueMemoizedSerializedSize);
}
for (int i = 0; i < boolValue_.size(); i++) {
output.writeBoolNoTag(boolValue_.get(i));
}
for (int i = 0; i < stringValue_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, stringValue_.getRaw(i));
}
for (int i = 0; i < bytesValue_.size(); i++) {
output.writeBytes(12, bytesValue_.get(i));
}
if (getUint32ValueList().size() > 0) {
output.writeUInt32NoTag(106);
output.writeUInt32NoTag(uint32ValueMemoizedSerializedSize);
}
for (int i = 0; i < uint32Value_.size(); i++) {
output.writeUInt32NoTag(uint32Value_.get(i));
}
if (getSfixed32ValueList().size() > 0) {
output.writeUInt32NoTag(122);
output.writeUInt32NoTag(sfixed32ValueMemoizedSerializedSize);
}
for (int i = 0; i < sfixed32Value_.size(); i++) {
output.writeSFixed32NoTag(sfixed32Value_.get(i));
}
if (getSfixed64ValueList().size() > 0) {
output.writeUInt32NoTag(130);
output.writeUInt32NoTag(sfixed64ValueMemoizedSerializedSize);
}
for (int i = 0; i < sfixed64Value_.size(); i++) {
output.writeSFixed64NoTag(sfixed64Value_.get(i));
}
if (getSint32ValueList().size() > 0) {
output.writeUInt32NoTag(138);
output.writeUInt32NoTag(sint32ValueMemoizedSerializedSize);
}
for (int i = 0; i < sint32Value_.size(); i++) {
output.writeSInt32NoTag(sint32Value_.get(i));
}
if (getSint64ValueList().size() > 0) {
output.writeUInt32NoTag(146);
output.writeUInt32NoTag(sint64ValueMemoizedSerializedSize);
}
for (int i = 0; i < sint64Value_.size(); i++) {
output.writeSInt64NoTag(sint64Value_.get(i));
}
for (int i = 0; i < messageValue_.size(); i++) {
output.writeMessage(19, messageValue_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(20, doubleValueWithDefault_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(21, floatValueWithDefault_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(22, int64ValueWithDefault_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(23, uint64ValueWithDefault_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(24, int32ValueWithDefault_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeFixed64(25, fixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeFixed32(26, fixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(27, boolValueWithDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, stringValueWithDefault_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(29, bytesValueWithDefault_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeUInt32(30, uint32ValueWithDefault_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeSFixed32(31, sfixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeSFixed64(32, sfixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeSInt32(33, sint32ValueWithDefault_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeSInt64(34, sint64ValueWithDefault_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getDoubleValueList().size();
size += dataSize;
if (!getDoubleValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
doubleValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getFloatValueList().size();
size += dataSize;
if (!getFloatValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
floatValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < int64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(int64Value_.get(i));
}
size += dataSize;
if (!getInt64ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
int64ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < uint64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(uint64Value_.get(i));
}
size += dataSize;
if (!getUint64ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
uint64ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < int32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(int32Value_.get(i));
}
size += dataSize;
if (!getInt32ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
int32ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getFixed64ValueList().size();
size += dataSize;
if (!getFixed64ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
fixed64ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getFixed32ValueList().size();
size += dataSize;
if (!getFixed32ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
fixed32ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 1 * getBoolValueList().size();
size += dataSize;
if (!getBoolValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
boolValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < stringValue_.size(); i++) {
dataSize += computeStringSizeNoTag(stringValue_.getRaw(i));
}
size += dataSize;
size += 1 * getStringValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < bytesValue_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(bytesValue_.get(i));
}
size += dataSize;
size += 1 * getBytesValueList().size();
}
{
int dataSize = 0;
for (int i = 0; i < uint32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(uint32Value_.get(i));
}
size += dataSize;
if (!getUint32ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
uint32ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getSfixed32ValueList().size();
size += dataSize;
if (!getSfixed32ValueList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sfixed32ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getSfixed64ValueList().size();
size += dataSize;
if (!getSfixed64ValueList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sfixed64ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < sint32Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(sint32Value_.get(i));
}
size += dataSize;
if (!getSint32ValueList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sint32ValueMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < sint64Value_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(sint64Value_.get(i));
}
size += dataSize;
if (!getSint64ValueList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sint64ValueMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < messageValue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, messageValue_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(20, doubleValueWithDefault_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(21, floatValueWithDefault_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(22, int64ValueWithDefault_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(23, uint64ValueWithDefault_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(24, int32ValueWithDefault_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(25, fixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(26, fixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, boolValueWithDefault_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, stringValueWithDefault_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(29, bytesValueWithDefault_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(30, uint32ValueWithDefault_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(31, sfixed32ValueWithDefault_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(32, sfixed64ValueWithDefault_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(33, sint32ValueWithDefault_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(34, sint64ValueWithDefault_);
}
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.contrib.proto.TestExample.PackedTestValue)) {
return super.equals(obj);
}
tensorflow.contrib.proto.TestExample.PackedTestValue other = (tensorflow.contrib.proto.TestExample.PackedTestValue) obj;
boolean result = true;
result = result && getDoubleValueList()
.equals(other.getDoubleValueList());
result = result && getFloatValueList()
.equals(other.getFloatValueList());
result = result && getInt64ValueList()
.equals(other.getInt64ValueList());
result = result && getUint64ValueList()
.equals(other.getUint64ValueList());
result = result && getInt32ValueList()
.equals(other.getInt32ValueList());
result = result && getFixed64ValueList()
.equals(other.getFixed64ValueList());
result = result && getFixed32ValueList()
.equals(other.getFixed32ValueList());
result = result && getBoolValueList()
.equals(other.getBoolValueList());
result = result && getStringValueList()
.equals(other.getStringValueList());
result = result && getBytesValueList()
.equals(other.getBytesValueList());
result = result && getUint32ValueList()
.equals(other.getUint32ValueList());
result = result && getSfixed32ValueList()
.equals(other.getSfixed32ValueList());
result = result && getSfixed64ValueList()
.equals(other.getSfixed64ValueList());
result = result && getSint32ValueList()
.equals(other.getSint32ValueList());
result = result && getSint64ValueList()
.equals(other.getSint64ValueList());
result = result && getMessageValueList()
.equals(other.getMessageValueList());
result = result && (hasDoubleValueWithDefault() == other.hasDoubleValueWithDefault());
if (hasDoubleValueWithDefault()) {
result = result && (
java.lang.Double.doubleToLongBits(getDoubleValueWithDefault())
== java.lang.Double.doubleToLongBits(
other.getDoubleValueWithDefault()));
}
result = result && (hasFloatValueWithDefault() == other.hasFloatValueWithDefault());
if (hasFloatValueWithDefault()) {
result = result && (
java.lang.Float.floatToIntBits(getFloatValueWithDefault())
== java.lang.Float.floatToIntBits(
other.getFloatValueWithDefault()));
}
result = result && (hasInt64ValueWithDefault() == other.hasInt64ValueWithDefault());
if (hasInt64ValueWithDefault()) {
result = result && (getInt64ValueWithDefault()
== other.getInt64ValueWithDefault());
}
result = result && (hasUint64ValueWithDefault() == other.hasUint64ValueWithDefault());
if (hasUint64ValueWithDefault()) {
result = result && (getUint64ValueWithDefault()
== other.getUint64ValueWithDefault());
}
result = result && (hasInt32ValueWithDefault() == other.hasInt32ValueWithDefault());
if (hasInt32ValueWithDefault()) {
result = result && (getInt32ValueWithDefault()
== other.getInt32ValueWithDefault());
}
result = result && (hasFixed64ValueWithDefault() == other.hasFixed64ValueWithDefault());
if (hasFixed64ValueWithDefault()) {
result = result && (getFixed64ValueWithDefault()
== other.getFixed64ValueWithDefault());
}
result = result && (hasFixed32ValueWithDefault() == other.hasFixed32ValueWithDefault());
if (hasFixed32ValueWithDefault()) {
result = result && (getFixed32ValueWithDefault()
== other.getFixed32ValueWithDefault());
}
result = result && (hasBoolValueWithDefault() == other.hasBoolValueWithDefault());
if (hasBoolValueWithDefault()) {
result = result && (getBoolValueWithDefault()
== other.getBoolValueWithDefault());
}
result = result && (hasStringValueWithDefault() == other.hasStringValueWithDefault());
if (hasStringValueWithDefault()) {
result = result && getStringValueWithDefault()
.equals(other.getStringValueWithDefault());
}
result = result && (hasBytesValueWithDefault() == other.hasBytesValueWithDefault());
if (hasBytesValueWithDefault()) {
result = result && getBytesValueWithDefault()
.equals(other.getBytesValueWithDefault());
}
result = result && (hasUint32ValueWithDefault() == other.hasUint32ValueWithDefault());
if (hasUint32ValueWithDefault()) {
result = result && (getUint32ValueWithDefault()
== other.getUint32ValueWithDefault());
}
result = result && (hasSfixed32ValueWithDefault() == other.hasSfixed32ValueWithDefault());
if (hasSfixed32ValueWithDefault()) {
result = result && (getSfixed32ValueWithDefault()
== other.getSfixed32ValueWithDefault());
}
result = result && (hasSfixed64ValueWithDefault() == other.hasSfixed64ValueWithDefault());
if (hasSfixed64ValueWithDefault()) {
result = result && (getSfixed64ValueWithDefault()
== other.getSfixed64ValueWithDefault());
}
result = result && (hasSint32ValueWithDefault() == other.hasSint32ValueWithDefault());
if (hasSint32ValueWithDefault()) {
result = result && (getSint32ValueWithDefault()
== other.getSint32ValueWithDefault());
}
result = result && (hasSint64ValueWithDefault() == other.hasSint64ValueWithDefault());
if (hasSint64ValueWithDefault()) {
result = result && (getSint64ValueWithDefault()
== other.getSint64ValueWithDefault());
}
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 (getDoubleValueCount() > 0) {
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getDoubleValueList().hashCode();
}
if (getFloatValueCount() > 0) {
hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFloatValueList().hashCode();
}
if (getInt64ValueCount() > 0) {
hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInt64ValueList().hashCode();
}
if (getUint64ValueCount() > 0) {
hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getUint64ValueList().hashCode();
}
if (getInt32ValueCount() > 0) {
hash = (37 * hash) + INT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getInt32ValueList().hashCode();
}
if (getFixed64ValueCount() > 0) {
hash = (37 * hash) + FIXED64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFixed64ValueList().hashCode();
}
if (getFixed32ValueCount() > 0) {
hash = (37 * hash) + FIXED32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getFixed32ValueList().hashCode();
}
if (getBoolValueCount() > 0) {
hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBoolValueList().hashCode();
}
if (getStringValueCount() > 0) {
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValueList().hashCode();
}
if (getBytesValueCount() > 0) {
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValueList().hashCode();
}
if (getUint32ValueCount() > 0) {
hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getUint32ValueList().hashCode();
}
if (getSfixed32ValueCount() > 0) {
hash = (37 * hash) + SFIXED32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSfixed32ValueList().hashCode();
}
if (getSfixed64ValueCount() > 0) {
hash = (37 * hash) + SFIXED64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSfixed64ValueList().hashCode();
}
if (getSint32ValueCount() > 0) {
hash = (37 * hash) + SINT32_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSint32ValueList().hashCode();
}
if (getSint64ValueCount() > 0) {
hash = (37 * hash) + SINT64_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getSint64ValueList().hashCode();
}
if (getMessageValueCount() > 0) {
hash = (37 * hash) + MESSAGE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getMessageValueList().hashCode();
}
if (hasDoubleValueWithDefault()) {
hash = (37 * hash) + DOUBLE_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValueWithDefault()));
}
if (hasFloatValueWithDefault()) {
hash = (37 * hash) + FLOAT_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getFloatValueWithDefault());
}
if (hasInt64ValueWithDefault()) {
hash = (37 * hash) + INT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInt64ValueWithDefault());
}
if (hasUint64ValueWithDefault()) {
hash = (37 * hash) + UINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUint64ValueWithDefault());
}
if (hasInt32ValueWithDefault()) {
hash = (37 * hash) + INT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getInt32ValueWithDefault();
}
if (hasFixed64ValueWithDefault()) {
hash = (37 * hash) + FIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFixed64ValueWithDefault());
}
if (hasFixed32ValueWithDefault()) {
hash = (37 * hash) + FIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getFixed32ValueWithDefault();
}
if (hasBoolValueWithDefault()) {
hash = (37 * hash) + BOOL_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValueWithDefault());
}
if (hasStringValueWithDefault()) {
hash = (37 * hash) + STRING_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getStringValueWithDefault().hashCode();
}
if (hasBytesValueWithDefault()) {
hash = (37 * hash) + BYTES_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getBytesValueWithDefault().hashCode();
}
if (hasUint32ValueWithDefault()) {
hash = (37 * hash) + UINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getUint32ValueWithDefault();
}
if (hasSfixed32ValueWithDefault()) {
hash = (37 * hash) + SFIXED32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getSfixed32ValueWithDefault();
}
if (hasSfixed64ValueWithDefault()) {
hash = (37 * hash) + SFIXED64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSfixed64ValueWithDefault());
}
if (hasSint32ValueWithDefault()) {
hash = (37 * hash) + SINT32_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getSint32ValueWithDefault();
}
if (hasSint64ValueWithDefault()) {
hash = (37 * hash) + SINT64_VALUE_WITH_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSint64ValueWithDefault());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue 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.contrib.proto.TestExample.PackedTestValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue 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.contrib.proto.TestExample.PackedTestValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tensorflow.contrib.proto.TestExample.PackedTestValue 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.contrib.proto.TestExample.PackedTestValue 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 PackedTestValue looks exactly the same as a TestValue in the text format,
* but the binary serializion is different. We test the packed representations
* by loading the same test cases using this definition instead of TestValue.
* NOTE: This definition must be kept in sync with TestValue in every way except
* the packed=true declaration.
*
*
* Protobuf type {@code tensorflow.contrib.proto.PackedTestValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.PackedTestValue)
tensorflow.contrib.proto.TestExample.PackedTestValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PackedTestValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tensorflow.contrib.proto.TestExample.PackedTestValue.class, tensorflow.contrib.proto.TestExample.PackedTestValue.Builder.class);
}
// Construct using tensorflow.contrib.proto.TestExample.PackedTestValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessageValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
doubleValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
floatValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
int64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
uint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
int32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
fixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
fixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
boolValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
stringValue_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
bytesValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
uint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
sfixed32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
sfixed64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
sint32Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
sint64Value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
if (messageValueBuilder_ == null) {
messageValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
messageValueBuilder_.clear();
}
doubleValueWithDefault_ = 1D;
bitField0_ = (bitField0_ & ~0x00010000);
floatValueWithDefault_ = 2F;
bitField0_ = (bitField0_ & ~0x00020000);
int64ValueWithDefault_ = 3L;
bitField0_ = (bitField0_ & ~0x00040000);
uint64ValueWithDefault_ = 4L;
bitField0_ = (bitField0_ & ~0x00080000);
int32ValueWithDefault_ = 5;
bitField0_ = (bitField0_ & ~0x00100000);
fixed64ValueWithDefault_ = 6L;
bitField0_ = (bitField0_ & ~0x00200000);
fixed32ValueWithDefault_ = 7;
bitField0_ = (bitField0_ & ~0x00400000);
boolValueWithDefault_ = true;
bitField0_ = (bitField0_ & ~0x00800000);
stringValueWithDefault_ = "a";
bitField0_ = (bitField0_ & ~0x01000000);
bytesValueWithDefault_ = com.google.protobuf.Internal.bytesDefaultValue("a longer default string");
bitField0_ = (bitField0_ & ~0x02000000);
uint32ValueWithDefault_ = 9;
bitField0_ = (bitField0_ & ~0x04000000);
sfixed32ValueWithDefault_ = 10;
bitField0_ = (bitField0_ & ~0x08000000);
sfixed64ValueWithDefault_ = 11L;
bitField0_ = (bitField0_ & ~0x10000000);
sint32ValueWithDefault_ = 12;
bitField0_ = (bitField0_ & ~0x20000000);
sint64ValueWithDefault_ = 13L;
bitField0_ = (bitField0_ & ~0x40000000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.PackedTestValue getDefaultInstanceForType() {
return tensorflow.contrib.proto.TestExample.PackedTestValue.getDefaultInstance();
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.PackedTestValue build() {
tensorflow.contrib.proto.TestExample.PackedTestValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tensorflow.contrib.proto.TestExample.PackedTestValue buildPartial() {
tensorflow.contrib.proto.TestExample.PackedTestValue result = new tensorflow.contrib.proto.TestExample.PackedTestValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = java.util.Collections.unmodifiableList(doubleValue_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.doubleValue_ = doubleValue_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = java.util.Collections.unmodifiableList(floatValue_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.floatValue_ = floatValue_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = java.util.Collections.unmodifiableList(int64Value_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.int64Value_ = int64Value_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
uint64Value_ = java.util.Collections.unmodifiableList(uint64Value_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.uint64Value_ = uint64Value_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
int32Value_ = java.util.Collections.unmodifiableList(int32Value_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.int32Value_ = int32Value_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
fixed64Value_ = java.util.Collections.unmodifiableList(fixed64Value_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.fixed64Value_ = fixed64Value_;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
fixed32Value_ = java.util.Collections.unmodifiableList(fixed32Value_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.fixed32Value_ = fixed32Value_;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
boolValue_ = java.util.Collections.unmodifiableList(boolValue_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.boolValue_ = boolValue_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
stringValue_ = stringValue_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000100);
}
result.stringValue_ = stringValue_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
bytesValue_ = java.util.Collections.unmodifiableList(bytesValue_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.bytesValue_ = bytesValue_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
uint32Value_ = java.util.Collections.unmodifiableList(uint32Value_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.uint32Value_ = uint32Value_;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
sfixed32Value_ = java.util.Collections.unmodifiableList(sfixed32Value_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.sfixed32Value_ = sfixed32Value_;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
sfixed64Value_ = java.util.Collections.unmodifiableList(sfixed64Value_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.sfixed64Value_ = sfixed64Value_;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
sint32Value_ = java.util.Collections.unmodifiableList(sint32Value_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.sint32Value_ = sint32Value_;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
sint64Value_ = java.util.Collections.unmodifiableList(sint64Value_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.sint64Value_ = sint64Value_;
if (messageValueBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
messageValue_ = java.util.Collections.unmodifiableList(messageValue_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.messageValue_ = messageValue_;
} else {
result.messageValue_ = messageValueBuilder_.build();
}
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00000001;
}
result.doubleValueWithDefault_ = doubleValueWithDefault_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00000002;
}
result.floatValueWithDefault_ = floatValueWithDefault_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00000004;
}
result.int64ValueWithDefault_ = int64ValueWithDefault_;
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00000008;
}
result.uint64ValueWithDefault_ = uint64ValueWithDefault_;
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00000010;
}
result.int32ValueWithDefault_ = int32ValueWithDefault_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00000020;
}
result.fixed64ValueWithDefault_ = fixed64ValueWithDefault_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00000040;
}
result.fixed32ValueWithDefault_ = fixed32ValueWithDefault_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00000080;
}
result.boolValueWithDefault_ = boolValueWithDefault_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x00000100;
}
result.stringValueWithDefault_ = stringValueWithDefault_;
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x00000200;
}
result.bytesValueWithDefault_ = bytesValueWithDefault_;
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x00000400;
}
result.uint32ValueWithDefault_ = uint32ValueWithDefault_;
if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
to_bitField0_ |= 0x00000800;
}
result.sfixed32ValueWithDefault_ = sfixed32ValueWithDefault_;
if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
to_bitField0_ |= 0x00001000;
}
result.sfixed64ValueWithDefault_ = sfixed64ValueWithDefault_;
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x00002000;
}
result.sint32ValueWithDefault_ = sint32ValueWithDefault_;
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x00004000;
}
result.sint64ValueWithDefault_ = sint64ValueWithDefault_;
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.contrib.proto.TestExample.PackedTestValue) {
return mergeFrom((tensorflow.contrib.proto.TestExample.PackedTestValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tensorflow.contrib.proto.TestExample.PackedTestValue other) {
if (other == tensorflow.contrib.proto.TestExample.PackedTestValue.getDefaultInstance()) return this;
if (!other.doubleValue_.isEmpty()) {
if (doubleValue_.isEmpty()) {
doubleValue_ = other.doubleValue_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDoubleValueIsMutable();
doubleValue_.addAll(other.doubleValue_);
}
onChanged();
}
if (!other.floatValue_.isEmpty()) {
if (floatValue_.isEmpty()) {
floatValue_ = other.floatValue_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFloatValueIsMutable();
floatValue_.addAll(other.floatValue_);
}
onChanged();
}
if (!other.int64Value_.isEmpty()) {
if (int64Value_.isEmpty()) {
int64Value_ = other.int64Value_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureInt64ValueIsMutable();
int64Value_.addAll(other.int64Value_);
}
onChanged();
}
if (!other.uint64Value_.isEmpty()) {
if (uint64Value_.isEmpty()) {
uint64Value_ = other.uint64Value_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureUint64ValueIsMutable();
uint64Value_.addAll(other.uint64Value_);
}
onChanged();
}
if (!other.int32Value_.isEmpty()) {
if (int32Value_.isEmpty()) {
int32Value_ = other.int32Value_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureInt32ValueIsMutable();
int32Value_.addAll(other.int32Value_);
}
onChanged();
}
if (!other.fixed64Value_.isEmpty()) {
if (fixed64Value_.isEmpty()) {
fixed64Value_ = other.fixed64Value_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureFixed64ValueIsMutable();
fixed64Value_.addAll(other.fixed64Value_);
}
onChanged();
}
if (!other.fixed32Value_.isEmpty()) {
if (fixed32Value_.isEmpty()) {
fixed32Value_ = other.fixed32Value_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureFixed32ValueIsMutable();
fixed32Value_.addAll(other.fixed32Value_);
}
onChanged();
}
if (!other.boolValue_.isEmpty()) {
if (boolValue_.isEmpty()) {
boolValue_ = other.boolValue_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureBoolValueIsMutable();
boolValue_.addAll(other.boolValue_);
}
onChanged();
}
if (!other.stringValue_.isEmpty()) {
if (stringValue_.isEmpty()) {
stringValue_ = other.stringValue_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureStringValueIsMutable();
stringValue_.addAll(other.stringValue_);
}
onChanged();
}
if (!other.bytesValue_.isEmpty()) {
if (bytesValue_.isEmpty()) {
bytesValue_ = other.bytesValue_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureBytesValueIsMutable();
bytesValue_.addAll(other.bytesValue_);
}
onChanged();
}
if (!other.uint32Value_.isEmpty()) {
if (uint32Value_.isEmpty()) {
uint32Value_ = other.uint32Value_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureUint32ValueIsMutable();
uint32Value_.addAll(other.uint32Value_);
}
onChanged();
}
if (!other.sfixed32Value_.isEmpty()) {
if (sfixed32Value_.isEmpty()) {
sfixed32Value_ = other.sfixed32Value_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureSfixed32ValueIsMutable();
sfixed32Value_.addAll(other.sfixed32Value_);
}
onChanged();
}
if (!other.sfixed64Value_.isEmpty()) {
if (sfixed64Value_.isEmpty()) {
sfixed64Value_ = other.sfixed64Value_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureSfixed64ValueIsMutable();
sfixed64Value_.addAll(other.sfixed64Value_);
}
onChanged();
}
if (!other.sint32Value_.isEmpty()) {
if (sint32Value_.isEmpty()) {
sint32Value_ = other.sint32Value_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureSint32ValueIsMutable();
sint32Value_.addAll(other.sint32Value_);
}
onChanged();
}
if (!other.sint64Value_.isEmpty()) {
if (sint64Value_.isEmpty()) {
sint64Value_ = other.sint64Value_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureSint64ValueIsMutable();
sint64Value_.addAll(other.sint64Value_);
}
onChanged();
}
if (messageValueBuilder_ == null) {
if (!other.messageValue_.isEmpty()) {
if (messageValue_.isEmpty()) {
messageValue_ = other.messageValue_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureMessageValueIsMutable();
messageValue_.addAll(other.messageValue_);
}
onChanged();
}
} else {
if (!other.messageValue_.isEmpty()) {
if (messageValueBuilder_.isEmpty()) {
messageValueBuilder_.dispose();
messageValueBuilder_ = null;
messageValue_ = other.messageValue_;
bitField0_ = (bitField0_ & ~0x00008000);
messageValueBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessageValueFieldBuilder() : null;
} else {
messageValueBuilder_.addAllMessages(other.messageValue_);
}
}
}
if (other.hasDoubleValueWithDefault()) {
setDoubleValueWithDefault(other.getDoubleValueWithDefault());
}
if (other.hasFloatValueWithDefault()) {
setFloatValueWithDefault(other.getFloatValueWithDefault());
}
if (other.hasInt64ValueWithDefault()) {
setInt64ValueWithDefault(other.getInt64ValueWithDefault());
}
if (other.hasUint64ValueWithDefault()) {
setUint64ValueWithDefault(other.getUint64ValueWithDefault());
}
if (other.hasInt32ValueWithDefault()) {
setInt32ValueWithDefault(other.getInt32ValueWithDefault());
}
if (other.hasFixed64ValueWithDefault()) {
setFixed64ValueWithDefault(other.getFixed64ValueWithDefault());
}
if (other.hasFixed32ValueWithDefault()) {
setFixed32ValueWithDefault(other.getFixed32ValueWithDefault());
}
if (other.hasBoolValueWithDefault()) {
setBoolValueWithDefault(other.getBoolValueWithDefault());
}
if (other.hasStringValueWithDefault()) {
bitField0_ |= 0x01000000;
stringValueWithDefault_ = other.stringValueWithDefault_;
onChanged();
}
if (other.hasBytesValueWithDefault()) {
setBytesValueWithDefault(other.getBytesValueWithDefault());
}
if (other.hasUint32ValueWithDefault()) {
setUint32ValueWithDefault(other.getUint32ValueWithDefault());
}
if (other.hasSfixed32ValueWithDefault()) {
setSfixed32ValueWithDefault(other.getSfixed32ValueWithDefault());
}
if (other.hasSfixed64ValueWithDefault()) {
setSfixed64ValueWithDefault(other.getSfixed64ValueWithDefault());
}
if (other.hasSint32ValueWithDefault()) {
setSint32ValueWithDefault(other.getSint32ValueWithDefault());
}
if (other.hasSint64ValueWithDefault()) {
setSint64ValueWithDefault(other.getSint64ValueWithDefault());
}
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.contrib.proto.TestExample.PackedTestValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (tensorflow.contrib.proto.TestExample.PackedTestValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List doubleValue_ = java.util.Collections.emptyList();
private void ensureDoubleValueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
doubleValue_ = new java.util.ArrayList(doubleValue_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double double_value = 1 [packed = true];
*/
public java.util.List
getDoubleValueList() {
return java.util.Collections.unmodifiableList(doubleValue_);
}
/**
* repeated double double_value = 1 [packed = true];
*/
public int getDoubleValueCount() {
return doubleValue_.size();
}
/**
* repeated double double_value = 1 [packed = true];
*/
public double getDoubleValue(int index) {
return doubleValue_.get(index);
}
/**
* repeated double double_value = 1 [packed = true];
*/
public Builder setDoubleValue(
int index, double value) {
ensureDoubleValueIsMutable();
doubleValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated double double_value = 1 [packed = true];
*/
public Builder addDoubleValue(double value) {
ensureDoubleValueIsMutable();
doubleValue_.add(value);
onChanged();
return this;
}
/**
* repeated double double_value = 1 [packed = true];
*/
public Builder addAllDoubleValue(
java.lang.Iterable extends java.lang.Double> values) {
ensureDoubleValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, doubleValue_);
onChanged();
return this;
}
/**
* repeated double double_value = 1 [packed = true];
*/
public Builder clearDoubleValue() {
doubleValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List floatValue_ = java.util.Collections.emptyList();
private void ensureFloatValueIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
floatValue_ = new java.util.ArrayList(floatValue_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated float float_value = 2 [packed = true];
*/
public java.util.List
getFloatValueList() {
return java.util.Collections.unmodifiableList(floatValue_);
}
/**
* repeated float float_value = 2 [packed = true];
*/
public int getFloatValueCount() {
return floatValue_.size();
}
/**
* repeated float float_value = 2 [packed = true];
*/
public float getFloatValue(int index) {
return floatValue_.get(index);
}
/**
* repeated float float_value = 2 [packed = true];
*/
public Builder setFloatValue(
int index, float value) {
ensureFloatValueIsMutable();
floatValue_.set(index, value);
onChanged();
return this;
}
/**
* repeated float float_value = 2 [packed = true];
*/
public Builder addFloatValue(float value) {
ensureFloatValueIsMutable();
floatValue_.add(value);
onChanged();
return this;
}
/**
* repeated float float_value = 2 [packed = true];
*/
public Builder addAllFloatValue(
java.lang.Iterable extends java.lang.Float> values) {
ensureFloatValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, floatValue_);
onChanged();
return this;
}
/**
* repeated float float_value = 2 [packed = true];
*/
public Builder clearFloatValue() {
floatValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List int64Value_ = java.util.Collections.emptyList();
private void ensureInt64ValueIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
int64Value_ = new java.util.ArrayList