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

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

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/framework/tensor.proto

package org.tensorflow.framework;

/**
 * 
 * Protocol buffer representing the serialization format of DT_VARIANT tensors.
 * 
* * Protobuf type {@code tensorflow.VariantTensorDataProto} */ public final class VariantTensorDataProto extends com.github.os72.protobuf351.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.VariantTensorDataProto) VariantTensorDataProtoOrBuilder { private static final long serialVersionUID = 0L; // Use VariantTensorDataProto.newBuilder() to construct. private VariantTensorDataProto(com.github.os72.protobuf351.GeneratedMessageV3.Builder builder) { super(builder); } private VariantTensorDataProto() { typeName_ = ""; metadata_ = com.github.os72.protobuf351.ByteString.EMPTY; tensors_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.github.os72.protobuf351.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VariantTensorDataProto( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields = com.github.os72.protobuf351.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(); typeName_ = s; break; } case 18: { metadata_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tensors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } tensors_.add( input.readMessage(org.tensorflow.framework.TensorProto.parser(), extensionRegistry)); break; } } } } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.github.os72.protobuf351.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tensors_ = java.util.Collections.unmodifiableList(tensors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.VariantTensorDataProto.class, org.tensorflow.framework.VariantTensorDataProto.Builder.class); } private int bitField0_; public static final int TYPE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object typeName_; /** *
   * Name of the type of objects being serialized.
   * 
* * string type_name = 1; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeName_ = s; return s; } } /** *
   * Name of the type of objects being serialized.
   * 
* * string type_name = 1; */ public com.github.os72.protobuf351.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } public static final int METADATA_FIELD_NUMBER = 2; private com.github.os72.protobuf351.ByteString metadata_; /** *
   * Portions of the object that are not Tensors.
   * 
* * bytes metadata = 2; */ public com.github.os72.protobuf351.ByteString getMetadata() { return metadata_; } public static final int TENSORS_FIELD_NUMBER = 3; private java.util.List tensors_; /** *
   * Tensors contained within objects being serialized.
   * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public java.util.List getTensorsList() { return tensors_; } /** *
   * Tensors contained within objects being serialized.
   * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public java.util.List getTensorsOrBuilderList() { return tensors_; } /** *
   * Tensors contained within objects being serialized.
   * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public int getTensorsCount() { return tensors_.size(); } /** *
   * Tensors contained within objects being serialized.
   * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProto getTensors(int index) { return tensors_.get(index); } /** *
   * Tensors contained within objects being serialized.
   * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorsOrBuilder( int index) { return tensors_.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.github.os72.protobuf351.CodedOutputStream output) throws java.io.IOException { if (!getTypeNameBytes().isEmpty()) { com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, typeName_); } if (!metadata_.isEmpty()) { output.writeBytes(2, metadata_); } for (int i = 0; i < tensors_.size(); i++) { output.writeMessage(3, tensors_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTypeNameBytes().isEmpty()) { size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, typeName_); } if (!metadata_.isEmpty()) { size += com.github.os72.protobuf351.CodedOutputStream .computeBytesSize(2, metadata_); } for (int i = 0; i < tensors_.size(); i++) { size += com.github.os72.protobuf351.CodedOutputStream .computeMessageSize(3, tensors_.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.VariantTensorDataProto)) { return super.equals(obj); } org.tensorflow.framework.VariantTensorDataProto other = (org.tensorflow.framework.VariantTensorDataProto) obj; boolean result = true; result = result && getTypeName() .equals(other.getTypeName()); result = result && getMetadata() .equals(other.getMetadata()); result = result && getTensorsList() .equals(other.getTensorsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTypeName().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (getTensorsCount() > 0) { hash = (37 * hash) + TENSORS_FIELD_NUMBER; hash = (53 * hash) + getTensorsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( java.nio.ByteBuffer data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( java.nio.ByteBuffer data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( com.github.os72.protobuf351.ByteString data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( com.github.os72.protobuf351.ByteString data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom(byte[] data) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( byte[] data, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.VariantTensorDataProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.VariantTensorDataProto parseDelimitedFrom( java.io.InputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( com.github.os72.protobuf351.CodedInputStream input) throws java.io.IOException { return com.github.os72.protobuf351.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.VariantTensorDataProto parseFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.github.os72.protobuf351.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.VariantTensorDataProto 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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Protocol buffer representing the serialization format of DT_VARIANT tensors.
   * 
* * Protobuf type {@code tensorflow.VariantTensorDataProto} */ public static final class Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.VariantTensorDataProto) org.tensorflow.framework.VariantTensorDataProtoOrBuilder { public static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; } protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.VariantTensorDataProto.class, org.tensorflow.framework.VariantTensorDataProto.Builder.class); } // Construct using org.tensorflow.framework.VariantTensorDataProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.github.os72.protobuf351.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTensorsFieldBuilder(); } } public Builder clear() { super.clear(); typeName_ = ""; metadata_ = com.github.os72.protobuf351.ByteString.EMPTY; if (tensorsBuilder_ == null) { tensors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { tensorsBuilder_.clear(); } return this; } public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.TensorProtos.internal_static_tensorflow_VariantTensorDataProto_descriptor; } public org.tensorflow.framework.VariantTensorDataProto getDefaultInstanceForType() { return org.tensorflow.framework.VariantTensorDataProto.getDefaultInstance(); } public org.tensorflow.framework.VariantTensorDataProto build() { org.tensorflow.framework.VariantTensorDataProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.VariantTensorDataProto buildPartial() { org.tensorflow.framework.VariantTensorDataProto result = new org.tensorflow.framework.VariantTensorDataProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.typeName_ = typeName_; result.metadata_ = metadata_; if (tensorsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { tensors_ = java.util.Collections.unmodifiableList(tensors_); bitField0_ = (bitField0_ & ~0x00000004); } result.tensors_ = tensors_; } else { result.tensors_ = tensorsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.github.os72.protobuf351.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.github.os72.protobuf351.Message other) { if (other instanceof org.tensorflow.framework.VariantTensorDataProto) { return mergeFrom((org.tensorflow.framework.VariantTensorDataProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.VariantTensorDataProto other) { if (other == org.tensorflow.framework.VariantTensorDataProto.getDefaultInstance()) return this; if (!other.getTypeName().isEmpty()) { typeName_ = other.typeName_; onChanged(); } if (other.getMetadata() != com.github.os72.protobuf351.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (tensorsBuilder_ == null) { if (!other.tensors_.isEmpty()) { if (tensors_.isEmpty()) { tensors_ = other.tensors_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTensorsIsMutable(); tensors_.addAll(other.tensors_); } onChanged(); } } else { if (!other.tensors_.isEmpty()) { if (tensorsBuilder_.isEmpty()) { tensorsBuilder_.dispose(); tensorsBuilder_ = null; tensors_ = other.tensors_; bitField0_ = (bitField0_ & ~0x00000004); tensorsBuilder_ = com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ? getTensorsFieldBuilder() : null; } else { tensorsBuilder_.addAllMessages(other.tensors_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.VariantTensorDataProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.VariantTensorDataProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object typeName_ = ""; /** *
     * Name of the type of objects being serialized.
     * 
* * string type_name = 1; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; if (!(ref instanceof java.lang.String)) { com.github.os72.protobuf351.ByteString bs = (com.github.os72.protobuf351.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the type of objects being serialized.
     * 
* * string type_name = 1; */ public com.github.os72.protobuf351.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof String) { com.github.os72.protobuf351.ByteString b = com.github.os72.protobuf351.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.github.os72.protobuf351.ByteString) ref; } } /** *
     * Name of the type of objects being serialized.
     * 
* * string type_name = 1; */ public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeName_ = value; onChanged(); return this; } /** *
     * Name of the type of objects being serialized.
     * 
* * string type_name = 1; */ public Builder clearTypeName() { typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; } /** *
     * Name of the type of objects being serialized.
     * 
* * string type_name = 1; */ public Builder setTypeNameBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeName_ = value; onChanged(); return this; } private com.github.os72.protobuf351.ByteString metadata_ = com.github.os72.protobuf351.ByteString.EMPTY; /** *
     * Portions of the object that are not Tensors.
     * 
* * bytes metadata = 2; */ public com.github.os72.protobuf351.ByteString getMetadata() { return metadata_; } /** *
     * Portions of the object that are not Tensors.
     * 
* * bytes metadata = 2; */ public Builder setMetadata(com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** *
     * Portions of the object that are not Tensors.
     * 
* * bytes metadata = 2; */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private java.util.List tensors_ = java.util.Collections.emptyList(); private void ensureTensorsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { tensors_ = new java.util.ArrayList(tensors_); bitField0_ |= 0x00000004; } } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> tensorsBuilder_; /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public java.util.List getTensorsList() { if (tensorsBuilder_ == null) { return java.util.Collections.unmodifiableList(tensors_); } else { return tensorsBuilder_.getMessageList(); } } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public int getTensorsCount() { if (tensorsBuilder_ == null) { return tensors_.size(); } else { return tensorsBuilder_.getCount(); } } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProto getTensors(int index) { if (tensorsBuilder_ == null) { return tensors_.get(index); } else { return tensorsBuilder_.getMessage(index); } } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder setTensors( int index, org.tensorflow.framework.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.set(index, value); onChanged(); } else { tensorsBuilder_.setMessage(index, value); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder setTensors( int index, org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.set(index, builderForValue.build()); onChanged(); } else { tensorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder addTensors(org.tensorflow.framework.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.add(value); onChanged(); } else { tensorsBuilder_.addMessage(value); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder addTensors( int index, org.tensorflow.framework.TensorProto value) { if (tensorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorsIsMutable(); tensors_.add(index, value); onChanged(); } else { tensorsBuilder_.addMessage(index, value); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder addTensors( org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.add(builderForValue.build()); onChanged(); } else { tensorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder addTensors( int index, org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.add(index, builderForValue.build()); onChanged(); } else { tensorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder addAllTensors( java.lang.Iterable values) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); com.github.os72.protobuf351.AbstractMessageLite.Builder.addAll( values, tensors_); onChanged(); } else { tensorsBuilder_.addAllMessages(values); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder clearTensors() { if (tensorsBuilder_ == null) { tensors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tensorsBuilder_.clear(); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public Builder removeTensors(int index) { if (tensorsBuilder_ == null) { ensureTensorsIsMutable(); tensors_.remove(index); onChanged(); } else { tensorsBuilder_.remove(index); } return this; } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProto.Builder getTensorsBuilder( int index) { return getTensorsFieldBuilder().getBuilder(index); } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProtoOrBuilder getTensorsOrBuilder( int index) { if (tensorsBuilder_ == null) { return tensors_.get(index); } else { return tensorsBuilder_.getMessageOrBuilder(index); } } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public java.util.List getTensorsOrBuilderList() { if (tensorsBuilder_ != null) { return tensorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tensors_); } } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProto.Builder addTensorsBuilder() { return getTensorsFieldBuilder().addBuilder( org.tensorflow.framework.TensorProto.getDefaultInstance()); } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public org.tensorflow.framework.TensorProto.Builder addTensorsBuilder( int index) { return getTensorsFieldBuilder().addBuilder( index, org.tensorflow.framework.TensorProto.getDefaultInstance()); } /** *
     * Tensors contained within objects being serialized.
     * 
* * repeated .tensorflow.TensorProto tensors = 3; */ public java.util.List getTensorsBuilderList() { return getTensorsFieldBuilder().getBuilderList(); } private com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder> getTensorsFieldBuilder() { if (tensorsBuilder_ == null) { tensorsBuilder_ = new com.github.os72.protobuf351.RepeatedFieldBuilderV3< org.tensorflow.framework.TensorProto, org.tensorflow.framework.TensorProto.Builder, org.tensorflow.framework.TensorProtoOrBuilder>( tensors_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); tensors_ = null; } return tensorsBuilder_; } public final Builder setUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.github.os72.protobuf351.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.VariantTensorDataProto) } // @@protoc_insertion_point(class_scope:tensorflow.VariantTensorDataProto) private static final org.tensorflow.framework.VariantTensorDataProto DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.VariantTensorDataProto(); } public static org.tensorflow.framework.VariantTensorDataProto getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.github.os72.protobuf351.Parser PARSER = new com.github.os72.protobuf351.AbstractParser() { public VariantTensorDataProto parsePartialFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws com.github.os72.protobuf351.InvalidProtocolBufferException { return new VariantTensorDataProto(input, extensionRegistry); } }; public static com.github.os72.protobuf351.Parser parser() { return PARSER; } @java.lang.Override public com.github.os72.protobuf351.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.VariantTensorDataProto getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy