All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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(int64Value_); bitField0_ |= 0x00000004; } } /** * repeated int64 int64_value = 3 [packed = true]; */ public java.util.List getInt64ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated int64 int64_value = 3 [packed = true]; */ public Builder setInt64Value( int index, long value) { ensureInt64ValueIsMutable(); int64Value_.set(index, value); onChanged(); return this; } /** * repeated int64 int64_value = 3 [packed = true]; */ public Builder addInt64Value(long value) { ensureInt64ValueIsMutable(); int64Value_.add(value); onChanged(); return this; } /** * repeated int64 int64_value = 3 [packed = true]; */ public Builder addAllInt64Value( java.lang.Iterable values) { ensureInt64ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, int64Value_); onChanged(); return this; } /** * repeated int64 int64_value = 3 [packed = true]; */ 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 [packed = true]; */ public java.util.List getUint64ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated uint64 uint64_value = 4 [packed = true]; */ public Builder setUint64Value( int index, long value) { ensureUint64ValueIsMutable(); uint64Value_.set(index, value); onChanged(); return this; } /** * repeated uint64 uint64_value = 4 [packed = true]; */ public Builder addUint64Value(long value) { ensureUint64ValueIsMutable(); uint64Value_.add(value); onChanged(); return this; } /** * repeated uint64 uint64_value = 4 [packed = true]; */ public Builder addAllUint64Value( java.lang.Iterable values) { ensureUint64ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uint64Value_); onChanged(); return this; } /** * repeated uint64 uint64_value = 4 [packed = true]; */ 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 [packed = true]; */ public java.util.List getInt32ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated int32 int32_value = 5 [packed = true]; */ public Builder setInt32Value( int index, int value) { ensureInt32ValueIsMutable(); int32Value_.set(index, value); onChanged(); return this; } /** * repeated int32 int32_value = 5 [packed = true]; */ public Builder addInt32Value(int value) { ensureInt32ValueIsMutable(); int32Value_.add(value); onChanged(); return this; } /** * repeated int32 int32_value = 5 [packed = true]; */ public Builder addAllInt32Value( java.lang.Iterable values) { ensureInt32ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, int32Value_); onChanged(); return this; } /** * repeated int32 int32_value = 5 [packed = true]; */ 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 [packed = true]; */ public java.util.List getFixed64ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated fixed64 fixed64_value = 6 [packed = true]; */ public Builder setFixed64Value( int index, long value) { ensureFixed64ValueIsMutable(); fixed64Value_.set(index, value); onChanged(); return this; } /** * repeated fixed64 fixed64_value = 6 [packed = true]; */ public Builder addFixed64Value(long value) { ensureFixed64ValueIsMutable(); fixed64Value_.add(value); onChanged(); return this; } /** * repeated fixed64 fixed64_value = 6 [packed = true]; */ public Builder addAllFixed64Value( java.lang.Iterable values) { ensureFixed64ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fixed64Value_); onChanged(); return this; } /** * repeated fixed64 fixed64_value = 6 [packed = true]; */ 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 [packed = true]; */ public java.util.List getFixed32ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated fixed32 fixed32_value = 7 [packed = true]; */ public Builder setFixed32Value( int index, int value) { ensureFixed32ValueIsMutable(); fixed32Value_.set(index, value); onChanged(); return this; } /** * repeated fixed32 fixed32_value = 7 [packed = true]; */ public Builder addFixed32Value(int value) { ensureFixed32ValueIsMutable(); fixed32Value_.add(value); onChanged(); return this; } /** * repeated fixed32 fixed32_value = 7 [packed = true]; */ public Builder addAllFixed32Value( java.lang.Iterable values) { ensureFixed32ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fixed32Value_); onChanged(); return this; } /** * repeated fixed32 fixed32_value = 7 [packed = true]; */ 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 [packed = true]; */ public java.util.List getBoolValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated bool bool_value = 8 [packed = true]; */ public Builder setBoolValue( int index, boolean value) { ensureBoolValueIsMutable(); boolValue_.set(index, value); onChanged(); return this; } /** * repeated bool bool_value = 8 [packed = true]; */ public Builder addBoolValue(boolean value) { ensureBoolValueIsMutable(); boolValue_.add(value); onChanged(); return this; } /** * repeated bool bool_value = 8 [packed = true]; */ public Builder addAllBoolValue( java.lang.Iterable values) { ensureBoolValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, boolValue_); onChanged(); return this; } /** * repeated bool bool_value = 8 [packed = true]; */ 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 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 [packed = true]; */ public java.util.List getUint32ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated uint32 uint32_value = 13 [packed = true]; */ public Builder setUint32Value( int index, int value) { ensureUint32ValueIsMutable(); uint32Value_.set(index, value); onChanged(); return this; } /** * repeated uint32 uint32_value = 13 [packed = true]; */ public Builder addUint32Value(int value) { ensureUint32ValueIsMutable(); uint32Value_.add(value); onChanged(); return this; } /** * repeated uint32 uint32_value = 13 [packed = true]; */ public Builder addAllUint32Value( java.lang.Iterable values) { ensureUint32ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uint32Value_); onChanged(); return this; } /** * repeated uint32 uint32_value = 13 [packed = true]; */ 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 [packed = true]; */ public java.util.List getSfixed32ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated sfixed32 sfixed32_value = 15 [packed = true]; */ public Builder setSfixed32Value( int index, int value) { ensureSfixed32ValueIsMutable(); sfixed32Value_.set(index, value); onChanged(); return this; } /** * repeated sfixed32 sfixed32_value = 15 [packed = true]; */ public Builder addSfixed32Value(int value) { ensureSfixed32ValueIsMutable(); sfixed32Value_.add(value); onChanged(); return this; } /** * repeated sfixed32 sfixed32_value = 15 [packed = true]; */ public Builder addAllSfixed32Value( java.lang.Iterable values) { ensureSfixed32ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sfixed32Value_); onChanged(); return this; } /** * repeated sfixed32 sfixed32_value = 15 [packed = true]; */ 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 [packed = true]; */ public java.util.List getSfixed64ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated sfixed64 sfixed64_value = 16 [packed = true]; */ public Builder setSfixed64Value( int index, long value) { ensureSfixed64ValueIsMutable(); sfixed64Value_.set(index, value); onChanged(); return this; } /** * repeated sfixed64 sfixed64_value = 16 [packed = true]; */ public Builder addSfixed64Value(long value) { ensureSfixed64ValueIsMutable(); sfixed64Value_.add(value); onChanged(); return this; } /** * repeated sfixed64 sfixed64_value = 16 [packed = true]; */ public Builder addAllSfixed64Value( java.lang.Iterable values) { ensureSfixed64ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sfixed64Value_); onChanged(); return this; } /** * repeated sfixed64 sfixed64_value = 16 [packed = true]; */ 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 [packed = true]; */ public java.util.List getSint32ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated sint32 sint32_value = 17 [packed = true]; */ public Builder setSint32Value( int index, int value) { ensureSint32ValueIsMutable(); sint32Value_.set(index, value); onChanged(); return this; } /** * repeated sint32 sint32_value = 17 [packed = true]; */ public Builder addSint32Value(int value) { ensureSint32ValueIsMutable(); sint32Value_.add(value); onChanged(); return this; } /** * repeated sint32 sint32_value = 17 [packed = true]; */ public Builder addAllSint32Value( java.lang.Iterable values) { ensureSint32ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sint32Value_); onChanged(); return this; } /** * repeated sint32 sint32_value = 17 [packed = true]; */ 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 [packed = true]; */ public java.util.List getSint64ValueList() { return java.util.Collections.unmodifiableList(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); } /** * repeated sint64 sint64_value = 18 [packed = true]; */ public Builder setSint64Value( int index, long value) { ensureSint64ValueIsMutable(); sint64Value_.set(index, value); onChanged(); return this; } /** * repeated sint64 sint64_value = 18 [packed = true]; */ public Builder addSint64Value(long value) { ensureSint64ValueIsMutable(); sint64Value_.add(value); onChanged(); return this; } /** * repeated sint64 sint64_value = 18 [packed = true]; */ public Builder addAllSint64Value( java.lang.Iterable values) { ensureSint64ValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sint64Value_); onChanged(); return this; } /** * repeated sint64 sint64_value = 18 [packed = true]; */ 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 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 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 double double_value_with_default = 20 [default = 1]; */ public boolean hasDoubleValueWithDefault() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional double double_value_with_default = 20 [default = 1]; */ public double getDoubleValueWithDefault() { return doubleValueWithDefault_; } /** * optional double double_value_with_default = 20 [default = 1]; */ public Builder setDoubleValueWithDefault(double value) { bitField0_ |= 0x00010000; doubleValueWithDefault_ = value; onChanged(); return this; } /** * 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.PackedTestValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.PackedTestValue) private static final tensorflow.contrib.proto.TestExample.PackedTestValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.PackedTestValue(); } public static tensorflow.contrib.proto.TestExample.PackedTestValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PackedTestValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PackedTestValue(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.PackedTestValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimitiveValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.PrimitiveValue) com.google.protobuf.MessageOrBuilder { /** * optional double double_value = 1; */ boolean hasDoubleValue(); /** * optional double double_value = 1; */ double getDoubleValue(); /** * optional float float_value = 2; */ boolean hasFloatValue(); /** * optional float float_value = 2; */ float getFloatValue(); /** * optional int64 int64_value = 3; */ boolean hasInt64Value(); /** * optional int64 int64_value = 3; */ long getInt64Value(); /** * optional uint64 uint64_value = 4; */ boolean hasUint64Value(); /** * optional uint64 uint64_value = 4; */ long getUint64Value(); /** * optional int32 int32_value = 5; */ boolean hasInt32Value(); /** * optional int32 int32_value = 5; */ int getInt32Value(); /** * optional fixed64 fixed64_value = 6; */ boolean hasFixed64Value(); /** * optional fixed64 fixed64_value = 6; */ long getFixed64Value(); /** * optional fixed32 fixed32_value = 7; */ boolean hasFixed32Value(); /** * optional fixed32 fixed32_value = 7; */ int getFixed32Value(); /** * optional bool bool_value = 8; */ boolean hasBoolValue(); /** * optional bool bool_value = 8; */ boolean getBoolValue(); /** * optional string string_value = 9; */ boolean hasStringValue(); /** * optional string string_value = 9; */ java.lang.String getStringValue(); /** * optional string string_value = 9; */ com.google.protobuf.ByteString getStringValueBytes(); /** * optional bytes bytes_value = 12; */ boolean hasBytesValue(); /** * optional bytes bytes_value = 12; */ com.google.protobuf.ByteString getBytesValue(); /** * optional uint32 uint32_value = 13; */ boolean hasUint32Value(); /** * optional uint32 uint32_value = 13; */ int getUint32Value(); /** * optional sfixed32 sfixed32_value = 15; */ boolean hasSfixed32Value(); /** * optional sfixed32 sfixed32_value = 15; */ int getSfixed32Value(); /** * optional sfixed64 sfixed64_value = 16; */ boolean hasSfixed64Value(); /** * optional sfixed64 sfixed64_value = 16; */ long getSfixed64Value(); /** * optional sint32 sint32_value = 17; */ boolean hasSint32Value(); /** * optional sint32 sint32_value = 17; */ int getSint32Value(); /** * optional sint64 sint64_value = 18; */ boolean hasSint64Value(); /** * optional sint64 sint64_value = 18; */ long getSint64Value(); } /** * Protobuf type {@code tensorflow.contrib.proto.PrimitiveValue} */ public static final class PrimitiveValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.PrimitiveValue) PrimitiveValueOrBuilder { private static final long serialVersionUID = 0L; // Use PrimitiveValue.newBuilder() to construct. private PrimitiveValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimitiveValue() { doubleValue_ = 0D; floatValue_ = 0F; int64Value_ = 0L; uint64Value_ = 0L; int32Value_ = 0; fixed64Value_ = 0L; fixed32Value_ = 0; boolValue_ = false; stringValue_ = ""; bytesValue_ = com.google.protobuf.ByteString.EMPTY; uint32Value_ = 0; sfixed32Value_ = 0; sfixed64Value_ = 0L; sint32Value_ = 0; sint64Value_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrimitiveValue( 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: { bitField0_ |= 0x00000001; doubleValue_ = input.readDouble(); break; } case 21: { bitField0_ |= 0x00000002; floatValue_ = input.readFloat(); break; } case 24: { bitField0_ |= 0x00000004; int64Value_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; uint64Value_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000010; int32Value_ = input.readInt32(); break; } case 49: { bitField0_ |= 0x00000020; fixed64Value_ = input.readFixed64(); break; } case 61: { bitField0_ |= 0x00000040; fixed32Value_ = input.readFixed32(); break; } case 64: { bitField0_ |= 0x00000080; boolValue_ = input.readBool(); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; stringValue_ = bs; break; } case 98: { bitField0_ |= 0x00000200; bytesValue_ = input.readBytes(); break; } case 104: { bitField0_ |= 0x00000400; uint32Value_ = input.readUInt32(); break; } case 125: { bitField0_ |= 0x00000800; sfixed32Value_ = input.readSFixed32(); break; } case 129: { bitField0_ |= 0x00001000; sfixed64Value_ = input.readSFixed64(); break; } case 136: { bitField0_ |= 0x00002000; sint32Value_ = input.readSInt32(); break; } case 144: { bitField0_ |= 0x00004000; sint64Value_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PrimitiveValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.PrimitiveValue.class, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder.class); } private int bitField0_; public static final int DOUBLE_VALUE_FIELD_NUMBER = 1; private double doubleValue_; /** * optional double double_value = 1; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional double double_value = 1; */ public double getDoubleValue() { return doubleValue_; } public static final int FLOAT_VALUE_FIELD_NUMBER = 2; private float floatValue_; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } public static final int INT64_VALUE_FIELD_NUMBER = 3; private long int64Value_; /** * optional int64 int64_value = 3; */ public boolean hasInt64Value() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 int64_value = 3; */ public long getInt64Value() { return int64Value_; } public static final int UINT64_VALUE_FIELD_NUMBER = 4; private long uint64Value_; /** * optional uint64 uint64_value = 4; */ public boolean hasUint64Value() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 uint64_value = 4; */ public long getUint64Value() { return uint64Value_; } public static final int INT32_VALUE_FIELD_NUMBER = 5; private int int32Value_; /** * optional int32 int32_value = 5; */ public boolean hasInt32Value() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 int32_value = 5; */ public int getInt32Value() { return int32Value_; } public static final int FIXED64_VALUE_FIELD_NUMBER = 6; private long fixed64Value_; /** * optional fixed64 fixed64_value = 6; */ public boolean hasFixed64Value() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional fixed64 fixed64_value = 6; */ public long getFixed64Value() { return fixed64Value_; } public static final int FIXED32_VALUE_FIELD_NUMBER = 7; private int fixed32Value_; /** * optional fixed32 fixed32_value = 7; */ public boolean hasFixed32Value() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional fixed32 fixed32_value = 7; */ public int getFixed32Value() { return fixed32Value_; } public static final int BOOL_VALUE_FIELD_NUMBER = 8; private boolean boolValue_; /** * optional bool bool_value = 8; */ public boolean hasBoolValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool bool_value = 8; */ public boolean getBoolValue() { return boolValue_; } public static final int STRING_VALUE_FIELD_NUMBER = 9; private volatile java.lang.Object stringValue_; /** * optional string string_value = 9; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string string_value = 9; */ public java.lang.String getStringValue() { java.lang.Object ref = stringValue_; 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()) { stringValue_ = s; } return s; } } /** * optional string string_value = 9; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BYTES_VALUE_FIELD_NUMBER = 12; private com.google.protobuf.ByteString bytesValue_; /** * optional bytes bytes_value = 12; */ public boolean hasBytesValue() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes bytes_value = 12; */ public com.google.protobuf.ByteString getBytesValue() { return bytesValue_; } public static final int UINT32_VALUE_FIELD_NUMBER = 13; private int uint32Value_; /** * optional uint32 uint32_value = 13; */ public boolean hasUint32Value() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint32 uint32_value = 13; */ public int getUint32Value() { return uint32Value_; } public static final int SFIXED32_VALUE_FIELD_NUMBER = 15; private int sfixed32Value_; /** * optional sfixed32 sfixed32_value = 15; */ public boolean hasSfixed32Value() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional sfixed32 sfixed32_value = 15; */ public int getSfixed32Value() { return sfixed32Value_; } public static final int SFIXED64_VALUE_FIELD_NUMBER = 16; private long sfixed64Value_; /** * optional sfixed64 sfixed64_value = 16; */ public boolean hasSfixed64Value() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional sfixed64 sfixed64_value = 16; */ public long getSfixed64Value() { return sfixed64Value_; } public static final int SINT32_VALUE_FIELD_NUMBER = 17; private int sint32Value_; /** * optional sint32 sint32_value = 17; */ public boolean hasSint32Value() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional sint32 sint32_value = 17; */ public int getSint32Value() { return sint32Value_; } public static final int SINT64_VALUE_FIELD_NUMBER = 18; private long sint64Value_; /** * optional sint64 sint64_value = 18; */ public boolean hasSint64Value() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional sint64 sint64_value = 18; */ public long getSint64Value() { return sint64Value_; } 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)) { output.writeDouble(1, doubleValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, floatValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, int64Value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, uint64Value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, int32Value_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeFixed64(6, fixed64Value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeFixed32(7, fixed32Value_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, boolValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, stringValue_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(12, bytesValue_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt32(13, uint32Value_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeSFixed32(15, sfixed32Value_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeSFixed64(16, sfixed64Value_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeSInt32(17, sint32Value_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeSInt64(18, sint64Value_); } 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.CodedOutputStream .computeDoubleSize(1, doubleValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, floatValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, int64Value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, uint64Value_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, int32Value_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeFixed64Size(6, fixed64Value_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(7, fixed32Value_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, boolValue_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, stringValue_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, bytesValue_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, uint32Value_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeSFixed32Size(15, sfixed32Value_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeSFixed64Size(16, sfixed64Value_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(17, sint32Value_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(18, sint64Value_); } 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.PrimitiveValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.PrimitiveValue other = (tensorflow.contrib.proto.TestExample.PrimitiveValue) obj; boolean result = true; result = result && (hasDoubleValue() == other.hasDoubleValue()); if (hasDoubleValue()) { result = result && ( java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits( other.getDoubleValue())); } result = result && (hasFloatValue() == other.hasFloatValue()); if (hasFloatValue()) { result = result && ( java.lang.Float.floatToIntBits(getFloatValue()) == java.lang.Float.floatToIntBits( other.getFloatValue())); } result = result && (hasInt64Value() == other.hasInt64Value()); if (hasInt64Value()) { result = result && (getInt64Value() == other.getInt64Value()); } result = result && (hasUint64Value() == other.hasUint64Value()); if (hasUint64Value()) { result = result && (getUint64Value() == other.getUint64Value()); } result = result && (hasInt32Value() == other.hasInt32Value()); if (hasInt32Value()) { result = result && (getInt32Value() == other.getInt32Value()); } result = result && (hasFixed64Value() == other.hasFixed64Value()); if (hasFixed64Value()) { result = result && (getFixed64Value() == other.getFixed64Value()); } result = result && (hasFixed32Value() == other.hasFixed32Value()); if (hasFixed32Value()) { result = result && (getFixed32Value() == other.getFixed32Value()); } result = result && (hasBoolValue() == other.hasBoolValue()); if (hasBoolValue()) { result = result && (getBoolValue() == other.getBoolValue()); } result = result && (hasStringValue() == other.hasStringValue()); if (hasStringValue()) { result = result && getStringValue() .equals(other.getStringValue()); } result = result && (hasBytesValue() == other.hasBytesValue()); if (hasBytesValue()) { result = result && getBytesValue() .equals(other.getBytesValue()); } result = result && (hasUint32Value() == other.hasUint32Value()); if (hasUint32Value()) { result = result && (getUint32Value() == other.getUint32Value()); } result = result && (hasSfixed32Value() == other.hasSfixed32Value()); if (hasSfixed32Value()) { result = result && (getSfixed32Value() == other.getSfixed32Value()); } result = result && (hasSfixed64Value() == other.hasSfixed64Value()); if (hasSfixed64Value()) { result = result && (getSfixed64Value() == other.getSfixed64Value()); } result = result && (hasSint32Value() == other.hasSint32Value()); if (hasSint32Value()) { result = result && (getSint32Value() == other.getSint32Value()); } result = result && (hasSint64Value() == other.hasSint64Value()); if (hasSint64Value()) { result = result && (getSint64Value() == other.getSint64Value()); } 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 (hasDoubleValue()) { hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); } if (hasFloatValue()) { hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); } if (hasInt64Value()) { hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInt64Value()); } if (hasUint64Value()) { hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUint64Value()); } if (hasInt32Value()) { hash = (37 * hash) + INT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getInt32Value(); } if (hasFixed64Value()) { hash = (37 * hash) + FIXED64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFixed64Value()); } if (hasFixed32Value()) { hash = (37 * hash) + FIXED32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getFixed32Value(); } if (hasBoolValue()) { hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); } if (hasStringValue()) { hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); } if (hasBytesValue()) { hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBytesValue().hashCode(); } if (hasUint32Value()) { hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUint32Value(); } if (hasSfixed32Value()) { hash = (37 * hash) + SFIXED32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getSfixed32Value(); } if (hasSfixed64Value()) { hash = (37 * hash) + SFIXED64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSfixed64Value()); } if (hasSint32Value()) { hash = (37 * hash) + SINT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getSint32Value(); } if (hasSint64Value()) { hash = (37 * hash) + SINT64_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSint64Value()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.PrimitiveValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue 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.PrimitiveValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue 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.PrimitiveValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue 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.PrimitiveValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue 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.PrimitiveValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue 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.PrimitiveValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.PrimitiveValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.PrimitiveValue) tensorflow.contrib.proto.TestExample.PrimitiveValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PrimitiveValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.PrimitiveValue.class, tensorflow.contrib.proto.TestExample.PrimitiveValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.PrimitiveValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); doubleValue_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); floatValue_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); int64Value_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); uint64Value_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); int32Value_ = 0; bitField0_ = (bitField0_ & ~0x00000010); fixed64Value_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); fixed32Value_ = 0; bitField0_ = (bitField0_ & ~0x00000040); boolValue_ = false; bitField0_ = (bitField0_ & ~0x00000080); stringValue_ = ""; bitField0_ = (bitField0_ & ~0x00000100); bytesValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); uint32Value_ = 0; bitField0_ = (bitField0_ & ~0x00000400); sfixed32Value_ = 0; bitField0_ = (bitField0_ & ~0x00000800); sfixed64Value_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); sint32Value_ = 0; bitField0_ = (bitField0_ & ~0x00002000); sint64Value_ = 0L; bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.PrimitiveValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.PrimitiveValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.PrimitiveValue build() { tensorflow.contrib.proto.TestExample.PrimitiveValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.PrimitiveValue buildPartial() { tensorflow.contrib.proto.TestExample.PrimitiveValue result = new tensorflow.contrib.proto.TestExample.PrimitiveValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.doubleValue_ = doubleValue_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.floatValue_ = floatValue_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.int64Value_ = int64Value_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.uint64Value_ = uint64Value_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.int32Value_ = int32Value_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.fixed64Value_ = fixed64Value_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.fixed32Value_ = fixed32Value_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.boolValue_ = boolValue_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.stringValue_ = stringValue_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.bytesValue_ = bytesValue_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.uint32Value_ = uint32Value_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.sfixed32Value_ = sfixed32Value_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.sfixed64Value_ = sfixed64Value_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.sint32Value_ = sint32Value_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.sint64Value_ = sint64Value_; 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.PrimitiveValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.PrimitiveValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.PrimitiveValue other) { if (other == tensorflow.contrib.proto.TestExample.PrimitiveValue.getDefaultInstance()) return this; if (other.hasDoubleValue()) { setDoubleValue(other.getDoubleValue()); } if (other.hasFloatValue()) { setFloatValue(other.getFloatValue()); } if (other.hasInt64Value()) { setInt64Value(other.getInt64Value()); } if (other.hasUint64Value()) { setUint64Value(other.getUint64Value()); } if (other.hasInt32Value()) { setInt32Value(other.getInt32Value()); } if (other.hasFixed64Value()) { setFixed64Value(other.getFixed64Value()); } if (other.hasFixed32Value()) { setFixed32Value(other.getFixed32Value()); } if (other.hasBoolValue()) { setBoolValue(other.getBoolValue()); } if (other.hasStringValue()) { bitField0_ |= 0x00000100; stringValue_ = other.stringValue_; onChanged(); } if (other.hasBytesValue()) { setBytesValue(other.getBytesValue()); } if (other.hasUint32Value()) { setUint32Value(other.getUint32Value()); } if (other.hasSfixed32Value()) { setSfixed32Value(other.getSfixed32Value()); } if (other.hasSfixed64Value()) { setSfixed64Value(other.getSfixed64Value()); } if (other.hasSint32Value()) { setSint32Value(other.getSint32Value()); } if (other.hasSint64Value()) { setSint64Value(other.getSint64Value()); } 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.PrimitiveValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.PrimitiveValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double doubleValue_ ; /** * optional double double_value = 1; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional double double_value = 1; */ public double getDoubleValue() { return doubleValue_; } /** * optional double double_value = 1; */ public Builder setDoubleValue(double value) { bitField0_ |= 0x00000001; doubleValue_ = value; onChanged(); return this; } /** * optional double double_value = 1; */ public Builder clearDoubleValue() { bitField0_ = (bitField0_ & ~0x00000001); doubleValue_ = 0D; onChanged(); return this; } private float floatValue_ ; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } /** * optional float float_value = 2; */ public Builder setFloatValue(float value) { bitField0_ |= 0x00000002; floatValue_ = value; onChanged(); return this; } /** * optional float float_value = 2; */ public Builder clearFloatValue() { bitField0_ = (bitField0_ & ~0x00000002); floatValue_ = 0F; onChanged(); return this; } private long int64Value_ ; /** * optional int64 int64_value = 3; */ public boolean hasInt64Value() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 int64_value = 3; */ public long getInt64Value() { return int64Value_; } /** * optional int64 int64_value = 3; */ public Builder setInt64Value(long value) { bitField0_ |= 0x00000004; int64Value_ = value; onChanged(); return this; } /** * optional int64 int64_value = 3; */ public Builder clearInt64Value() { bitField0_ = (bitField0_ & ~0x00000004); int64Value_ = 0L; onChanged(); return this; } private long uint64Value_ ; /** * optional uint64 uint64_value = 4; */ public boolean hasUint64Value() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 uint64_value = 4; */ public long getUint64Value() { return uint64Value_; } /** * optional uint64 uint64_value = 4; */ public Builder setUint64Value(long value) { bitField0_ |= 0x00000008; uint64Value_ = value; onChanged(); return this; } /** * optional uint64 uint64_value = 4; */ public Builder clearUint64Value() { bitField0_ = (bitField0_ & ~0x00000008); uint64Value_ = 0L; onChanged(); return this; } private int int32Value_ ; /** * optional int32 int32_value = 5; */ public boolean hasInt32Value() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 int32_value = 5; */ public int getInt32Value() { return int32Value_; } /** * optional int32 int32_value = 5; */ public Builder setInt32Value(int value) { bitField0_ |= 0x00000010; int32Value_ = value; onChanged(); return this; } /** * optional int32 int32_value = 5; */ public Builder clearInt32Value() { bitField0_ = (bitField0_ & ~0x00000010); int32Value_ = 0; onChanged(); return this; } private long fixed64Value_ ; /** * optional fixed64 fixed64_value = 6; */ public boolean hasFixed64Value() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional fixed64 fixed64_value = 6; */ public long getFixed64Value() { return fixed64Value_; } /** * optional fixed64 fixed64_value = 6; */ public Builder setFixed64Value(long value) { bitField0_ |= 0x00000020; fixed64Value_ = value; onChanged(); return this; } /** * optional fixed64 fixed64_value = 6; */ public Builder clearFixed64Value() { bitField0_ = (bitField0_ & ~0x00000020); fixed64Value_ = 0L; onChanged(); return this; } private int fixed32Value_ ; /** * optional fixed32 fixed32_value = 7; */ public boolean hasFixed32Value() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional fixed32 fixed32_value = 7; */ public int getFixed32Value() { return fixed32Value_; } /** * optional fixed32 fixed32_value = 7; */ public Builder setFixed32Value(int value) { bitField0_ |= 0x00000040; fixed32Value_ = value; onChanged(); return this; } /** * optional fixed32 fixed32_value = 7; */ public Builder clearFixed32Value() { bitField0_ = (bitField0_ & ~0x00000040); fixed32Value_ = 0; onChanged(); return this; } private boolean boolValue_ ; /** * optional bool bool_value = 8; */ public boolean hasBoolValue() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool bool_value = 8; */ public boolean getBoolValue() { return boolValue_; } /** * optional bool bool_value = 8; */ public Builder setBoolValue(boolean value) { bitField0_ |= 0x00000080; boolValue_ = value; onChanged(); return this; } /** * optional bool bool_value = 8; */ public Builder clearBoolValue() { bitField0_ = (bitField0_ & ~0x00000080); boolValue_ = false; onChanged(); return this; } private java.lang.Object stringValue_ = ""; /** * optional string string_value = 9; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string string_value = 9; */ public java.lang.String getStringValue() { java.lang.Object ref = stringValue_; 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()) { stringValue_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string string_value = 9; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string string_value = 9; */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; stringValue_ = value; onChanged(); return this; } /** * optional string string_value = 9; */ public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000100); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } /** * optional string string_value = 9; */ public Builder setStringValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; stringValue_ = value; onChanged(); return this; } private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes bytes_value = 12; */ public boolean hasBytesValue() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bytes bytes_value = 12; */ public com.google.protobuf.ByteString getBytesValue() { return bytesValue_; } /** * optional bytes bytes_value = 12; */ public Builder setBytesValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; bytesValue_ = value; onChanged(); return this; } /** * optional bytes bytes_value = 12; */ public Builder clearBytesValue() { bitField0_ = (bitField0_ & ~0x00000200); bytesValue_ = getDefaultInstance().getBytesValue(); onChanged(); return this; } private int uint32Value_ ; /** * optional uint32 uint32_value = 13; */ public boolean hasUint32Value() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint32 uint32_value = 13; */ public int getUint32Value() { return uint32Value_; } /** * optional uint32 uint32_value = 13; */ public Builder setUint32Value(int value) { bitField0_ |= 0x00000400; uint32Value_ = value; onChanged(); return this; } /** * optional uint32 uint32_value = 13; */ public Builder clearUint32Value() { bitField0_ = (bitField0_ & ~0x00000400); uint32Value_ = 0; onChanged(); return this; } private int sfixed32Value_ ; /** * optional sfixed32 sfixed32_value = 15; */ public boolean hasSfixed32Value() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional sfixed32 sfixed32_value = 15; */ public int getSfixed32Value() { return sfixed32Value_; } /** * optional sfixed32 sfixed32_value = 15; */ public Builder setSfixed32Value(int value) { bitField0_ |= 0x00000800; sfixed32Value_ = value; onChanged(); return this; } /** * optional sfixed32 sfixed32_value = 15; */ public Builder clearSfixed32Value() { bitField0_ = (bitField0_ & ~0x00000800); sfixed32Value_ = 0; onChanged(); return this; } private long sfixed64Value_ ; /** * optional sfixed64 sfixed64_value = 16; */ public boolean hasSfixed64Value() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional sfixed64 sfixed64_value = 16; */ public long getSfixed64Value() { return sfixed64Value_; } /** * optional sfixed64 sfixed64_value = 16; */ public Builder setSfixed64Value(long value) { bitField0_ |= 0x00001000; sfixed64Value_ = value; onChanged(); return this; } /** * optional sfixed64 sfixed64_value = 16; */ public Builder clearSfixed64Value() { bitField0_ = (bitField0_ & ~0x00001000); sfixed64Value_ = 0L; onChanged(); return this; } private int sint32Value_ ; /** * optional sint32 sint32_value = 17; */ public boolean hasSint32Value() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional sint32 sint32_value = 17; */ public int getSint32Value() { return sint32Value_; } /** * optional sint32 sint32_value = 17; */ public Builder setSint32Value(int value) { bitField0_ |= 0x00002000; sint32Value_ = value; onChanged(); return this; } /** * optional sint32 sint32_value = 17; */ public Builder clearSint32Value() { bitField0_ = (bitField0_ & ~0x00002000); sint32Value_ = 0; onChanged(); return this; } private long sint64Value_ ; /** * optional sint64 sint64_value = 18; */ public boolean hasSint64Value() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional sint64 sint64_value = 18; */ public long getSint64Value() { return sint64Value_; } /** * optional sint64 sint64_value = 18; */ public Builder setSint64Value(long value) { bitField0_ |= 0x00004000; sint64Value_ = value; onChanged(); return this; } /** * optional sint64 sint64_value = 18; */ public Builder clearSint64Value() { bitField0_ = (bitField0_ & ~0x00004000); sint64Value_ = 0L; 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.PrimitiveValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.PrimitiveValue) private static final tensorflow.contrib.proto.TestExample.PrimitiveValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.PrimitiveValue(); } public static tensorflow.contrib.proto.TestExample.PrimitiveValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimitiveValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrimitiveValue(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.PrimitiveValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExtraFieldsOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.ExtraFields) com.google.protobuf.MessageOrBuilder { /** * optional string string_value = 1776; */ boolean hasStringValue(); /** * optional string string_value = 1776; */ java.lang.String getStringValue(); /** * optional string string_value = 1776; */ com.google.protobuf.ByteString getStringValueBytes(); /** * optional bool bool_value = 1777; */ boolean hasBoolValue(); /** * optional bool bool_value = 1777; */ boolean getBoolValue(); } /** *
   * Message containing fields with field numbers higher than any field above.
   * An instance of this message is prepended to each binary message in the test
   * to exercise the code path that handles fields encoded out of order of field
   * number.
   * 
* * Protobuf type {@code tensorflow.contrib.proto.ExtraFields} */ public static final class ExtraFields extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.ExtraFields) ExtraFieldsOrBuilder { private static final long serialVersionUID = 0L; // Use ExtraFields.newBuilder() to construct. private ExtraFields(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtraFields() { stringValue_ = ""; boolValue_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtraFields( 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 14210: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; stringValue_ = bs; break; } case 14216: { bitField0_ |= 0x00000002; boolValue_ = input.readBool(); 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_ExtraFields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_ExtraFields_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.ExtraFields.class, tensorflow.contrib.proto.TestExample.ExtraFields.Builder.class); } private int bitField0_; public static final int STRING_VALUE_FIELD_NUMBER = 1776; private volatile java.lang.Object stringValue_; /** * optional string string_value = 1776; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string string_value = 1776; */ public java.lang.String getStringValue() { java.lang.Object ref = stringValue_; 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()) { stringValue_ = s; } return s; } } /** * optional string string_value = 1776; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOL_VALUE_FIELD_NUMBER = 1777; private boolean boolValue_; /** * optional bool bool_value = 1777; */ public boolean hasBoolValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool bool_value = 1777; */ public boolean getBoolValue() { return boolValue_; } 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, 1776, stringValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(1777, boolValue_); } 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(1776, stringValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1777, boolValue_); } 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.ExtraFields)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.ExtraFields other = (tensorflow.contrib.proto.TestExample.ExtraFields) obj; boolean result = true; result = result && (hasStringValue() == other.hasStringValue()); if (hasStringValue()) { result = result && getStringValue() .equals(other.getStringValue()); } result = result && (hasBoolValue() == other.hasBoolValue()); if (hasBoolValue()) { result = result && (getBoolValue() == other.getBoolValue()); } 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 (hasStringValue()) { hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); } if (hasBoolValue()) { hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBoolValue()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.ExtraFields parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.ExtraFields 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.ExtraFields parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.ExtraFields 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.ExtraFields parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.ExtraFields parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.ExtraFields parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.ExtraFields 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.ExtraFields parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.ExtraFields 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.ExtraFields parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.ExtraFields 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.ExtraFields 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; } /** *
     * Message containing fields with field numbers higher than any field above.
     * An instance of this message is prepended to each binary message in the test
     * to exercise the code path that handles fields encoded out of order of field
     * number.
     * 
* * Protobuf type {@code tensorflow.contrib.proto.ExtraFields} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.ExtraFields) tensorflow.contrib.proto.TestExample.ExtraFieldsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_ExtraFields_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_ExtraFields_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.ExtraFields.class, tensorflow.contrib.proto.TestExample.ExtraFields.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.ExtraFields.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); stringValue_ = ""; bitField0_ = (bitField0_ & ~0x00000001); boolValue_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_ExtraFields_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.ExtraFields getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.ExtraFields.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.ExtraFields build() { tensorflow.contrib.proto.TestExample.ExtraFields result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.ExtraFields buildPartial() { tensorflow.contrib.proto.TestExample.ExtraFields result = new tensorflow.contrib.proto.TestExample.ExtraFields(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.stringValue_ = stringValue_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.boolValue_ = boolValue_; 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.ExtraFields) { return mergeFrom((tensorflow.contrib.proto.TestExample.ExtraFields)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.ExtraFields other) { if (other == tensorflow.contrib.proto.TestExample.ExtraFields.getDefaultInstance()) return this; if (other.hasStringValue()) { bitField0_ |= 0x00000001; stringValue_ = other.stringValue_; onChanged(); } if (other.hasBoolValue()) { setBoolValue(other.getBoolValue()); } 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.ExtraFields parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.ExtraFields) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object stringValue_ = ""; /** * optional string string_value = 1776; */ public boolean hasStringValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string string_value = 1776; */ public java.lang.String getStringValue() { java.lang.Object ref = stringValue_; 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()) { stringValue_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string string_value = 1776; */ public com.google.protobuf.ByteString getStringValueBytes() { java.lang.Object ref = stringValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stringValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string string_value = 1776; */ public Builder setStringValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; stringValue_ = value; onChanged(); return this; } /** * optional string string_value = 1776; */ public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000001); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } /** * optional string string_value = 1776; */ public Builder setStringValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; stringValue_ = value; onChanged(); return this; } private boolean boolValue_ ; /** * optional bool bool_value = 1777; */ public boolean hasBoolValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool bool_value = 1777; */ public boolean getBoolValue() { return boolValue_; } /** * optional bool bool_value = 1777; */ public Builder setBoolValue(boolean value) { bitField0_ |= 0x00000002; boolValue_ = value; onChanged(); return this; } /** * optional bool bool_value = 1777; */ public Builder clearBoolValue() { bitField0_ = (bitField0_ & ~0x00000002); boolValue_ = false; 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.ExtraFields) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.ExtraFields) private static final tensorflow.contrib.proto.TestExample.ExtraFields DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.ExtraFields(); } public static tensorflow.contrib.proto.TestExample.ExtraFields getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExtraFields parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtraFields(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.ExtraFields getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.EnumValue) com.google.protobuf.MessageOrBuilder { /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ boolean hasEnumValue(); /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ tensorflow.contrib.proto.TestExample.EnumValue.Color getEnumValue(); /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ java.util.List getRepeatedEnumValueList(); /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ int getRepeatedEnumValueCount(); /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ tensorflow.contrib.proto.TestExample.EnumValue.Color getRepeatedEnumValue(int index); } /** * Protobuf type {@code tensorflow.contrib.proto.EnumValue} */ public static final class EnumValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.EnumValue) EnumValueOrBuilder { private static final long serialVersionUID = 0L; // Use EnumValue.newBuilder() to construct. private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumValue() { enumValue_ = 0; repeatedEnumValue_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumValue( 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 112: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color value = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(14, rawValue); } else { bitField0_ |= 0x00000001; enumValue_ = rawValue; } break; } case 120: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color value = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(15, rawValue); } else { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedEnumValue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } repeatedEnumValue_.add(rawValue); } break; } case 122: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color value = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(15, rawValue); } else { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { repeatedEnumValue_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } repeatedEnumValue_.add(rawValue); } } input.popLimit(oldLimit); 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_ & 0x00000002) == 0x00000002)) { repeatedEnumValue_ = java.util.Collections.unmodifiableList(repeatedEnumValue_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.EnumValue.class, tensorflow.contrib.proto.TestExample.EnumValue.Builder.class); } /** * Protobuf enum {@code tensorflow.contrib.proto.EnumValue.Color} */ public enum Color implements com.google.protobuf.ProtocolMessageEnum { /** * RED = 0; */ RED(0), /** * ORANGE = 1; */ ORANGE(1), /** * YELLOW = 2; */ YELLOW(2), /** * GREEN = 3; */ GREEN(3), /** * BLUE = 4; */ BLUE(4), /** * INDIGO = 5; */ INDIGO(5), /** * VIOLET = 6; */ VIOLET(6), ; /** * RED = 0; */ public static final int RED_VALUE = 0; /** * ORANGE = 1; */ public static final int ORANGE_VALUE = 1; /** * YELLOW = 2; */ public static final int YELLOW_VALUE = 2; /** * GREEN = 3; */ public static final int GREEN_VALUE = 3; /** * BLUE = 4; */ public static final int BLUE_VALUE = 4; /** * INDIGO = 5; */ public static final int INDIGO_VALUE = 5; /** * VIOLET = 6; */ public static final int VIOLET_VALUE = 6; public final int getNumber() { return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Color valueOf(int value) { return forNumber(value); } public static Color forNumber(int value) { switch (value) { case 0: return RED; case 1: return ORANGE; case 2: return YELLOW; case 3: return GREEN; case 4: return BLUE; case 5: return INDIGO; case 6: return VIOLET; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Color> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Color findValueByNumber(int number) { return Color.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.EnumValue.getDescriptor().getEnumTypes().get(0); } private static final Color[] VALUES = values(); public static Color valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Color(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tensorflow.contrib.proto.EnumValue.Color) } private int bitField0_; public static final int ENUM_VALUE_FIELD_NUMBER = 14; private int enumValue_; /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public boolean hasEnumValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public tensorflow.contrib.proto.TestExample.EnumValue.Color getEnumValue() { @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color result = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(enumValue_); return result == null ? tensorflow.contrib.proto.TestExample.EnumValue.Color.RED : result; } public static final int REPEATED_ENUM_VALUE_FIELD_NUMBER = 15; private java.util.List repeatedEnumValue_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, tensorflow.contrib.proto.TestExample.EnumValue.Color> repeatedEnumValue_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, tensorflow.contrib.proto.TestExample.EnumValue.Color>() { public tensorflow.contrib.proto.TestExample.EnumValue.Color convert(java.lang.Integer from) { @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color result = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(from); return result == null ? tensorflow.contrib.proto.TestExample.EnumValue.Color.RED : result; } }; /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public java.util.List getRepeatedEnumValueList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, tensorflow.contrib.proto.TestExample.EnumValue.Color>(repeatedEnumValue_, repeatedEnumValue_converter_); } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public int getRepeatedEnumValueCount() { return repeatedEnumValue_.size(); } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public tensorflow.contrib.proto.TestExample.EnumValue.Color getRepeatedEnumValue(int index) { return repeatedEnumValue_converter_.convert(repeatedEnumValue_.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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(14, enumValue_); } for (int i = 0; i < repeatedEnumValue_.size(); i++) { output.writeEnum(15, repeatedEnumValue_.get(i)); } 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.CodedOutputStream .computeEnumSize(14, enumValue_); } { int dataSize = 0; for (int i = 0; i < repeatedEnumValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(repeatedEnumValue_.get(i)); } size += dataSize; size += 1 * repeatedEnumValue_.size(); } 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.EnumValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.EnumValue other = (tensorflow.contrib.proto.TestExample.EnumValue) obj; boolean result = true; result = result && (hasEnumValue() == other.hasEnumValue()); if (hasEnumValue()) { result = result && enumValue_ == other.enumValue_; } result = result && repeatedEnumValue_.equals(other.repeatedEnumValue_); 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 (hasEnumValue()) { hash = (37 * hash) + ENUM_VALUE_FIELD_NUMBER; hash = (53 * hash) + enumValue_; } if (getRepeatedEnumValueCount() > 0) { hash = (37 * hash) + REPEATED_ENUM_VALUE_FIELD_NUMBER; hash = (53 * hash) + repeatedEnumValue_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.EnumValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.EnumValue 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.EnumValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.EnumValue 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.EnumValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.EnumValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.EnumValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.EnumValue 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.EnumValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.EnumValue 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.EnumValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.EnumValue 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.EnumValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.EnumValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.EnumValue) tensorflow.contrib.proto.TestExample.EnumValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_EnumValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_EnumValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.EnumValue.class, tensorflow.contrib.proto.TestExample.EnumValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.EnumValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); enumValue_ = 0; bitField0_ = (bitField0_ & ~0x00000001); repeatedEnumValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_EnumValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.EnumValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.EnumValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.EnumValue build() { tensorflow.contrib.proto.TestExample.EnumValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.EnumValue buildPartial() { tensorflow.contrib.proto.TestExample.EnumValue result = new tensorflow.contrib.proto.TestExample.EnumValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.enumValue_ = enumValue_; if (((bitField0_ & 0x00000002) == 0x00000002)) { repeatedEnumValue_ = java.util.Collections.unmodifiableList(repeatedEnumValue_); bitField0_ = (bitField0_ & ~0x00000002); } result.repeatedEnumValue_ = repeatedEnumValue_; 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.EnumValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.EnumValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.EnumValue other) { if (other == tensorflow.contrib.proto.TestExample.EnumValue.getDefaultInstance()) return this; if (other.hasEnumValue()) { setEnumValue(other.getEnumValue()); } if (!other.repeatedEnumValue_.isEmpty()) { if (repeatedEnumValue_.isEmpty()) { repeatedEnumValue_ = other.repeatedEnumValue_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepeatedEnumValueIsMutable(); repeatedEnumValue_.addAll(other.repeatedEnumValue_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.contrib.proto.TestExample.EnumValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.EnumValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int enumValue_ = 0; /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public boolean hasEnumValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public tensorflow.contrib.proto.TestExample.EnumValue.Color getEnumValue() { @SuppressWarnings("deprecation") tensorflow.contrib.proto.TestExample.EnumValue.Color result = tensorflow.contrib.proto.TestExample.EnumValue.Color.valueOf(enumValue_); return result == null ? tensorflow.contrib.proto.TestExample.EnumValue.Color.RED : result; } /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public Builder setEnumValue(tensorflow.contrib.proto.TestExample.EnumValue.Color value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; enumValue_ = value.getNumber(); onChanged(); return this; } /** * optional .tensorflow.contrib.proto.EnumValue.Color enum_value = 14; */ public Builder clearEnumValue() { bitField0_ = (bitField0_ & ~0x00000001); enumValue_ = 0; onChanged(); return this; } private java.util.List repeatedEnumValue_ = java.util.Collections.emptyList(); private void ensureRepeatedEnumValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { repeatedEnumValue_ = new java.util.ArrayList(repeatedEnumValue_); bitField0_ |= 0x00000002; } } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public java.util.List getRepeatedEnumValueList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, tensorflow.contrib.proto.TestExample.EnumValue.Color>(repeatedEnumValue_, repeatedEnumValue_converter_); } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public int getRepeatedEnumValueCount() { return repeatedEnumValue_.size(); } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public tensorflow.contrib.proto.TestExample.EnumValue.Color getRepeatedEnumValue(int index) { return repeatedEnumValue_converter_.convert(repeatedEnumValue_.get(index)); } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public Builder setRepeatedEnumValue( int index, tensorflow.contrib.proto.TestExample.EnumValue.Color value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedEnumValueIsMutable(); repeatedEnumValue_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public Builder addRepeatedEnumValue(tensorflow.contrib.proto.TestExample.EnumValue.Color value) { if (value == null) { throw new NullPointerException(); } ensureRepeatedEnumValueIsMutable(); repeatedEnumValue_.add(value.getNumber()); onChanged(); return this; } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public Builder addAllRepeatedEnumValue( java.lang.Iterable values) { ensureRepeatedEnumValueIsMutable(); for (tensorflow.contrib.proto.TestExample.EnumValue.Color value : values) { repeatedEnumValue_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .tensorflow.contrib.proto.EnumValue.Color repeated_enum_value = 15; */ public Builder clearRepeatedEnumValue() { repeatedEnumValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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.EnumValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.EnumValue) private static final tensorflow.contrib.proto.TestExample.EnumValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.EnumValue(); } public static tensorflow.contrib.proto.TestExample.EnumValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnumValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumValue(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.EnumValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InnerMessageValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.InnerMessageValue) com.google.protobuf.MessageOrBuilder { /** * optional float float_value = 2; */ boolean hasFloatValue(); /** * optional float float_value = 2; */ float getFloatValue(); /** * repeated bytes bytes_values = 8; */ java.util.List getBytesValuesList(); /** * repeated bytes bytes_values = 8; */ int getBytesValuesCount(); /** * repeated bytes bytes_values = 8; */ com.google.protobuf.ByteString getBytesValues(int index); } /** * Protobuf type {@code tensorflow.contrib.proto.InnerMessageValue} */ public static final class InnerMessageValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.InnerMessageValue) InnerMessageValueOrBuilder { private static final long serialVersionUID = 0L; // Use InnerMessageValue.newBuilder() to construct. private InnerMessageValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InnerMessageValue() { floatValue_ = 0F; bytesValues_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InnerMessageValue( 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 21: { bitField0_ |= 0x00000001; floatValue_ = input.readFloat(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } bytesValues_.add(input.readBytes()); 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_ & 0x00000002) == 0x00000002)) { bytesValues_ = java.util.Collections.unmodifiableList(bytesValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_InnerMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.InnerMessageValue.class, tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder.class); } private int bitField0_; public static final int FLOAT_VALUE_FIELD_NUMBER = 2; private float floatValue_; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } public static final int BYTES_VALUES_FIELD_NUMBER = 8; private java.util.List bytesValues_; /** * repeated bytes bytes_values = 8; */ public java.util.List getBytesValuesList() { return bytesValues_; } /** * repeated bytes bytes_values = 8; */ public int getBytesValuesCount() { return bytesValues_.size(); } /** * repeated bytes bytes_values = 8; */ public com.google.protobuf.ByteString getBytesValues(int index) { return bytesValues_.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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(2, floatValue_); } for (int i = 0; i < bytesValues_.size(); i++) { output.writeBytes(8, bytesValues_.get(i)); } 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.CodedOutputStream .computeFloatSize(2, floatValue_); } { int dataSize = 0; for (int i = 0; i < bytesValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(bytesValues_.get(i)); } size += dataSize; size += 1 * getBytesValuesList().size(); } 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.InnerMessageValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.InnerMessageValue other = (tensorflow.contrib.proto.TestExample.InnerMessageValue) obj; boolean result = true; result = result && (hasFloatValue() == other.hasFloatValue()); if (hasFloatValue()) { result = result && ( java.lang.Float.floatToIntBits(getFloatValue()) == java.lang.Float.floatToIntBits( other.getFloatValue())); } result = result && getBytesValuesList() .equals(other.getBytesValuesList()); 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 (hasFloatValue()) { hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); } if (getBytesValuesCount() > 0) { hash = (37 * hash) + BYTES_VALUES_FIELD_NUMBER; hash = (53 * hash) + getBytesValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.InnerMessageValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue 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.InnerMessageValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue 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.InnerMessageValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue 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.InnerMessageValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue 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.InnerMessageValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue 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.InnerMessageValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.InnerMessageValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.InnerMessageValue) tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_InnerMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.InnerMessageValue.class, tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.InnerMessageValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); floatValue_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); bytesValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.InnerMessageValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.InnerMessageValue build() { tensorflow.contrib.proto.TestExample.InnerMessageValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.InnerMessageValue buildPartial() { tensorflow.contrib.proto.TestExample.InnerMessageValue result = new tensorflow.contrib.proto.TestExample.InnerMessageValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.floatValue_ = floatValue_; if (((bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = java.util.Collections.unmodifiableList(bytesValues_); bitField0_ = (bitField0_ & ~0x00000002); } result.bytesValues_ = bytesValues_; 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.InnerMessageValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.InnerMessageValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.InnerMessageValue other) { if (other == tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance()) return this; if (other.hasFloatValue()) { setFloatValue(other.getFloatValue()); } if (!other.bytesValues_.isEmpty()) { if (bytesValues_.isEmpty()) { bytesValues_ = other.bytesValues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBytesValuesIsMutable(); bytesValues_.addAll(other.bytesValues_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.contrib.proto.TestExample.InnerMessageValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.InnerMessageValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private float floatValue_ ; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } /** * optional float float_value = 2; */ public Builder setFloatValue(float value) { bitField0_ |= 0x00000001; floatValue_ = value; onChanged(); return this; } /** * optional float float_value = 2; */ public Builder clearFloatValue() { bitField0_ = (bitField0_ & ~0x00000001); floatValue_ = 0F; onChanged(); return this; } private java.util.List bytesValues_ = java.util.Collections.emptyList(); private void ensureBytesValuesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = new java.util.ArrayList(bytesValues_); bitField0_ |= 0x00000002; } } /** * repeated bytes bytes_values = 8; */ public java.util.List getBytesValuesList() { return java.util.Collections.unmodifiableList(bytesValues_); } /** * repeated bytes bytes_values = 8; */ public int getBytesValuesCount() { return bytesValues_.size(); } /** * repeated bytes bytes_values = 8; */ public com.google.protobuf.ByteString getBytesValues(int index) { return bytesValues_.get(index); } /** * repeated bytes bytes_values = 8; */ public Builder setBytesValues( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesValuesIsMutable(); bytesValues_.set(index, value); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder addBytesValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesValuesIsMutable(); bytesValues_.add(value); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder addAllBytesValues( java.lang.Iterable values) { ensureBytesValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bytesValues_); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder clearBytesValues() { bytesValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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.InnerMessageValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.InnerMessageValue) private static final tensorflow.contrib.proto.TestExample.InnerMessageValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.InnerMessageValue(); } public static tensorflow.contrib.proto.TestExample.InnerMessageValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InnerMessageValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InnerMessageValue(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.InnerMessageValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MiddleMessageValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.MiddleMessageValue) com.google.protobuf.MessageOrBuilder { /** * repeated int32 int32_values = 5; */ java.util.List getInt32ValuesList(); /** * repeated int32 int32_values = 5; */ int getInt32ValuesCount(); /** * repeated int32 int32_values = 5; */ int getInt32Values(int index); /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ boolean hasMessageValue(); /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ tensorflow.contrib.proto.TestExample.InnerMessageValue getMessageValue(); /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder getMessageValueOrBuilder(); /** * optional uint32 uint32_value = 13; */ boolean hasUint32Value(); /** * optional uint32 uint32_value = 13; */ int getUint32Value(); } /** * Protobuf type {@code tensorflow.contrib.proto.MiddleMessageValue} */ public static final class MiddleMessageValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.MiddleMessageValue) MiddleMessageValueOrBuilder { private static final long serialVersionUID = 0L; // Use MiddleMessageValue.newBuilder() to construct. private MiddleMessageValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MiddleMessageValue() { int32Values_ = java.util.Collections.emptyList(); uint32Value_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MiddleMessageValue( 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 40: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { int32Values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } int32Values_.add(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { int32Values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { int32Values_.add(input.readInt32()); } input.popLimit(limit); break; } case 90: { tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = messageValue_.toBuilder(); } messageValue_ = input.readMessage(tensorflow.contrib.proto.TestExample.InnerMessageValue.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(messageValue_); messageValue_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 104: { bitField0_ |= 0x00000002; uint32Value_ = input.readUInt32(); 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)) { int32Values_ = java.util.Collections.unmodifiableList(int32Values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MiddleMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MiddleMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.MiddleMessageValue.class, tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder.class); } private int bitField0_; public static final int INT32_VALUES_FIELD_NUMBER = 5; private java.util.List int32Values_; /** * repeated int32 int32_values = 5; */ public java.util.List getInt32ValuesList() { return int32Values_; } /** * repeated int32 int32_values = 5; */ public int getInt32ValuesCount() { return int32Values_.size(); } /** * repeated int32 int32_values = 5; */ public int getInt32Values(int index) { return int32Values_.get(index); } public static final int MESSAGE_VALUE_FIELD_NUMBER = 11; private tensorflow.contrib.proto.TestExample.InnerMessageValue messageValue_; /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public boolean hasMessageValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.InnerMessageValue getMessageValue() { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance() : messageValue_; } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder getMessageValueOrBuilder() { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance() : messageValue_; } public static final int UINT32_VALUE_FIELD_NUMBER = 13; private int uint32Value_; /** * optional uint32 uint32_value = 13; */ public boolean hasUint32Value() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 uint32_value = 13; */ public int getUint32Value() { return uint32Value_; } 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 < int32Values_.size(); i++) { output.writeInt32(5, int32Values_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(11, getMessageValue()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(13, uint32Value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < int32Values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(int32Values_.get(i)); } size += dataSize; size += 1 * getInt32ValuesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMessageValue()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, uint32Value_); } 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.MiddleMessageValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.MiddleMessageValue other = (tensorflow.contrib.proto.TestExample.MiddleMessageValue) obj; boolean result = true; result = result && getInt32ValuesList() .equals(other.getInt32ValuesList()); result = result && (hasMessageValue() == other.hasMessageValue()); if (hasMessageValue()) { result = result && getMessageValue() .equals(other.getMessageValue()); } result = result && (hasUint32Value() == other.hasUint32Value()); if (hasUint32Value()) { result = result && (getUint32Value() == other.getUint32Value()); } 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 (getInt32ValuesCount() > 0) { hash = (37 * hash) + INT32_VALUES_FIELD_NUMBER; hash = (53 * hash) + getInt32ValuesList().hashCode(); } if (hasMessageValue()) { hash = (37 * hash) + MESSAGE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getMessageValue().hashCode(); } if (hasUint32Value()) { hash = (37 * hash) + UINT32_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUint32Value(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue 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.MiddleMessageValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue 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.MiddleMessageValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue 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.MiddleMessageValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue 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.MiddleMessageValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue 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.MiddleMessageValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.MiddleMessageValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.MiddleMessageValue) tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MiddleMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MiddleMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.MiddleMessageValue.class, tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.MiddleMessageValue.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(); int32Values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (messageValueBuilder_ == null) { messageValue_ = null; } else { messageValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); uint32Value_ = 0; 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_MiddleMessageValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.MiddleMessageValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.MiddleMessageValue build() { tensorflow.contrib.proto.TestExample.MiddleMessageValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.MiddleMessageValue buildPartial() { tensorflow.contrib.proto.TestExample.MiddleMessageValue result = new tensorflow.contrib.proto.TestExample.MiddleMessageValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { int32Values_ = java.util.Collections.unmodifiableList(int32Values_); bitField0_ = (bitField0_ & ~0x00000001); } result.int32Values_ = int32Values_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (messageValueBuilder_ == null) { result.messageValue_ = messageValue_; } else { result.messageValue_ = messageValueBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.uint32Value_ = uint32Value_; 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.MiddleMessageValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.MiddleMessageValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.MiddleMessageValue other) { if (other == tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance()) return this; if (!other.int32Values_.isEmpty()) { if (int32Values_.isEmpty()) { int32Values_ = other.int32Values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInt32ValuesIsMutable(); int32Values_.addAll(other.int32Values_); } onChanged(); } if (other.hasMessageValue()) { mergeMessageValue(other.getMessageValue()); } if (other.hasUint32Value()) { setUint32Value(other.getUint32Value()); } 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.MiddleMessageValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.MiddleMessageValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List int32Values_ = java.util.Collections.emptyList(); private void ensureInt32ValuesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { int32Values_ = new java.util.ArrayList(int32Values_); bitField0_ |= 0x00000001; } } /** * repeated int32 int32_values = 5; */ public java.util.List getInt32ValuesList() { return java.util.Collections.unmodifiableList(int32Values_); } /** * repeated int32 int32_values = 5; */ public int getInt32ValuesCount() { return int32Values_.size(); } /** * repeated int32 int32_values = 5; */ public int getInt32Values(int index) { return int32Values_.get(index); } /** * repeated int32 int32_values = 5; */ public Builder setInt32Values( int index, int value) { ensureInt32ValuesIsMutable(); int32Values_.set(index, value); onChanged(); return this; } /** * repeated int32 int32_values = 5; */ public Builder addInt32Values(int value) { ensureInt32ValuesIsMutable(); int32Values_.add(value); onChanged(); return this; } /** * repeated int32 int32_values = 5; */ public Builder addAllInt32Values( java.lang.Iterable values) { ensureInt32ValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, int32Values_); onChanged(); return this; } /** * repeated int32 int32_values = 5; */ public Builder clearInt32Values() { int32Values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private tensorflow.contrib.proto.TestExample.InnerMessageValue messageValue_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.InnerMessageValue, tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder, tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder> messageValueBuilder_; /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public boolean hasMessageValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.InnerMessageValue getMessageValue() { if (messageValueBuilder_ == null) { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance() : messageValue_; } else { return messageValueBuilder_.getMessage(); } } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public Builder setMessageValue(tensorflow.contrib.proto.TestExample.InnerMessageValue value) { if (messageValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageValue_ = value; onChanged(); } else { messageValueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public Builder setMessageValue( tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder builderForValue) { if (messageValueBuilder_ == null) { messageValue_ = builderForValue.build(); onChanged(); } else { messageValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public Builder mergeMessageValue(tensorflow.contrib.proto.TestExample.InnerMessageValue value) { if (messageValueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && messageValue_ != null && messageValue_ != tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance()) { messageValue_ = tensorflow.contrib.proto.TestExample.InnerMessageValue.newBuilder(messageValue_).mergeFrom(value).buildPartial(); } else { messageValue_ = value; } onChanged(); } else { messageValueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public Builder clearMessageValue() { if (messageValueBuilder_ == null) { messageValue_ = null; onChanged(); } else { messageValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder getMessageValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMessageValueFieldBuilder().getBuilder(); } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder getMessageValueOrBuilder() { if (messageValueBuilder_ != null) { return messageValueBuilder_.getMessageOrBuilder(); } else { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.InnerMessageValue.getDefaultInstance() : messageValue_; } } /** * optional .tensorflow.contrib.proto.InnerMessageValue message_value = 11; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.InnerMessageValue, tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder, tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder> getMessageValueFieldBuilder() { if (messageValueBuilder_ == null) { messageValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.InnerMessageValue, tensorflow.contrib.proto.TestExample.InnerMessageValue.Builder, tensorflow.contrib.proto.TestExample.InnerMessageValueOrBuilder>( getMessageValue(), getParentForChildren(), isClean()); messageValue_ = null; } return messageValueBuilder_; } private int uint32Value_ ; /** * optional uint32 uint32_value = 13; */ public boolean hasUint32Value() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 uint32_value = 13; */ public int getUint32Value() { return uint32Value_; } /** * optional uint32 uint32_value = 13; */ public Builder setUint32Value(int value) { bitField0_ |= 0x00000004; uint32Value_ = value; onChanged(); return this; } /** * optional uint32 uint32_value = 13; */ public Builder clearUint32Value() { bitField0_ = (bitField0_ & ~0x00000004); uint32Value_ = 0; 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.MiddleMessageValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.MiddleMessageValue) private static final tensorflow.contrib.proto.TestExample.MiddleMessageValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.MiddleMessageValue(); } public static tensorflow.contrib.proto.TestExample.MiddleMessageValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MiddleMessageValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MiddleMessageValue(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.MiddleMessageValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.MessageValue) com.google.protobuf.MessageOrBuilder { /** * optional double double_value = 1; */ boolean hasDoubleValue(); /** * optional double double_value = 1; */ double getDoubleValue(); /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ boolean hasMessageValue(); /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ tensorflow.contrib.proto.TestExample.MiddleMessageValue getMessageValue(); /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder getMessageValueOrBuilder(); } /** * Protobuf type {@code tensorflow.contrib.proto.MessageValue} */ public static final class MessageValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.MessageValue) MessageValueOrBuilder { private static final long serialVersionUID = 0L; // Use MessageValue.newBuilder() to construct. private MessageValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageValue() { doubleValue_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MessageValue( 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: { bitField0_ |= 0x00000001; doubleValue_ = input.readDouble(); break; } case 90: { tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = messageValue_.toBuilder(); } messageValue_ = input.readMessage(tensorflow.contrib.proto.TestExample.MiddleMessageValue.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(messageValue_); messageValue_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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_MessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.MessageValue.class, tensorflow.contrib.proto.TestExample.MessageValue.Builder.class); } private int bitField0_; public static final int DOUBLE_VALUE_FIELD_NUMBER = 1; private double doubleValue_; /** * optional double double_value = 1; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional double double_value = 1; */ public double getDoubleValue() { return doubleValue_; } public static final int MESSAGE_VALUE_FIELD_NUMBER = 11; private tensorflow.contrib.proto.TestExample.MiddleMessageValue messageValue_; /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public boolean hasMessageValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.MiddleMessageValue getMessageValue() { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance() : messageValue_; } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder getMessageValueOrBuilder() { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance() : messageValue_; } 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)) { output.writeDouble(1, doubleValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(11, getMessageValue()); } 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.CodedOutputStream .computeDoubleSize(1, doubleValue_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMessageValue()); } 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.MessageValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.MessageValue other = (tensorflow.contrib.proto.TestExample.MessageValue) obj; boolean result = true; result = result && (hasDoubleValue() == other.hasDoubleValue()); if (hasDoubleValue()) { result = result && ( java.lang.Double.doubleToLongBits(getDoubleValue()) == java.lang.Double.doubleToLongBits( other.getDoubleValue())); } result = result && (hasMessageValue() == other.hasMessageValue()); if (hasMessageValue()) { result = result && getMessageValue() .equals(other.getMessageValue()); } 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 (hasDoubleValue()) { hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); } if (hasMessageValue()) { hash = (37 * hash) + MESSAGE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getMessageValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.MessageValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MessageValue 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.MessageValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MessageValue 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.MessageValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.MessageValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.MessageValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MessageValue 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.MessageValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MessageValue 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.MessageValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.MessageValue 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.MessageValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.MessageValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.MessageValue) tensorflow.contrib.proto.TestExample.MessageValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.MessageValue.class, tensorflow.contrib.proto.TestExample.MessageValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.MessageValue.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_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); if (messageValueBuilder_ == null) { messageValue_ = null; } else { messageValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_MessageValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.MessageValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.MessageValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.MessageValue build() { tensorflow.contrib.proto.TestExample.MessageValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.MessageValue buildPartial() { tensorflow.contrib.proto.TestExample.MessageValue result = new tensorflow.contrib.proto.TestExample.MessageValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.doubleValue_ = doubleValue_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (messageValueBuilder_ == null) { result.messageValue_ = messageValue_; } else { result.messageValue_ = messageValueBuilder_.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.MessageValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.MessageValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.MessageValue other) { if (other == tensorflow.contrib.proto.TestExample.MessageValue.getDefaultInstance()) return this; if (other.hasDoubleValue()) { setDoubleValue(other.getDoubleValue()); } if (other.hasMessageValue()) { mergeMessageValue(other.getMessageValue()); } 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.MessageValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.MessageValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double doubleValue_ ; /** * optional double double_value = 1; */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional double double_value = 1; */ public double getDoubleValue() { return doubleValue_; } /** * optional double double_value = 1; */ public Builder setDoubleValue(double value) { bitField0_ |= 0x00000001; doubleValue_ = value; onChanged(); return this; } /** * optional double double_value = 1; */ public Builder clearDoubleValue() { bitField0_ = (bitField0_ & ~0x00000001); doubleValue_ = 0D; onChanged(); return this; } private tensorflow.contrib.proto.TestExample.MiddleMessageValue messageValue_ = null; private com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.MiddleMessageValue, tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder, tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder> messageValueBuilder_; /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public boolean hasMessageValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.MiddleMessageValue getMessageValue() { if (messageValueBuilder_ == null) { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance() : messageValue_; } else { return messageValueBuilder_.getMessage(); } } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public Builder setMessageValue(tensorflow.contrib.proto.TestExample.MiddleMessageValue value) { if (messageValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } messageValue_ = value; onChanged(); } else { messageValueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public Builder setMessageValue( tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder builderForValue) { if (messageValueBuilder_ == null) { messageValue_ = builderForValue.build(); onChanged(); } else { messageValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public Builder mergeMessageValue(tensorflow.contrib.proto.TestExample.MiddleMessageValue value) { if (messageValueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && messageValue_ != null && messageValue_ != tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance()) { messageValue_ = tensorflow.contrib.proto.TestExample.MiddleMessageValue.newBuilder(messageValue_).mergeFrom(value).buildPartial(); } else { messageValue_ = value; } onChanged(); } else { messageValueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public Builder clearMessageValue() { if (messageValueBuilder_ == null) { messageValue_ = null; onChanged(); } else { messageValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder getMessageValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMessageValueFieldBuilder().getBuilder(); } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ public tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder getMessageValueOrBuilder() { if (messageValueBuilder_ != null) { return messageValueBuilder_.getMessageOrBuilder(); } else { return messageValue_ == null ? tensorflow.contrib.proto.TestExample.MiddleMessageValue.getDefaultInstance() : messageValue_; } } /** * optional .tensorflow.contrib.proto.MiddleMessageValue message_value = 11; */ private com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.MiddleMessageValue, tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder, tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder> getMessageValueFieldBuilder() { if (messageValueBuilder_ == null) { messageValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tensorflow.contrib.proto.TestExample.MiddleMessageValue, tensorflow.contrib.proto.TestExample.MiddleMessageValue.Builder, tensorflow.contrib.proto.TestExample.MiddleMessageValueOrBuilder>( getMessageValue(), getParentForChildren(), isClean()); messageValue_ = null; } return messageValueBuilder_; } @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.MessageValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.MessageValue) private static final tensorflow.contrib.proto.TestExample.MessageValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.MessageValue(); } public static tensorflow.contrib.proto.TestExample.MessageValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MessageValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageValue(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.MessageValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RepeatedMessageValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.RepeatedMessageValue) com.google.protobuf.MessageOrBuilder { /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ java.util.List getMessageValuesList(); /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue getMessageValues(int index); /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ int getMessageValuesCount(); /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ java.util.List getMessageValuesOrBuilderList(); /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder getMessageValuesOrBuilder( int index); } /** * Protobuf type {@code tensorflow.contrib.proto.RepeatedMessageValue} */ public static final class RepeatedMessageValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.RepeatedMessageValue) RepeatedMessageValueOrBuilder { private static final long serialVersionUID = 0L; // Use RepeatedMessageValue.newBuilder() to construct. private RepeatedMessageValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RepeatedMessageValue() { messageValues_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RepeatedMessageValue( 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 90: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { messageValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } messageValues_.add( input.readMessage(tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.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)) { messageValues_ = java.util.Collections.unmodifiableList(messageValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.class, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.Builder.class); } public interface NestedMessageValueOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue) com.google.protobuf.MessageOrBuilder { /** * optional float float_value = 2; */ boolean hasFloatValue(); /** * optional float float_value = 2; */ float getFloatValue(); /** * repeated bytes bytes_values = 8; */ java.util.List getBytesValuesList(); /** * repeated bytes bytes_values = 8; */ int getBytesValuesCount(); /** * repeated bytes bytes_values = 8; */ com.google.protobuf.ByteString getBytesValues(int index); } /** * Protobuf type {@code tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue} */ public static final class NestedMessageValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue) NestedMessageValueOrBuilder { private static final long serialVersionUID = 0L; // Use NestedMessageValue.newBuilder() to construct. private NestedMessageValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NestedMessageValue() { floatValue_ = 0F; bytesValues_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NestedMessageValue( 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 21: { bitField0_ |= 0x00000001; floatValue_ = input.readFloat(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } bytesValues_.add(input.readBytes()); 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_ & 0x00000002) == 0x00000002)) { bytesValues_ = java.util.Collections.unmodifiableList(bytesValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.class, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder.class); } private int bitField0_; public static final int FLOAT_VALUE_FIELD_NUMBER = 2; private float floatValue_; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } public static final int BYTES_VALUES_FIELD_NUMBER = 8; private java.util.List bytesValues_; /** * repeated bytes bytes_values = 8; */ public java.util.List getBytesValuesList() { return bytesValues_; } /** * repeated bytes bytes_values = 8; */ public int getBytesValuesCount() { return bytesValues_.size(); } /** * repeated bytes bytes_values = 8; */ public com.google.protobuf.ByteString getBytesValues(int index) { return bytesValues_.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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFloat(2, floatValue_); } for (int i = 0; i < bytesValues_.size(); i++) { output.writeBytes(8, bytesValues_.get(i)); } 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.CodedOutputStream .computeFloatSize(2, floatValue_); } { int dataSize = 0; for (int i = 0; i < bytesValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(bytesValues_.get(i)); } size += dataSize; size += 1 * getBytesValuesList().size(); } 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.RepeatedMessageValue.NestedMessageValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue other = (tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue) obj; boolean result = true; result = result && (hasFloatValue() == other.hasFloatValue()); if (hasFloatValue()) { result = result && ( java.lang.Float.floatToIntBits(getFloatValue()) == java.lang.Float.floatToIntBits( other.getFloatValue())); } result = result && getBytesValuesList() .equals(other.getBytesValuesList()); 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 (hasFloatValue()) { hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); } if (getBytesValuesCount() > 0) { hash = (37 * hash) + BYTES_VALUES_FIELD_NUMBER; hash = (53 * hash) + getBytesValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue 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.RepeatedMessageValue.NestedMessageValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue 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.RepeatedMessageValue.NestedMessageValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue 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.RepeatedMessageValue.NestedMessageValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue 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.RepeatedMessageValue.NestedMessageValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue 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.RepeatedMessageValue.NestedMessageValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue) tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.class, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); floatValue_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); bytesValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue build() { tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue buildPartial() { tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue result = new tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.floatValue_ = floatValue_; if (((bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = java.util.Collections.unmodifiableList(bytesValues_); bitField0_ = (bitField0_ & ~0x00000002); } result.bytesValues_ = bytesValues_; 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.RepeatedMessageValue.NestedMessageValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue other) { if (other == tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.getDefaultInstance()) return this; if (other.hasFloatValue()) { setFloatValue(other.getFloatValue()); } if (!other.bytesValues_.isEmpty()) { if (bytesValues_.isEmpty()) { bytesValues_ = other.bytesValues_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBytesValuesIsMutable(); bytesValues_.addAll(other.bytesValues_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private float floatValue_ ; /** * optional float float_value = 2; */ public boolean hasFloatValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional float float_value = 2; */ public float getFloatValue() { return floatValue_; } /** * optional float float_value = 2; */ public Builder setFloatValue(float value) { bitField0_ |= 0x00000001; floatValue_ = value; onChanged(); return this; } /** * optional float float_value = 2; */ public Builder clearFloatValue() { bitField0_ = (bitField0_ & ~0x00000001); floatValue_ = 0F; onChanged(); return this; } private java.util.List bytesValues_ = java.util.Collections.emptyList(); private void ensureBytesValuesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { bytesValues_ = new java.util.ArrayList(bytesValues_); bitField0_ |= 0x00000002; } } /** * repeated bytes bytes_values = 8; */ public java.util.List getBytesValuesList() { return java.util.Collections.unmodifiableList(bytesValues_); } /** * repeated bytes bytes_values = 8; */ public int getBytesValuesCount() { return bytesValues_.size(); } /** * repeated bytes bytes_values = 8; */ public com.google.protobuf.ByteString getBytesValues(int index) { return bytesValues_.get(index); } /** * repeated bytes bytes_values = 8; */ public Builder setBytesValues( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesValuesIsMutable(); bytesValues_.set(index, value); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder addBytesValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBytesValuesIsMutable(); bytesValues_.add(value); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder addAllBytesValues( java.lang.Iterable values) { ensureBytesValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bytesValues_); onChanged(); return this; } /** * repeated bytes bytes_values = 8; */ public Builder clearBytesValues() { bytesValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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.RepeatedMessageValue.NestedMessageValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue) private static final tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue(); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NestedMessageValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NestedMessageValue(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.RepeatedMessageValue.NestedMessageValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MESSAGE_VALUES_FIELD_NUMBER = 11; private java.util.List messageValues_; /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public java.util.List getMessageValuesList() { return messageValues_; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public java.util.List getMessageValuesOrBuilderList() { return messageValues_; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public int getMessageValuesCount() { return messageValues_.size(); } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue getMessageValues(int index) { return messageValues_.get(index); } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder getMessageValuesOrBuilder( int index) { return messageValues_.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 < messageValues_.size(); i++) { output.writeMessage(11, messageValues_.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 < messageValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, messageValues_.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.RepeatedMessageValue)) { return super.equals(obj); } tensorflow.contrib.proto.TestExample.RepeatedMessageValue other = (tensorflow.contrib.proto.TestExample.RepeatedMessageValue) obj; boolean result = true; result = result && getMessageValuesList() .equals(other.getMessageValuesList()); 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 (getMessageValuesCount() > 0) { hash = (37 * hash) + MESSAGE_VALUES_FIELD_NUMBER; hash = (53 * hash) + getMessageValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue 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.RepeatedMessageValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue 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.RepeatedMessageValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue 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.RepeatedMessageValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue 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.RepeatedMessageValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue 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.RepeatedMessageValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code tensorflow.contrib.proto.RepeatedMessageValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.contrib.proto.RepeatedMessageValue) tensorflow.contrib.proto.TestExample.RepeatedMessageValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_fieldAccessorTable .ensureFieldAccessorsInitialized( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.class, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.Builder.class); } // Construct using tensorflow.contrib.proto.TestExample.RepeatedMessageValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMessageValuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (messageValuesBuilder_ == null) { messageValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { messageValuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tensorflow.contrib.proto.TestExample.internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor; } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue getDefaultInstanceForType() { return tensorflow.contrib.proto.TestExample.RepeatedMessageValue.getDefaultInstance(); } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue build() { tensorflow.contrib.proto.TestExample.RepeatedMessageValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tensorflow.contrib.proto.TestExample.RepeatedMessageValue buildPartial() { tensorflow.contrib.proto.TestExample.RepeatedMessageValue result = new tensorflow.contrib.proto.TestExample.RepeatedMessageValue(this); int from_bitField0_ = bitField0_; if (messageValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { messageValues_ = java.util.Collections.unmodifiableList(messageValues_); bitField0_ = (bitField0_ & ~0x00000001); } result.messageValues_ = messageValues_; } else { result.messageValues_ = messageValuesBuilder_.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.RepeatedMessageValue) { return mergeFrom((tensorflow.contrib.proto.TestExample.RepeatedMessageValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tensorflow.contrib.proto.TestExample.RepeatedMessageValue other) { if (other == tensorflow.contrib.proto.TestExample.RepeatedMessageValue.getDefaultInstance()) return this; if (messageValuesBuilder_ == null) { if (!other.messageValues_.isEmpty()) { if (messageValues_.isEmpty()) { messageValues_ = other.messageValues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessageValuesIsMutable(); messageValues_.addAll(other.messageValues_); } onChanged(); } } else { if (!other.messageValues_.isEmpty()) { if (messageValuesBuilder_.isEmpty()) { messageValuesBuilder_.dispose(); messageValuesBuilder_ = null; messageValues_ = other.messageValues_; bitField0_ = (bitField0_ & ~0x00000001); messageValuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessageValuesFieldBuilder() : null; } else { messageValuesBuilder_.addAllMessages(other.messageValues_); } } } 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.RepeatedMessageValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tensorflow.contrib.proto.TestExample.RepeatedMessageValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List messageValues_ = java.util.Collections.emptyList(); private void ensureMessageValuesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { messageValues_ = new java.util.ArrayList(messageValues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder> messageValuesBuilder_; /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public java.util.List getMessageValuesList() { if (messageValuesBuilder_ == null) { return java.util.Collections.unmodifiableList(messageValues_); } else { return messageValuesBuilder_.getMessageList(); } } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public int getMessageValuesCount() { if (messageValuesBuilder_ == null) { return messageValues_.size(); } else { return messageValuesBuilder_.getCount(); } } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue getMessageValues(int index) { if (messageValuesBuilder_ == null) { return messageValues_.get(index); } else { return messageValuesBuilder_.getMessage(index); } } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder setMessageValues( int index, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue value) { if (messageValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageValuesIsMutable(); messageValues_.set(index, value); onChanged(); } else { messageValuesBuilder_.setMessage(index, value); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder setMessageValues( int index, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder builderForValue) { if (messageValuesBuilder_ == null) { ensureMessageValuesIsMutable(); messageValues_.set(index, builderForValue.build()); onChanged(); } else { messageValuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder addMessageValues(tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue value) { if (messageValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageValuesIsMutable(); messageValues_.add(value); onChanged(); } else { messageValuesBuilder_.addMessage(value); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder addMessageValues( int index, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue value) { if (messageValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageValuesIsMutable(); messageValues_.add(index, value); onChanged(); } else { messageValuesBuilder_.addMessage(index, value); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder addMessageValues( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder builderForValue) { if (messageValuesBuilder_ == null) { ensureMessageValuesIsMutable(); messageValues_.add(builderForValue.build()); onChanged(); } else { messageValuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder addMessageValues( int index, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder builderForValue) { if (messageValuesBuilder_ == null) { ensureMessageValuesIsMutable(); messageValues_.add(index, builderForValue.build()); onChanged(); } else { messageValuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder addAllMessageValues( java.lang.Iterable values) { if (messageValuesBuilder_ == null) { ensureMessageValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, messageValues_); onChanged(); } else { messageValuesBuilder_.addAllMessages(values); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder clearMessageValues() { if (messageValuesBuilder_ == null) { messageValues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messageValuesBuilder_.clear(); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public Builder removeMessageValues(int index) { if (messageValuesBuilder_ == null) { ensureMessageValuesIsMutable(); messageValues_.remove(index); onChanged(); } else { messageValuesBuilder_.remove(index); } return this; } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder getMessageValuesBuilder( int index) { return getMessageValuesFieldBuilder().getBuilder(index); } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder getMessageValuesOrBuilder( int index) { if (messageValuesBuilder_ == null) { return messageValues_.get(index); } else { return messageValuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public java.util.List getMessageValuesOrBuilderList() { if (messageValuesBuilder_ != null) { return messageValuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(messageValues_); } } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder addMessageValuesBuilder() { return getMessageValuesFieldBuilder().addBuilder( tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.getDefaultInstance()); } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder addMessageValuesBuilder( int index) { return getMessageValuesFieldBuilder().addBuilder( index, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.getDefaultInstance()); } /** * repeated .tensorflow.contrib.proto.RepeatedMessageValue.NestedMessageValue message_values = 11; */ public java.util.List getMessageValuesBuilderList() { return getMessageValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder> getMessageValuesFieldBuilder() { if (messageValuesBuilder_ == null) { messageValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValue.Builder, tensorflow.contrib.proto.TestExample.RepeatedMessageValue.NestedMessageValueOrBuilder>( messageValues_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); messageValues_ = null; } return messageValuesBuilder_; } @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.RepeatedMessageValue) } // @@protoc_insertion_point(class_scope:tensorflow.contrib.proto.RepeatedMessageValue) private static final tensorflow.contrib.proto.TestExample.RepeatedMessageValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tensorflow.contrib.proto.TestExample.RepeatedMessageValue(); } public static tensorflow.contrib.proto.TestExample.RepeatedMessageValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RepeatedMessageValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RepeatedMessageValue(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.RepeatedMessageValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_TestCase_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_TestCase_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_FieldSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_FieldSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_TestValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_TestValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_PackedTestValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_PrimitiveValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_ExtraFields_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_ExtraFields_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_EnumValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_EnumValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_InnerMessageValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_MiddleMessageValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_MiddleMessageValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_MessageValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_MessageValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_RepeatedMessageValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n?tensorflow/contrib/proto/python/kernel" + "_tests/test_example.proto\022\030tensorflow.co" + "ntrib.proto\032%tensorflow/core/framework/t" + "ypes.proto\"\223\001\n\010TestCase\0223\n\006values\030\001 \003(\0132" + "#.tensorflow.contrib.proto.TestValue\022\016\n\006" + "shapes\030\002 \003(\005\022\r\n\005sizes\030\003 \003(\005\0223\n\006fields\030\004 " + "\003(\0132#.tensorflow.contrib.proto.FieldSpec" + "\"r\n\tFieldSpec\022\014\n\004name\030\001 \001(\t\022#\n\005dtype\030\002 \001" + "(\0162\024.tensorflow.DataType\0222\n\005value\030\003 \001(\0132" + "#.tensorflow.contrib.proto.TestValue\"\355\007\n" + "\tTestValue\022\024\n\014double_value\030\001 \003(\001\022\023\n\013floa" + "t_value\030\002 \003(\002\022\023\n\013int64_value\030\003 \003(\003\022\024\n\014ui" + "nt64_value\030\004 \003(\004\022\023\n\013int32_value\030\005 \003(\005\022\025\n" + "\rfixed64_value\030\006 \003(\006\022\025\n\rfixed32_value\030\007 " + "\003(\007\022\022\n\nbool_value\030\010 \003(\010\022\024\n\014string_value\030" + "\t \003(\t\022\023\n\013bytes_value\030\014 \003(\014\022\024\n\014uint32_val" + "ue\030\r \003(\r\022\026\n\016sfixed32_value\030\017 \003(\017\022\026\n\016sfix" + "ed64_value\030\020 \003(\020\022\024\n\014sint32_value\030\021 \003(\021\022\024" + "\n\014sint64_value\030\022 \003(\022\022?\n\rmessage_value\030\023 " + "\003(\0132(.tensorflow.contrib.proto.Primitive" + "Value\022$\n\031double_value_with_default\030\024 \001(\001" + ":\0011\022#\n\030float_value_with_default\030\025 \001(\002:\0012" + "\022#\n\030int64_value_with_default\030\026 \001(\003:\0013\022$\n" + "\031uint64_value_with_default\030\027 \001(\004:\0014\022#\n\030i" + "nt32_value_with_default\030\030 \001(\005:\0015\022%\n\032fixe" + "d64_value_with_default\030\031 \001(\006:\0016\022%\n\032fixed" + "32_value_with_default\030\032 \001(\007:\0017\022%\n\027bool_v" + "alue_with_default\030\033 \001(\010:\004true\022$\n\031string_" + "value_with_default\030\034 \001(\t:\001a\0229\n\030bytes_val" + "ue_with_default\030\035 \001(\014:\027a longer default " + "string\022$\n\031uint32_value_with_default\030\036 \001(" + "\r:\0019\022\'\n\033sfixed32_value_with_default\030\037 \001(" + "\017:\00210\022\'\n\033sfixed64_value_with_default\030 \001" + "(\020:\00211\022%\n\031sint32_value_with_default\030! \001(" + "\021:\00212\022%\n\031sint64_value_with_default\030\" \001(\022" + ":\00213\"\247\010\n\017PackedTestValue\022\030\n\014double_value" + "\030\001 \003(\001B\002\020\001\022\027\n\013float_value\030\002 \003(\002B\002\020\001\022\027\n\013i" + "nt64_value\030\003 \003(\003B\002\020\001\022\030\n\014uint64_value\030\004 \003" + "(\004B\002\020\001\022\027\n\013int32_value\030\005 \003(\005B\002\020\001\022\031\n\rfixed" + "64_value\030\006 \003(\006B\002\020\001\022\031\n\rfixed32_value\030\007 \003(" + "\007B\002\020\001\022\026\n\nbool_value\030\010 \003(\010B\002\020\001\022\024\n\014string_" + "value\030\t \003(\t\022\023\n\013bytes_value\030\014 \003(\014\022\030\n\014uint" + "32_value\030\r \003(\rB\002\020\001\022\032\n\016sfixed32_value\030\017 \003" + "(\017B\002\020\001\022\032\n\016sfixed64_value\030\020 \003(\020B\002\020\001\022\030\n\014si" + "nt32_value\030\021 \003(\021B\002\020\001\022\030\n\014sint64_value\030\022 \003" + "(\022B\002\020\001\022?\n\rmessage_value\030\023 \003(\0132(.tensorfl" + "ow.contrib.proto.PrimitiveValue\022$\n\031doubl" + "e_value_with_default\030\024 \001(\001:\0011\022#\n\030float_v" + "alue_with_default\030\025 \001(\002:\0012\022#\n\030int64_valu" + "e_with_default\030\026 \001(\003:\0013\022$\n\031uint64_value_" + "with_default\030\027 \001(\004:\0014\022#\n\030int32_value_wit" + "h_default\030\030 \001(\005:\0015\022%\n\032fixed64_value_with" + "_default\030\031 \001(\006:\0016\022%\n\032fixed32_value_with_" + "default\030\032 \001(\007:\0017\022%\n\027bool_value_with_defa" + "ult\030\033 \001(\010:\004true\022$\n\031string_value_with_def" + "ault\030\034 \001(\t:\001a\0229\n\030bytes_value_with_defaul" + "t\030\035 \001(\014:\027a longer default string\022$\n\031uint" + "32_value_with_default\030\036 \001(\r:\0019\022\'\n\033sfixed" + "32_value_with_default\030\037 \001(\017:\00210\022\'\n\033sfixe" + "d64_value_with_default\030 \001(\020:\00211\022%\n\031sint" + "32_value_with_default\030! \001(\021:\00212\022%\n\031sint6" + "4_value_with_default\030\" \001(\022:\00213\"\332\002\n\016Primi" + "tiveValue\022\024\n\014double_value\030\001 \001(\001\022\023\n\013float" + "_value\030\002 \001(\002\022\023\n\013int64_value\030\003 \001(\003\022\024\n\014uin" + "t64_value\030\004 \001(\004\022\023\n\013int32_value\030\005 \001(\005\022\025\n\r" + "fixed64_value\030\006 \001(\006\022\025\n\rfixed32_value\030\007 \001" + "(\007\022\022\n\nbool_value\030\010 \001(\010\022\024\n\014string_value\030\t" + " \001(\t\022\023\n\013bytes_value\030\014 \001(\014\022\024\n\014uint32_valu" + "e\030\r \001(\r\022\026\n\016sfixed32_value\030\017 \001(\017\022\026\n\016sfixe" + "d64_value\030\020 \001(\020\022\024\n\014sint32_value\030\021 \001(\021\022\024\n" + "\014sint64_value\030\022 \001(\022\"9\n\013ExtraFields\022\025\n\014st" + "ring_value\030\360\r \001(\t\022\023\n\nbool_value\030\361\r \001(\010\"\351" + "\001\n\tEnumValue\022=\n\nenum_value\030\016 \001(\0162).tenso" + "rflow.contrib.proto.EnumValue.Color\022F\n\023r" + "epeated_enum_value\030\017 \003(\0162).tensorflow.co" + "ntrib.proto.EnumValue.Color\"U\n\005Color\022\007\n\003" + "RED\020\000\022\n\n\006ORANGE\020\001\022\n\n\006YELLOW\020\002\022\t\n\005GREEN\020\003" + "\022\010\n\004BLUE\020\004\022\n\n\006INDIGO\020\005\022\n\n\006VIOLET\020\006\">\n\021In" + "nerMessageValue\022\023\n\013float_value\030\002 \001(\002\022\024\n\014" + "bytes_values\030\010 \003(\014\"\204\001\n\022MiddleMessageValu" + "e\022\024\n\014int32_values\030\005 \003(\005\022B\n\rmessage_value" + "\030\013 \001(\0132+.tensorflow.contrib.proto.InnerM" + "essageValue\022\024\n\014uint32_value\030\r \001(\r\"i\n\014Mes" + "sageValue\022\024\n\014double_value\030\001 \001(\001\022C\n\rmessa" + "ge_value\030\013 \001(\0132,.tensorflow.contrib.prot" + "o.MiddleMessageValue\"\262\001\n\024RepeatedMessage" + "Value\022Y\n\016message_values\030\013 \003(\0132A.tensorfl" + "ow.contrib.proto.RepeatedMessageValue.Ne" + "stedMessageValue\032?\n\022NestedMessageValue\022\023" + "\n\013float_value\030\002 \001(\002\022\024\n\014bytes_values\030\010 \003(" + "\014" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tensorflow.framework.TypesProtos.getDescriptor(), }, assigner); internal_static_tensorflow_contrib_proto_TestCase_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tensorflow_contrib_proto_TestCase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_TestCase_descriptor, new java.lang.String[] { "Values", "Shapes", "Sizes", "Fields", }); internal_static_tensorflow_contrib_proto_FieldSpec_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tensorflow_contrib_proto_FieldSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_FieldSpec_descriptor, new java.lang.String[] { "Name", "Dtype", "Value", }); internal_static_tensorflow_contrib_proto_TestValue_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tensorflow_contrib_proto_TestValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_TestValue_descriptor, new java.lang.String[] { "DoubleValue", "FloatValue", "Int64Value", "Uint64Value", "Int32Value", "Fixed64Value", "Fixed32Value", "BoolValue", "StringValue", "BytesValue", "Uint32Value", "Sfixed32Value", "Sfixed64Value", "Sint32Value", "Sint64Value", "MessageValue", "DoubleValueWithDefault", "FloatValueWithDefault", "Int64ValueWithDefault", "Uint64ValueWithDefault", "Int32ValueWithDefault", "Fixed64ValueWithDefault", "Fixed32ValueWithDefault", "BoolValueWithDefault", "StringValueWithDefault", "BytesValueWithDefault", "Uint32ValueWithDefault", "Sfixed32ValueWithDefault", "Sfixed64ValueWithDefault", "Sint32ValueWithDefault", "Sint64ValueWithDefault", }); internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tensorflow_contrib_proto_PackedTestValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_PackedTestValue_descriptor, new java.lang.String[] { "DoubleValue", "FloatValue", "Int64Value", "Uint64Value", "Int32Value", "Fixed64Value", "Fixed32Value", "BoolValue", "StringValue", "BytesValue", "Uint32Value", "Sfixed32Value", "Sfixed64Value", "Sint32Value", "Sint64Value", "MessageValue", "DoubleValueWithDefault", "FloatValueWithDefault", "Int64ValueWithDefault", "Uint64ValueWithDefault", "Int32ValueWithDefault", "Fixed64ValueWithDefault", "Fixed32ValueWithDefault", "BoolValueWithDefault", "StringValueWithDefault", "BytesValueWithDefault", "Uint32ValueWithDefault", "Sfixed32ValueWithDefault", "Sfixed64ValueWithDefault", "Sint32ValueWithDefault", "Sint64ValueWithDefault", }); internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tensorflow_contrib_proto_PrimitiveValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_PrimitiveValue_descriptor, new java.lang.String[] { "DoubleValue", "FloatValue", "Int64Value", "Uint64Value", "Int32Value", "Fixed64Value", "Fixed32Value", "BoolValue", "StringValue", "BytesValue", "Uint32Value", "Sfixed32Value", "Sfixed64Value", "Sint32Value", "Sint64Value", }); internal_static_tensorflow_contrib_proto_ExtraFields_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_tensorflow_contrib_proto_ExtraFields_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_ExtraFields_descriptor, new java.lang.String[] { "StringValue", "BoolValue", }); internal_static_tensorflow_contrib_proto_EnumValue_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_tensorflow_contrib_proto_EnumValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_EnumValue_descriptor, new java.lang.String[] { "EnumValue", "RepeatedEnumValue", }); internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_tensorflow_contrib_proto_InnerMessageValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_InnerMessageValue_descriptor, new java.lang.String[] { "FloatValue", "BytesValues", }); internal_static_tensorflow_contrib_proto_MiddleMessageValue_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_tensorflow_contrib_proto_MiddleMessageValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_MiddleMessageValue_descriptor, new java.lang.String[] { "Int32Values", "MessageValue", "Uint32Value", }); internal_static_tensorflow_contrib_proto_MessageValue_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_tensorflow_contrib_proto_MessageValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_MessageValue_descriptor, new java.lang.String[] { "DoubleValue", "MessageValue", }); internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_tensorflow_contrib_proto_RepeatedMessageValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor, new java.lang.String[] { "MessageValues", }); internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor = internal_static_tensorflow_contrib_proto_RepeatedMessageValue_descriptor.getNestedTypes().get(0); internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tensorflow_contrib_proto_RepeatedMessageValue_NestedMessageValue_descriptor, new java.lang.String[] { "FloatValue", "BytesValues", }); org.tensorflow.framework.TypesProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy