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

org.tensorflow.framework.CollectionDef Maven / Gradle / Ivy

There is a newer version: 1.15.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/meta_graph.proto

package org.tensorflow.framework;

/**
 * 
 * CollectionDef should cover most collections.
 * To add a user-defined collection, do one of the following:
 * 1. For simple data types, such as string, int, float:
 *      tf.add_to_collection("your_collection_name", your_simple_value)
 *    strings will be stored as bytes_list.
 * 2. For Protobuf types, there are three ways to add them:
 *    1) tf.add_to_collection("your_collection_name",
 *         your_proto.SerializeToString())
 *       collection_def {
 *         key: "user_defined_bytes_collection"
 *         value {
 *           bytes_list {
 *             value: "queue_name: \"test_queue\"\n"
 *           }
 *         }
 *       }
 *  or
 *    2) tf.add_to_collection("your_collection_name", str(your_proto))
 *       collection_def {
 *         key: "user_defined_string_collection"
 *         value {
 *          bytes_list {
 *             value: "\n\ntest_queue"
 *           }
 *         }
 *       }
 *  or
 *    3) any_buf = any_pb2.Any()
 *       tf.add_to_collection("your_collection_name",
 *         any_buf.Pack(your_proto))
 *       collection_def {
 *         key: "user_defined_any_collection"
 *         value {
 *           any_list {
 *             value {
 *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
 *               value: "\n\ntest_queue"
 *             }
 *           }
 *         }
 *       }
 * 3. For Python objects, implement to_proto() and from_proto(), and register
 *    them in the following manner:
 *    ops.register_proto_function("your_collection_name",
 *                                proto_type,
 *                                to_proto=YourPythonObject.to_proto,
 *                                from_proto=YourPythonObject.from_proto)
 *    These functions will be invoked to serialize and de-serialize the
 *    collection. For example,
 *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
 *                                proto_type=variable_pb2.VariableDef,
 *                                to_proto=Variable.to_proto,
 *                                from_proto=Variable.from_proto)
 * 
* * Protobuf type {@code tensorflow.CollectionDef} */ public final class CollectionDef extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef) CollectionDefOrBuilder { private static final long serialVersionUID = 0L; // Use CollectionDef.newBuilder() to construct. private CollectionDef(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectionDef() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CollectionDef( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tensorflow.framework.CollectionDef.NodeList.Builder subBuilder = null; if (kindCase_ == 1) { subBuilder = ((org.tensorflow.framework.CollectionDef.NodeList) kind_).toBuilder(); } kind_ = input.readMessage(org.tensorflow.framework.CollectionDef.NodeList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.CollectionDef.NodeList) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 1; break; } case 18: { org.tensorflow.framework.CollectionDef.BytesList.Builder subBuilder = null; if (kindCase_ == 2) { subBuilder = ((org.tensorflow.framework.CollectionDef.BytesList) kind_).toBuilder(); } kind_ = input.readMessage(org.tensorflow.framework.CollectionDef.BytesList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.CollectionDef.BytesList) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 2; break; } case 26: { org.tensorflow.framework.CollectionDef.Int64List.Builder subBuilder = null; if (kindCase_ == 3) { subBuilder = ((org.tensorflow.framework.CollectionDef.Int64List) kind_).toBuilder(); } kind_ = input.readMessage(org.tensorflow.framework.CollectionDef.Int64List.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.CollectionDef.Int64List) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 3; break; } case 34: { org.tensorflow.framework.CollectionDef.FloatList.Builder subBuilder = null; if (kindCase_ == 4) { subBuilder = ((org.tensorflow.framework.CollectionDef.FloatList) kind_).toBuilder(); } kind_ = input.readMessage(org.tensorflow.framework.CollectionDef.FloatList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.CollectionDef.FloatList) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 4; break; } case 42: { org.tensorflow.framework.CollectionDef.AnyList.Builder subBuilder = null; if (kindCase_ == 5) { subBuilder = ((org.tensorflow.framework.CollectionDef.AnyList) kind_).toBuilder(); } kind_ = input.readMessage(org.tensorflow.framework.CollectionDef.AnyList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.CollectionDef.AnyList) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 5; 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 org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.class, org.tensorflow.framework.CollectionDef.Builder.class); } public interface NodeListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.NodeList) com.google.protobuf.MessageOrBuilder { /** * repeated string value = 1; */ java.util.List getValueList(); /** * repeated string value = 1; */ int getValueCount(); /** * repeated string value = 1; */ java.lang.String getValue(int index); /** * repeated string value = 1; */ com.google.protobuf.ByteString getValueBytes(int index); } /** *
   * NodeList is used for collecting nodes in graph. For example
   * collection_def {
   *   key: "summaries"
   *   value {
   *     node_list {
   *       value: "input_producer/ScalarSummary:0"
   *       value: "shuffle_batch/ScalarSummary:0"
   *       value: "ImageSummary:0"
   *     }
   *   }
   * 
* * Protobuf type {@code tensorflow.CollectionDef.NodeList} */ public static final class NodeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.NodeList) NodeListOrBuilder { private static final long serialVersionUID = 0L; // Use NodeList.newBuilder() to construct. private NodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeList() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeList( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } value_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = value_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.NodeList.class, org.tensorflow.framework.CollectionDef.NodeList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList value_; /** * repeated string value = 1; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** * repeated string value = 1; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 1; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 1; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < value_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().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 org.tensorflow.framework.CollectionDef.NodeList)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef.NodeList other = (org.tensorflow.framework.CollectionDef.NodeList) obj; boolean result = true; result = result && getValueList() .equals(other.getValueList()); 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.NodeList 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 org.tensorflow.framework.CollectionDef.NodeList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.NodeList 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 org.tensorflow.framework.CollectionDef.NodeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.NodeList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef.NodeList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * NodeList is used for collecting nodes in graph. For example
     * collection_def {
     *   key: "summaries"
     *   value {
     *     node_list {
     *       value: "input_producer/ScalarSummary:0"
     *       value: "shuffle_batch/ScalarSummary:0"
     *       value: "ImageSummary:0"
     *     }
     *   }
     * 
* * Protobuf type {@code tensorflow.CollectionDef.NodeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.NodeList) org.tensorflow.framework.CollectionDef.NodeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.NodeList.class, org.tensorflow.framework.CollectionDef.NodeList.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.NodeList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_NodeList_descriptor; } public org.tensorflow.framework.CollectionDef.NodeList getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef.NodeList build() { org.tensorflow.framework.CollectionDef.NodeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef.NodeList buildPartial() { org.tensorflow.framework.CollectionDef.NodeList result = new org.tensorflow.framework.CollectionDef.NodeList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef.NodeList) { return mergeFrom((org.tensorflow.framework.CollectionDef.NodeList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef.NodeList other) { if (other == org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef.NodeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef.NodeList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000001; } } /** * repeated string value = 1; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_.getUnmodifiableView(); } /** * repeated string value = 1; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 1; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 1; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** * repeated string value = 1; */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated string value = 1; */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated string value = 1; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated string value = 1; */ public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string value = 1; */ public Builder addValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.NodeList) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.NodeList) private static final org.tensorflow.framework.CollectionDef.NodeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef.NodeList(); } public static org.tensorflow.framework.CollectionDef.NodeList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NodeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef.NodeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BytesListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.BytesList) com.google.protobuf.MessageOrBuilder { /** * repeated bytes value = 1; */ java.util.List getValueList(); /** * repeated bytes value = 1; */ int getValueCount(); /** * repeated bytes value = 1; */ com.google.protobuf.ByteString getValue(int index); } /** *
   * BytesList is used for collecting strings and serialized protobufs. For
   * example:
   * collection_def {
   *   key: "trainable_variables"
   *   value {
   *     bytes_list {
   *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
   *              \032\024conv1/weights/read:0"
   *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
   *              \023conv1/biases/read:0"
   *     }
   *   }
   * }
   * 
* * Protobuf type {@code tensorflow.CollectionDef.BytesList} */ public static final class BytesList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.BytesList) BytesListOrBuilder { private static final long serialVersionUID = 0L; // Use BytesList.newBuilder() to construct. private BytesList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BytesList() { value_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BytesList( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } value_.add(input.readBytes()); 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)) { value_ = java.util.Collections.unmodifiableList(value_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.BytesList.class, org.tensorflow.framework.CollectionDef.BytesList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private java.util.List value_; /** * repeated bytes value = 1; */ public java.util.List getValueList() { return value_; } /** * repeated bytes value = 1; */ public int getValueCount() { return value_.size(); } /** * repeated bytes value = 1; */ public com.google.protobuf.ByteString getValue(int index) { return value_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < value_.size(); i++) { output.writeBytes(1, value_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.get(i)); } size += dataSize; size += 1 * getValueList().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 org.tensorflow.framework.CollectionDef.BytesList)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef.BytesList other = (org.tensorflow.framework.CollectionDef.BytesList) obj; boolean result = true; result = result && getValueList() .equals(other.getValueList()); 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.BytesList 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 org.tensorflow.framework.CollectionDef.BytesList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.BytesList 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 org.tensorflow.framework.CollectionDef.BytesList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.BytesList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef.BytesList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * BytesList is used for collecting strings and serialized protobufs. For
     * example:
     * collection_def {
     *   key: "trainable_variables"
     *   value {
     *     bytes_list {
     *       value: "\n\017conv1/weights:0\022\024conv1/weights/Assign
     *              \032\024conv1/weights/read:0"
     *       value: "\n\016conv1/biases:0\022\023conv1/biases/Assign\032
     *              \023conv1/biases/read:0"
     *     }
     *   }
     * }
     * 
* * Protobuf type {@code tensorflow.CollectionDef.BytesList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.BytesList) org.tensorflow.framework.CollectionDef.BytesListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.BytesList.class, org.tensorflow.framework.CollectionDef.BytesList.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.BytesList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_BytesList_descriptor; } public org.tensorflow.framework.CollectionDef.BytesList getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef.BytesList build() { org.tensorflow.framework.CollectionDef.BytesList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef.BytesList buildPartial() { org.tensorflow.framework.CollectionDef.BytesList result = new org.tensorflow.framework.CollectionDef.BytesList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef.BytesList) { return mergeFrom((org.tensorflow.framework.CollectionDef.BytesList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef.BytesList other) { if (other == org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef.BytesList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef.BytesList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000001; } } /** * repeated bytes value = 1; */ public java.util.List getValueList() { return java.util.Collections.unmodifiableList(value_); } /** * repeated bytes value = 1; */ public int getValueCount() { return value_.size(); } /** * repeated bytes value = 1; */ public com.google.protobuf.ByteString getValue(int index) { return value_.get(index); } /** * repeated bytes value = 1; */ public Builder setValue( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated bytes value = 1; */ public Builder addValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated bytes value = 1; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated bytes value = 1; */ public Builder clearValue() { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.BytesList) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.BytesList) private static final org.tensorflow.framework.CollectionDef.BytesList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef.BytesList(); } public static org.tensorflow.framework.CollectionDef.BytesList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BytesList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BytesList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef.BytesList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface Int64ListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.Int64List) com.google.protobuf.MessageOrBuilder { /** * repeated int64 value = 1 [packed = true]; */ java.util.List getValueList(); /** * repeated int64 value = 1 [packed = true]; */ int getValueCount(); /** * repeated int64 value = 1 [packed = true]; */ long getValue(int index); } /** *
   * Int64List is used for collecting int, int64 and long values.
   * 
* * Protobuf type {@code tensorflow.CollectionDef.Int64List} */ public static final class Int64List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.Int64List) Int64ListOrBuilder { private static final long serialVersionUID = 0L; // Use Int64List.newBuilder() to construct. private Int64List(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Int64List() { value_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Int64List( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } value_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { value_.add(input.readInt64()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.Int64List.class, org.tensorflow.framework.CollectionDef.Int64List.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private java.util.List value_; /** * repeated int64 value = 1 [packed = true]; */ public java.util.List getValueList() { return value_; } /** * repeated int64 value = 1 [packed = true]; */ public int getValueCount() { return value_.size(); } /** * repeated int64 value = 1 [packed = true]; */ public long getValue(int index) { return value_.get(index); } private int valueMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeInt64NoTag(value_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(value_.get(i)); } size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } 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 org.tensorflow.framework.CollectionDef.Int64List)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef.Int64List other = (org.tensorflow.framework.CollectionDef.Int64List) obj; boolean result = true; result = result && getValueList() .equals(other.getValueList()); 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.Int64List 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 org.tensorflow.framework.CollectionDef.Int64List parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.Int64List 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 org.tensorflow.framework.CollectionDef.Int64List parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.Int64List parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef.Int64List prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Int64List is used for collecting int, int64 and long values.
     * 
* * Protobuf type {@code tensorflow.CollectionDef.Int64List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.Int64List) org.tensorflow.framework.CollectionDef.Int64ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.Int64List.class, org.tensorflow.framework.CollectionDef.Int64List.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.Int64List.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_Int64List_descriptor; } public org.tensorflow.framework.CollectionDef.Int64List getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef.Int64List build() { org.tensorflow.framework.CollectionDef.Int64List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef.Int64List buildPartial() { org.tensorflow.framework.CollectionDef.Int64List result = new org.tensorflow.framework.CollectionDef.Int64List(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef.Int64List) { return mergeFrom((org.tensorflow.framework.CollectionDef.Int64List)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef.Int64List other) { if (other == org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef.Int64List parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef.Int64List) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000001; } } /** * repeated int64 value = 1 [packed = true]; */ public java.util.List getValueList() { return java.util.Collections.unmodifiableList(value_); } /** * repeated int64 value = 1 [packed = true]; */ public int getValueCount() { return value_.size(); } /** * repeated int64 value = 1 [packed = true]; */ public long getValue(int index) { return value_.get(index); } /** * repeated int64 value = 1 [packed = true]; */ public Builder setValue( int index, long value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated int64 value = 1 [packed = true]; */ public Builder addValue(long value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated int64 value = 1 [packed = true]; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated int64 value = 1 [packed = true]; */ public Builder clearValue() { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.Int64List) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.Int64List) private static final org.tensorflow.framework.CollectionDef.Int64List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef.Int64List(); } public static org.tensorflow.framework.CollectionDef.Int64List getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Int64List parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Int64List(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef.Int64List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FloatListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.FloatList) com.google.protobuf.MessageOrBuilder { /** * repeated float value = 1 [packed = true]; */ java.util.List getValueList(); /** * repeated float value = 1 [packed = true]; */ int getValueCount(); /** * repeated float value = 1 [packed = true]; */ float getValue(int index); } /** *
   * FloatList is used for collecting float values.
   * 
* * Protobuf type {@code tensorflow.CollectionDef.FloatList} */ public static final class FloatList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.FloatList) FloatListOrBuilder { private static final long serialVersionUID = 0L; // Use FloatList.newBuilder() to construct. private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FloatList() { value_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FloatList( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 13: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } value_.add(input.readFloat()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { value_.add(input.readFloat()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.FloatList.class, org.tensorflow.framework.CollectionDef.FloatList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private java.util.List value_; /** * repeated float value = 1 [packed = true]; */ public java.util.List getValueList() { return value_; } /** * repeated float value = 1 [packed = true]; */ public int getValueCount() { return value_.size(); } /** * repeated float value = 1 [packed = true]; */ public float getValue(int index) { return value_.get(index); } private int valueMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeFloatNoTag(value_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getValueList().size(); size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } 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 org.tensorflow.framework.CollectionDef.FloatList)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef.FloatList other = (org.tensorflow.framework.CollectionDef.FloatList) obj; boolean result = true; result = result && getValueList() .equals(other.getValueList()); 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.FloatList 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 org.tensorflow.framework.CollectionDef.FloatList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.FloatList 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 org.tensorflow.framework.CollectionDef.FloatList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.FloatList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef.FloatList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * FloatList is used for collecting float values.
     * 
* * Protobuf type {@code tensorflow.CollectionDef.FloatList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.FloatList) org.tensorflow.framework.CollectionDef.FloatListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.FloatList.class, org.tensorflow.framework.CollectionDef.FloatList.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.FloatList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_FloatList_descriptor; } public org.tensorflow.framework.CollectionDef.FloatList getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef.FloatList build() { org.tensorflow.framework.CollectionDef.FloatList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef.FloatList buildPartial() { org.tensorflow.framework.CollectionDef.FloatList result = new org.tensorflow.framework.CollectionDef.FloatList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef.FloatList) { return mergeFrom((org.tensorflow.framework.CollectionDef.FloatList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef.FloatList other) { if (other == org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef.FloatList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef.FloatList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000001; } } /** * repeated float value = 1 [packed = true]; */ public java.util.List getValueList() { return java.util.Collections.unmodifiableList(value_); } /** * repeated float value = 1 [packed = true]; */ public int getValueCount() { return value_.size(); } /** * repeated float value = 1 [packed = true]; */ public float getValue(int index) { return value_.get(index); } /** * repeated float value = 1 [packed = true]; */ public Builder setValue( int index, float value) { ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated float value = 1 [packed = true]; */ public Builder addValue(float value) { ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated float value = 1 [packed = true]; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated float value = 1 [packed = true]; */ public Builder clearValue() { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.FloatList) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.FloatList) private static final org.tensorflow.framework.CollectionDef.FloatList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef.FloatList(); } public static org.tensorflow.framework.CollectionDef.FloatList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FloatList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FloatList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef.FloatList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AnyListOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.CollectionDef.AnyList) com.google.protobuf.MessageOrBuilder { /** * repeated .google.protobuf.Any value = 1; */ java.util.List getValueList(); /** * repeated .google.protobuf.Any value = 1; */ com.google.protobuf.Any getValue(int index); /** * repeated .google.protobuf.Any value = 1; */ int getValueCount(); /** * repeated .google.protobuf.Any value = 1; */ java.util.List getValueOrBuilderList(); /** * repeated .google.protobuf.Any value = 1; */ com.google.protobuf.AnyOrBuilder getValueOrBuilder( int index); } /** *
   * AnyList is used for collecting Any protos.
   * 
* * Protobuf type {@code tensorflow.CollectionDef.AnyList} */ public static final class AnyList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.CollectionDef.AnyList) AnyListOrBuilder { private static final long serialVersionUID = 0L; // Use AnyList.newBuilder() to construct. private AnyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AnyList() { value_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AnyList( 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } value_.add( input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.AnyList.class, org.tensorflow.framework.CollectionDef.AnyList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private java.util.List value_; /** * repeated .google.protobuf.Any value = 1; */ public java.util.List getValueList() { return value_; } /** * repeated .google.protobuf.Any value = 1; */ public java.util.List getValueOrBuilderList() { return value_; } /** * repeated .google.protobuf.Any value = 1; */ public int getValueCount() { return value_.size(); } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.Any getValue(int index) { return value_.get(index); } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.AnyOrBuilder getValueOrBuilder( int index) { return value_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < value_.size(); i++) { output.writeMessage(1, value_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < value_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, value_.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 org.tensorflow.framework.CollectionDef.AnyList)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef.AnyList other = (org.tensorflow.framework.CollectionDef.AnyList) obj; boolean result = true; result = result && getValueList() .equals(other.getValueList()); 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.AnyList 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 org.tensorflow.framework.CollectionDef.AnyList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.AnyList 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 org.tensorflow.framework.CollectionDef.AnyList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef.AnyList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef.AnyList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * AnyList is used for collecting Any protos.
     * 
* * Protobuf type {@code tensorflow.CollectionDef.AnyList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef.AnyList) org.tensorflow.framework.CollectionDef.AnyListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.AnyList.class, org.tensorflow.framework.CollectionDef.AnyList.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.AnyList.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(); } } public Builder clear() { super.clear(); if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { valueBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_AnyList_descriptor; } public org.tensorflow.framework.CollectionDef.AnyList getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef.AnyList build() { org.tensorflow.framework.CollectionDef.AnyList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef.AnyList buildPartial() { org.tensorflow.framework.CollectionDef.AnyList result = new org.tensorflow.framework.CollectionDef.AnyList(this); int from_bitField0_ = bitField0_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000001); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef.AnyList) { return mergeFrom((org.tensorflow.framework.CollectionDef.AnyList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef.AnyList other) { if (other == org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance()) return this; if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000001); valueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef.AnyList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef.AnyList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * repeated .google.protobuf.Any value = 1; */ public java.util.List getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } /** * repeated .google.protobuf.Any value = 1; */ public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.Any getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } /** * repeated .google.protobuf.Any value = 1; */ public Builder setValue( int index, com.google.protobuf.Any value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder setValue( int index, com.google.protobuf.Any.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder addValue(com.google.protobuf.Any value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder addValue( int index, com.google.protobuf.Any value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder addValue( com.google.protobuf.Any.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder addValue( int index, com.google.protobuf.Any.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder addAllValue( java.lang.Iterable values) { if (valueBuilder_ == null) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { valueBuilder_.clear(); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.Any.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.AnyOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } /** * repeated .google.protobuf.Any value = 1; */ public java.util.List getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.Any.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( com.google.protobuf.Any.getDefaultInstance()); } /** * repeated .google.protobuf.Any value = 1; */ public com.google.protobuf.Any.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, com.google.protobuf.Any.getDefaultInstance()); } /** * repeated .google.protobuf.Any value = 1; */ public java.util.List getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( value_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef.AnyList) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef.AnyList) private static final org.tensorflow.framework.CollectionDef.AnyList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef.AnyList(); } public static org.tensorflow.framework.CollectionDef.AnyList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AnyList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AnyList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef.AnyList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int kindCase_ = 0; private java.lang.Object kind_; public enum KindCase implements com.google.protobuf.Internal.EnumLite { NODE_LIST(1), BYTES_LIST(2), INT64_LIST(3), FLOAT_LIST(4), ANY_LIST(5), KIND_NOT_SET(0); private final int value; private KindCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KindCase valueOf(int value) { return forNumber(value); } public static KindCase forNumber(int value) { switch (value) { case 1: return NODE_LIST; case 2: return BYTES_LIST; case 3: return INT64_LIST; case 4: return FLOAT_LIST; case 5: return ANY_LIST; case 0: return KIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public static final int NODE_LIST_FIELD_NUMBER = 1; /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public boolean hasNodeList() { return kindCase_ == 1; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public org.tensorflow.framework.CollectionDef.NodeList getNodeList() { if (kindCase_ == 1) { return (org.tensorflow.framework.CollectionDef.NodeList) kind_; } return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public org.tensorflow.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { if (kindCase_ == 1) { return (org.tensorflow.framework.CollectionDef.NodeList) kind_; } return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } public static final int BYTES_LIST_FIELD_NUMBER = 2; /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public boolean hasBytesList() { return kindCase_ == 2; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public org.tensorflow.framework.CollectionDef.BytesList getBytesList() { if (kindCase_ == 2) { return (org.tensorflow.framework.CollectionDef.BytesList) kind_; } return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public org.tensorflow.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { if (kindCase_ == 2) { return (org.tensorflow.framework.CollectionDef.BytesList) kind_; } return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } public static final int INT64_LIST_FIELD_NUMBER = 3; /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public boolean hasInt64List() { return kindCase_ == 3; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public org.tensorflow.framework.CollectionDef.Int64List getInt64List() { if (kindCase_ == 3) { return (org.tensorflow.framework.CollectionDef.Int64List) kind_; } return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public org.tensorflow.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { if (kindCase_ == 3) { return (org.tensorflow.framework.CollectionDef.Int64List) kind_; } return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } public static final int FLOAT_LIST_FIELD_NUMBER = 4; /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public boolean hasFloatList() { return kindCase_ == 4; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public org.tensorflow.framework.CollectionDef.FloatList getFloatList() { if (kindCase_ == 4) { return (org.tensorflow.framework.CollectionDef.FloatList) kind_; } return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public org.tensorflow.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { if (kindCase_ == 4) { return (org.tensorflow.framework.CollectionDef.FloatList) kind_; } return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } public static final int ANY_LIST_FIELD_NUMBER = 5; /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public boolean hasAnyList() { return kindCase_ == 5; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public org.tensorflow.framework.CollectionDef.AnyList getAnyList() { if (kindCase_ == 5) { return (org.tensorflow.framework.CollectionDef.AnyList) kind_; } return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public org.tensorflow.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { if (kindCase_ == 5) { return (org.tensorflow.framework.CollectionDef.AnyList) kind_; } return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (kindCase_ == 1) { output.writeMessage(1, (org.tensorflow.framework.CollectionDef.NodeList) kind_); } if (kindCase_ == 2) { output.writeMessage(2, (org.tensorflow.framework.CollectionDef.BytesList) kind_); } if (kindCase_ == 3) { output.writeMessage(3, (org.tensorflow.framework.CollectionDef.Int64List) kind_); } if (kindCase_ == 4) { output.writeMessage(4, (org.tensorflow.framework.CollectionDef.FloatList) kind_); } if (kindCase_ == 5) { output.writeMessage(5, (org.tensorflow.framework.CollectionDef.AnyList) kind_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (kindCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.tensorflow.framework.CollectionDef.NodeList) kind_); } if (kindCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.tensorflow.framework.CollectionDef.BytesList) kind_); } if (kindCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tensorflow.framework.CollectionDef.Int64List) kind_); } if (kindCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tensorflow.framework.CollectionDef.FloatList) kind_); } if (kindCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.tensorflow.framework.CollectionDef.AnyList) kind_); } 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 org.tensorflow.framework.CollectionDef)) { return super.equals(obj); } org.tensorflow.framework.CollectionDef other = (org.tensorflow.framework.CollectionDef) obj; boolean result = true; result = result && getKindCase().equals( other.getKindCase()); if (!result) return false; switch (kindCase_) { case 1: result = result && getNodeList() .equals(other.getNodeList()); break; case 2: result = result && getBytesList() .equals(other.getBytesList()); break; case 3: result = result && getInt64List() .equals(other.getInt64List()); break; case 4: result = result && getFloatList() .equals(other.getFloatList()); break; case 5: result = result && getAnyList() .equals(other.getAnyList()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (kindCase_) { case 1: hash = (37 * hash) + NODE_LIST_FIELD_NUMBER; hash = (53 * hash) + getNodeList().hashCode(); break; case 2: hash = (37 * hash) + BYTES_LIST_FIELD_NUMBER; hash = (53 * hash) + getBytesList().hashCode(); break; case 3: hash = (37 * hash) + INT64_LIST_FIELD_NUMBER; hash = (53 * hash) + getInt64List().hashCode(); break; case 4: hash = (37 * hash) + FLOAT_LIST_FIELD_NUMBER; hash = (53 * hash) + getFloatList().hashCode(); break; case 5: hash = (37 * hash) + ANY_LIST_FIELD_NUMBER; hash = (53 * hash) + getAnyList().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.CollectionDef parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.CollectionDef parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.CollectionDef parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef 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 org.tensorflow.framework.CollectionDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef 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 org.tensorflow.framework.CollectionDef parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.CollectionDef parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.CollectionDef prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * CollectionDef should cover most collections.
   * To add a user-defined collection, do one of the following:
   * 1. For simple data types, such as string, int, float:
   *      tf.add_to_collection("your_collection_name", your_simple_value)
   *    strings will be stored as bytes_list.
   * 2. For Protobuf types, there are three ways to add them:
   *    1) tf.add_to_collection("your_collection_name",
   *         your_proto.SerializeToString())
   *       collection_def {
   *         key: "user_defined_bytes_collection"
   *         value {
   *           bytes_list {
   *             value: "queue_name: \"test_queue\"\n"
   *           }
   *         }
   *       }
   *  or
   *    2) tf.add_to_collection("your_collection_name", str(your_proto))
   *       collection_def {
   *         key: "user_defined_string_collection"
   *         value {
   *          bytes_list {
   *             value: "\n\ntest_queue"
   *           }
   *         }
   *       }
   *  or
   *    3) any_buf = any_pb2.Any()
   *       tf.add_to_collection("your_collection_name",
   *         any_buf.Pack(your_proto))
   *       collection_def {
   *         key: "user_defined_any_collection"
   *         value {
   *           any_list {
   *             value {
   *               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
   *               value: "\n\ntest_queue"
   *             }
   *           }
   *         }
   *       }
   * 3. For Python objects, implement to_proto() and from_proto(), and register
   *    them in the following manner:
   *    ops.register_proto_function("your_collection_name",
   *                                proto_type,
   *                                to_proto=YourPythonObject.to_proto,
   *                                from_proto=YourPythonObject.from_proto)
   *    These functions will be invoked to serialize and de-serialize the
   *    collection. For example,
   *    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
   *                                proto_type=variable_pb2.VariableDef,
   *                                to_proto=Variable.to_proto,
   *                                from_proto=Variable.from_proto)
   * 
* * Protobuf type {@code tensorflow.CollectionDef} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.CollectionDef) org.tensorflow.framework.CollectionDefOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.CollectionDef.class, org.tensorflow.framework.CollectionDef.Builder.class); } // Construct using org.tensorflow.framework.CollectionDef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); kindCase_ = 0; kind_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.MetaGraphProtos.internal_static_tensorflow_CollectionDef_descriptor; } public org.tensorflow.framework.CollectionDef getDefaultInstanceForType() { return org.tensorflow.framework.CollectionDef.getDefaultInstance(); } public org.tensorflow.framework.CollectionDef build() { org.tensorflow.framework.CollectionDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.CollectionDef buildPartial() { org.tensorflow.framework.CollectionDef result = new org.tensorflow.framework.CollectionDef(this); if (kindCase_ == 1) { if (nodeListBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = nodeListBuilder_.build(); } } if (kindCase_ == 2) { if (bytesListBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = bytesListBuilder_.build(); } } if (kindCase_ == 3) { if (int64ListBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = int64ListBuilder_.build(); } } if (kindCase_ == 4) { if (floatListBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = floatListBuilder_.build(); } } if (kindCase_ == 5) { if (anyListBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = anyListBuilder_.build(); } } result.kindCase_ = kindCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.framework.CollectionDef) { return mergeFrom((org.tensorflow.framework.CollectionDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.CollectionDef other) { if (other == org.tensorflow.framework.CollectionDef.getDefaultInstance()) return this; switch (other.getKindCase()) { case NODE_LIST: { mergeNodeList(other.getNodeList()); break; } case BYTES_LIST: { mergeBytesList(other.getBytesList()); break; } case INT64_LIST: { mergeInt64List(other.getInt64List()); break; } case FLOAT_LIST: { mergeFloatList(other.getFloatList()); break; } case ANY_LIST: { mergeAnyList(other.getAnyList()); break; } case KIND_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.CollectionDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.CollectionDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int kindCase_ = 0; private java.lang.Object kind_; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public Builder clearKind() { kindCase_ = 0; kind_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.NodeList, org.tensorflow.framework.CollectionDef.NodeList.Builder, org.tensorflow.framework.CollectionDef.NodeListOrBuilder> nodeListBuilder_; /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public boolean hasNodeList() { return kindCase_ == 1; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public org.tensorflow.framework.CollectionDef.NodeList getNodeList() { if (nodeListBuilder_ == null) { if (kindCase_ == 1) { return (org.tensorflow.framework.CollectionDef.NodeList) kind_; } return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } else { if (kindCase_ == 1) { return nodeListBuilder_.getMessage(); } return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public Builder setNodeList(org.tensorflow.framework.CollectionDef.NodeList value) { if (nodeListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { nodeListBuilder_.setMessage(value); } kindCase_ = 1; return this; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public Builder setNodeList( org.tensorflow.framework.CollectionDef.NodeList.Builder builderForValue) { if (nodeListBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { nodeListBuilder_.setMessage(builderForValue.build()); } kindCase_ = 1; return this; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public Builder mergeNodeList(org.tensorflow.framework.CollectionDef.NodeList value) { if (nodeListBuilder_ == null) { if (kindCase_ == 1 && kind_ != org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance()) { kind_ = org.tensorflow.framework.CollectionDef.NodeList.newBuilder((org.tensorflow.framework.CollectionDef.NodeList) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 1) { nodeListBuilder_.mergeFrom(value); } nodeListBuilder_.setMessage(value); } kindCase_ = 1; return this; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public Builder clearNodeList() { if (nodeListBuilder_ == null) { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; } nodeListBuilder_.clear(); } return this; } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public org.tensorflow.framework.CollectionDef.NodeList.Builder getNodeListBuilder() { return getNodeListFieldBuilder().getBuilder(); } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ public org.tensorflow.framework.CollectionDef.NodeListOrBuilder getNodeListOrBuilder() { if ((kindCase_ == 1) && (nodeListBuilder_ != null)) { return nodeListBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 1) { return (org.tensorflow.framework.CollectionDef.NodeList) kind_; } return org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.NodeList node_list = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.NodeList, org.tensorflow.framework.CollectionDef.NodeList.Builder, org.tensorflow.framework.CollectionDef.NodeListOrBuilder> getNodeListFieldBuilder() { if (nodeListBuilder_ == null) { if (!(kindCase_ == 1)) { kind_ = org.tensorflow.framework.CollectionDef.NodeList.getDefaultInstance(); } nodeListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.NodeList, org.tensorflow.framework.CollectionDef.NodeList.Builder, org.tensorflow.framework.CollectionDef.NodeListOrBuilder>( (org.tensorflow.framework.CollectionDef.NodeList) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 1; onChanged();; return nodeListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.BytesList, org.tensorflow.framework.CollectionDef.BytesList.Builder, org.tensorflow.framework.CollectionDef.BytesListOrBuilder> bytesListBuilder_; /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public boolean hasBytesList() { return kindCase_ == 2; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public org.tensorflow.framework.CollectionDef.BytesList getBytesList() { if (bytesListBuilder_ == null) { if (kindCase_ == 2) { return (org.tensorflow.framework.CollectionDef.BytesList) kind_; } return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } else { if (kindCase_ == 2) { return bytesListBuilder_.getMessage(); } return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public Builder setBytesList(org.tensorflow.framework.CollectionDef.BytesList value) { if (bytesListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { bytesListBuilder_.setMessage(value); } kindCase_ = 2; return this; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public Builder setBytesList( org.tensorflow.framework.CollectionDef.BytesList.Builder builderForValue) { if (bytesListBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { bytesListBuilder_.setMessage(builderForValue.build()); } kindCase_ = 2; return this; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public Builder mergeBytesList(org.tensorflow.framework.CollectionDef.BytesList value) { if (bytesListBuilder_ == null) { if (kindCase_ == 2 && kind_ != org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance()) { kind_ = org.tensorflow.framework.CollectionDef.BytesList.newBuilder((org.tensorflow.framework.CollectionDef.BytesList) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 2) { bytesListBuilder_.mergeFrom(value); } bytesListBuilder_.setMessage(value); } kindCase_ = 2; return this; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public Builder clearBytesList() { if (bytesListBuilder_ == null) { if (kindCase_ == 2) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 2) { kindCase_ = 0; kind_ = null; } bytesListBuilder_.clear(); } return this; } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public org.tensorflow.framework.CollectionDef.BytesList.Builder getBytesListBuilder() { return getBytesListFieldBuilder().getBuilder(); } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ public org.tensorflow.framework.CollectionDef.BytesListOrBuilder getBytesListOrBuilder() { if ((kindCase_ == 2) && (bytesListBuilder_ != null)) { return bytesListBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 2) { return (org.tensorflow.framework.CollectionDef.BytesList) kind_; } return org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.BytesList bytes_list = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.BytesList, org.tensorflow.framework.CollectionDef.BytesList.Builder, org.tensorflow.framework.CollectionDef.BytesListOrBuilder> getBytesListFieldBuilder() { if (bytesListBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = org.tensorflow.framework.CollectionDef.BytesList.getDefaultInstance(); } bytesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.BytesList, org.tensorflow.framework.CollectionDef.BytesList.Builder, org.tensorflow.framework.CollectionDef.BytesListOrBuilder>( (org.tensorflow.framework.CollectionDef.BytesList) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; onChanged();; return bytesListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.Int64List, org.tensorflow.framework.CollectionDef.Int64List.Builder, org.tensorflow.framework.CollectionDef.Int64ListOrBuilder> int64ListBuilder_; /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public boolean hasInt64List() { return kindCase_ == 3; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public org.tensorflow.framework.CollectionDef.Int64List getInt64List() { if (int64ListBuilder_ == null) { if (kindCase_ == 3) { return (org.tensorflow.framework.CollectionDef.Int64List) kind_; } return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } else { if (kindCase_ == 3) { return int64ListBuilder_.getMessage(); } return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public Builder setInt64List(org.tensorflow.framework.CollectionDef.Int64List value) { if (int64ListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { int64ListBuilder_.setMessage(value); } kindCase_ = 3; return this; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public Builder setInt64List( org.tensorflow.framework.CollectionDef.Int64List.Builder builderForValue) { if (int64ListBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { int64ListBuilder_.setMessage(builderForValue.build()); } kindCase_ = 3; return this; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public Builder mergeInt64List(org.tensorflow.framework.CollectionDef.Int64List value) { if (int64ListBuilder_ == null) { if (kindCase_ == 3 && kind_ != org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance()) { kind_ = org.tensorflow.framework.CollectionDef.Int64List.newBuilder((org.tensorflow.framework.CollectionDef.Int64List) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 3) { int64ListBuilder_.mergeFrom(value); } int64ListBuilder_.setMessage(value); } kindCase_ = 3; return this; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public Builder clearInt64List() { if (int64ListBuilder_ == null) { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; } int64ListBuilder_.clear(); } return this; } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public org.tensorflow.framework.CollectionDef.Int64List.Builder getInt64ListBuilder() { return getInt64ListFieldBuilder().getBuilder(); } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ public org.tensorflow.framework.CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder() { if ((kindCase_ == 3) && (int64ListBuilder_ != null)) { return int64ListBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 3) { return (org.tensorflow.framework.CollectionDef.Int64List) kind_; } return org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.Int64List int64_list = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.Int64List, org.tensorflow.framework.CollectionDef.Int64List.Builder, org.tensorflow.framework.CollectionDef.Int64ListOrBuilder> getInt64ListFieldBuilder() { if (int64ListBuilder_ == null) { if (!(kindCase_ == 3)) { kind_ = org.tensorflow.framework.CollectionDef.Int64List.getDefaultInstance(); } int64ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.Int64List, org.tensorflow.framework.CollectionDef.Int64List.Builder, org.tensorflow.framework.CollectionDef.Int64ListOrBuilder>( (org.tensorflow.framework.CollectionDef.Int64List) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 3; onChanged();; return int64ListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.FloatList, org.tensorflow.framework.CollectionDef.FloatList.Builder, org.tensorflow.framework.CollectionDef.FloatListOrBuilder> floatListBuilder_; /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public boolean hasFloatList() { return kindCase_ == 4; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public org.tensorflow.framework.CollectionDef.FloatList getFloatList() { if (floatListBuilder_ == null) { if (kindCase_ == 4) { return (org.tensorflow.framework.CollectionDef.FloatList) kind_; } return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } else { if (kindCase_ == 4) { return floatListBuilder_.getMessage(); } return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public Builder setFloatList(org.tensorflow.framework.CollectionDef.FloatList value) { if (floatListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { floatListBuilder_.setMessage(value); } kindCase_ = 4; return this; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public Builder setFloatList( org.tensorflow.framework.CollectionDef.FloatList.Builder builderForValue) { if (floatListBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { floatListBuilder_.setMessage(builderForValue.build()); } kindCase_ = 4; return this; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public Builder mergeFloatList(org.tensorflow.framework.CollectionDef.FloatList value) { if (floatListBuilder_ == null) { if (kindCase_ == 4 && kind_ != org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance()) { kind_ = org.tensorflow.framework.CollectionDef.FloatList.newBuilder((org.tensorflow.framework.CollectionDef.FloatList) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 4) { floatListBuilder_.mergeFrom(value); } floatListBuilder_.setMessage(value); } kindCase_ = 4; return this; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public Builder clearFloatList() { if (floatListBuilder_ == null) { if (kindCase_ == 4) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 4) { kindCase_ = 0; kind_ = null; } floatListBuilder_.clear(); } return this; } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public org.tensorflow.framework.CollectionDef.FloatList.Builder getFloatListBuilder() { return getFloatListFieldBuilder().getBuilder(); } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ public org.tensorflow.framework.CollectionDef.FloatListOrBuilder getFloatListOrBuilder() { if ((kindCase_ == 4) && (floatListBuilder_ != null)) { return floatListBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 4) { return (org.tensorflow.framework.CollectionDef.FloatList) kind_; } return org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.FloatList float_list = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.FloatList, org.tensorflow.framework.CollectionDef.FloatList.Builder, org.tensorflow.framework.CollectionDef.FloatListOrBuilder> getFloatListFieldBuilder() { if (floatListBuilder_ == null) { if (!(kindCase_ == 4)) { kind_ = org.tensorflow.framework.CollectionDef.FloatList.getDefaultInstance(); } floatListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.FloatList, org.tensorflow.framework.CollectionDef.FloatList.Builder, org.tensorflow.framework.CollectionDef.FloatListOrBuilder>( (org.tensorflow.framework.CollectionDef.FloatList) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 4; onChanged();; return floatListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.AnyList, org.tensorflow.framework.CollectionDef.AnyList.Builder, org.tensorflow.framework.CollectionDef.AnyListOrBuilder> anyListBuilder_; /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public boolean hasAnyList() { return kindCase_ == 5; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public org.tensorflow.framework.CollectionDef.AnyList getAnyList() { if (anyListBuilder_ == null) { if (kindCase_ == 5) { return (org.tensorflow.framework.CollectionDef.AnyList) kind_; } return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } else { if (kindCase_ == 5) { return anyListBuilder_.getMessage(); } return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public Builder setAnyList(org.tensorflow.framework.CollectionDef.AnyList value) { if (anyListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { anyListBuilder_.setMessage(value); } kindCase_ = 5; return this; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public Builder setAnyList( org.tensorflow.framework.CollectionDef.AnyList.Builder builderForValue) { if (anyListBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { anyListBuilder_.setMessage(builderForValue.build()); } kindCase_ = 5; return this; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public Builder mergeAnyList(org.tensorflow.framework.CollectionDef.AnyList value) { if (anyListBuilder_ == null) { if (kindCase_ == 5 && kind_ != org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance()) { kind_ = org.tensorflow.framework.CollectionDef.AnyList.newBuilder((org.tensorflow.framework.CollectionDef.AnyList) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 5) { anyListBuilder_.mergeFrom(value); } anyListBuilder_.setMessage(value); } kindCase_ = 5; return this; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public Builder clearAnyList() { if (anyListBuilder_ == null) { if (kindCase_ == 5) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 5) { kindCase_ = 0; kind_ = null; } anyListBuilder_.clear(); } return this; } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public org.tensorflow.framework.CollectionDef.AnyList.Builder getAnyListBuilder() { return getAnyListFieldBuilder().getBuilder(); } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ public org.tensorflow.framework.CollectionDef.AnyListOrBuilder getAnyListOrBuilder() { if ((kindCase_ == 5) && (anyListBuilder_ != null)) { return anyListBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 5) { return (org.tensorflow.framework.CollectionDef.AnyList) kind_; } return org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } } /** * .tensorflow.CollectionDef.AnyList any_list = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.AnyList, org.tensorflow.framework.CollectionDef.AnyList.Builder, org.tensorflow.framework.CollectionDef.AnyListOrBuilder> getAnyListFieldBuilder() { if (anyListBuilder_ == null) { if (!(kindCase_ == 5)) { kind_ = org.tensorflow.framework.CollectionDef.AnyList.getDefaultInstance(); } anyListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CollectionDef.AnyList, org.tensorflow.framework.CollectionDef.AnyList.Builder, org.tensorflow.framework.CollectionDef.AnyListOrBuilder>( (org.tensorflow.framework.CollectionDef.AnyList) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 5; onChanged();; return anyListBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.CollectionDef) } // @@protoc_insertion_point(class_scope:tensorflow.CollectionDef) private static final org.tensorflow.framework.CollectionDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.CollectionDef(); } public static org.tensorflow.framework.CollectionDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CollectionDef parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CollectionDef(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.CollectionDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy