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

org.tensorflow.tf2xla.Config Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/compiler/tf2xla/tf2xla.proto

package org.tensorflow.tf2xla;

/**
 * 
 * Config represents configuration information for tf2xla conversion.
 * 
* * Protobuf type {@code tensorflow.tf2xla.Config} */ public final class Config extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.tf2xla.Config) ConfigOrBuilder { private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Config() { feed_ = java.util.Collections.emptyList(); fetch_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Config( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { feed_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } feed_.add( input.readMessage(org.tensorflow.tf2xla.Feed.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { fetch_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } fetch_.add( input.readMessage(org.tensorflow.tf2xla.Fetch.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { feed_ = java.util.Collections.unmodifiableList(feed_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { fetch_ = java.util.Collections.unmodifiableList(fetch_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.tf2xla.Tf2XlaProtos.internal_static_tensorflow_tf2xla_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.tf2xla.Tf2XlaProtos.internal_static_tensorflow_tf2xla_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.tf2xla.Config.class, org.tensorflow.tf2xla.Config.Builder.class); } public static final int FEED_FIELD_NUMBER = 1; private java.util.List feed_; /** *
   * Each feed is a positional input argument for the generated computation.
   * The order of each entry matches the order of each input argument.
   * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public java.util.List getFeedList() { return feed_; } /** *
   * Each feed is a positional input argument for the generated computation.
   * The order of each entry matches the order of each input argument.
   * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public java.util.List getFeedOrBuilderList() { return feed_; } /** *
   * Each feed is a positional input argument for the generated computation.
   * The order of each entry matches the order of each input argument.
   * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public int getFeedCount() { return feed_.size(); } /** *
   * Each feed is a positional input argument for the generated computation.
   * The order of each entry matches the order of each input argument.
   * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.Feed getFeed(int index) { return feed_.get(index); } /** *
   * Each feed is a positional input argument for the generated computation.
   * The order of each entry matches the order of each input argument.
   * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.FeedOrBuilder getFeedOrBuilder( int index) { return feed_.get(index); } public static final int FETCH_FIELD_NUMBER = 2; private java.util.List fetch_; /** *
   * Each fetch is a positional output argument for the generated computation.
   * The order of each entry matches the order of each output argument.
   * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public java.util.List getFetchList() { return fetch_; } /** *
   * Each fetch is a positional output argument for the generated computation.
   * The order of each entry matches the order of each output argument.
   * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public java.util.List getFetchOrBuilderList() { return fetch_; } /** *
   * Each fetch is a positional output argument for the generated computation.
   * The order of each entry matches the order of each output argument.
   * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public int getFetchCount() { return fetch_.size(); } /** *
   * Each fetch is a positional output argument for the generated computation.
   * The order of each entry matches the order of each output argument.
   * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.Fetch getFetch(int index) { return fetch_.get(index); } /** *
   * Each fetch is a positional output argument for the generated computation.
   * The order of each entry matches the order of each output argument.
   * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.FetchOrBuilder getFetchOrBuilder( int index) { return fetch_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < feed_.size(); i++) { output.writeMessage(1, feed_.get(i)); } for (int i = 0; i < fetch_.size(); i++) { output.writeMessage(2, fetch_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < feed_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, feed_.get(i)); } for (int i = 0; i < fetch_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fetch_.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.tf2xla.Config)) { return super.equals(obj); } org.tensorflow.tf2xla.Config other = (org.tensorflow.tf2xla.Config) obj; boolean result = true; result = result && getFeedList() .equals(other.getFeedList()); result = result && getFetchList() .equals(other.getFetchList()); 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 (getFeedCount() > 0) { hash = (37 * hash) + FEED_FIELD_NUMBER; hash = (53 * hash) + getFeedList().hashCode(); } if (getFetchCount() > 0) { hash = (37 * hash) + FETCH_FIELD_NUMBER; hash = (53 * hash) + getFetchList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.tf2xla.Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.tf2xla.Config parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.tf2xla.Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.tf2xla.Config 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.tf2xla.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.tf2xla.Config parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.tf2xla.Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.tf2xla.Config 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.tf2xla.Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.tf2xla.Config 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.tf2xla.Config parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.tf2xla.Config parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.tf2xla.Config prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Config represents configuration information for tf2xla conversion.
   * 
* * Protobuf type {@code tensorflow.tf2xla.Config} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.tf2xla.Config) org.tensorflow.tf2xla.ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.tf2xla.Tf2XlaProtos.internal_static_tensorflow_tf2xla_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.tf2xla.Tf2XlaProtos.internal_static_tensorflow_tf2xla_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.tf2xla.Config.class, org.tensorflow.tf2xla.Config.Builder.class); } // Construct using org.tensorflow.tf2xla.Config.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFeedFieldBuilder(); getFetchFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (feedBuilder_ == null) { feed_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { feedBuilder_.clear(); } if (fetchBuilder_ == null) { fetch_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { fetchBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.tf2xla.Tf2XlaProtos.internal_static_tensorflow_tf2xla_Config_descriptor; } @java.lang.Override public org.tensorflow.tf2xla.Config getDefaultInstanceForType() { return org.tensorflow.tf2xla.Config.getDefaultInstance(); } @java.lang.Override public org.tensorflow.tf2xla.Config build() { org.tensorflow.tf2xla.Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.tensorflow.tf2xla.Config buildPartial() { org.tensorflow.tf2xla.Config result = new org.tensorflow.tf2xla.Config(this); int from_bitField0_ = bitField0_; if (feedBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { feed_ = java.util.Collections.unmodifiableList(feed_); bitField0_ = (bitField0_ & ~0x00000001); } result.feed_ = feed_; } else { result.feed_ = feedBuilder_.build(); } if (fetchBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { fetch_ = java.util.Collections.unmodifiableList(fetch_); bitField0_ = (bitField0_ & ~0x00000002); } result.fetch_ = fetch_; } else { result.fetch_ = fetchBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tensorflow.tf2xla.Config) { return mergeFrom((org.tensorflow.tf2xla.Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.tf2xla.Config other) { if (other == org.tensorflow.tf2xla.Config.getDefaultInstance()) return this; if (feedBuilder_ == null) { if (!other.feed_.isEmpty()) { if (feed_.isEmpty()) { feed_ = other.feed_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFeedIsMutable(); feed_.addAll(other.feed_); } onChanged(); } } else { if (!other.feed_.isEmpty()) { if (feedBuilder_.isEmpty()) { feedBuilder_.dispose(); feedBuilder_ = null; feed_ = other.feed_; bitField0_ = (bitField0_ & ~0x00000001); feedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFeedFieldBuilder() : null; } else { feedBuilder_.addAllMessages(other.feed_); } } } if (fetchBuilder_ == null) { if (!other.fetch_.isEmpty()) { if (fetch_.isEmpty()) { fetch_ = other.fetch_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFetchIsMutable(); fetch_.addAll(other.fetch_); } onChanged(); } } else { if (!other.fetch_.isEmpty()) { if (fetchBuilder_.isEmpty()) { fetchBuilder_.dispose(); fetchBuilder_ = null; fetch_ = other.fetch_; bitField0_ = (bitField0_ & ~0x00000002); fetchBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFetchFieldBuilder() : null; } else { fetchBuilder_.addAllMessages(other.fetch_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.tf2xla.Config parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.tf2xla.Config) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List feed_ = java.util.Collections.emptyList(); private void ensureFeedIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { feed_ = new java.util.ArrayList(feed_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Feed, org.tensorflow.tf2xla.Feed.Builder, org.tensorflow.tf2xla.FeedOrBuilder> feedBuilder_; /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public java.util.List getFeedList() { if (feedBuilder_ == null) { return java.util.Collections.unmodifiableList(feed_); } else { return feedBuilder_.getMessageList(); } } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public int getFeedCount() { if (feedBuilder_ == null) { return feed_.size(); } else { return feedBuilder_.getCount(); } } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.Feed getFeed(int index) { if (feedBuilder_ == null) { return feed_.get(index); } else { return feedBuilder_.getMessage(index); } } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder setFeed( int index, org.tensorflow.tf2xla.Feed value) { if (feedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeedIsMutable(); feed_.set(index, value); onChanged(); } else { feedBuilder_.setMessage(index, value); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder setFeed( int index, org.tensorflow.tf2xla.Feed.Builder builderForValue) { if (feedBuilder_ == null) { ensureFeedIsMutable(); feed_.set(index, builderForValue.build()); onChanged(); } else { feedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder addFeed(org.tensorflow.tf2xla.Feed value) { if (feedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeedIsMutable(); feed_.add(value); onChanged(); } else { feedBuilder_.addMessage(value); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder addFeed( int index, org.tensorflow.tf2xla.Feed value) { if (feedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFeedIsMutable(); feed_.add(index, value); onChanged(); } else { feedBuilder_.addMessage(index, value); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder addFeed( org.tensorflow.tf2xla.Feed.Builder builderForValue) { if (feedBuilder_ == null) { ensureFeedIsMutable(); feed_.add(builderForValue.build()); onChanged(); } else { feedBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder addFeed( int index, org.tensorflow.tf2xla.Feed.Builder builderForValue) { if (feedBuilder_ == null) { ensureFeedIsMutable(); feed_.add(index, builderForValue.build()); onChanged(); } else { feedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder addAllFeed( java.lang.Iterable values) { if (feedBuilder_ == null) { ensureFeedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, feed_); onChanged(); } else { feedBuilder_.addAllMessages(values); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder clearFeed() { if (feedBuilder_ == null) { feed_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { feedBuilder_.clear(); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public Builder removeFeed(int index) { if (feedBuilder_ == null) { ensureFeedIsMutable(); feed_.remove(index); onChanged(); } else { feedBuilder_.remove(index); } return this; } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.Feed.Builder getFeedBuilder( int index) { return getFeedFieldBuilder().getBuilder(index); } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.FeedOrBuilder getFeedOrBuilder( int index) { if (feedBuilder_ == null) { return feed_.get(index); } else { return feedBuilder_.getMessageOrBuilder(index); } } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public java.util.List getFeedOrBuilderList() { if (feedBuilder_ != null) { return feedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(feed_); } } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.Feed.Builder addFeedBuilder() { return getFeedFieldBuilder().addBuilder( org.tensorflow.tf2xla.Feed.getDefaultInstance()); } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public org.tensorflow.tf2xla.Feed.Builder addFeedBuilder( int index) { return getFeedFieldBuilder().addBuilder( index, org.tensorflow.tf2xla.Feed.getDefaultInstance()); } /** *
     * Each feed is a positional input argument for the generated computation.
     * The order of each entry matches the order of each input argument.
     * 
* * repeated .tensorflow.tf2xla.Feed feed = 1; */ public java.util.List getFeedBuilderList() { return getFeedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Feed, org.tensorflow.tf2xla.Feed.Builder, org.tensorflow.tf2xla.FeedOrBuilder> getFeedFieldBuilder() { if (feedBuilder_ == null) { feedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Feed, org.tensorflow.tf2xla.Feed.Builder, org.tensorflow.tf2xla.FeedOrBuilder>( feed_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); feed_ = null; } return feedBuilder_; } private java.util.List fetch_ = java.util.Collections.emptyList(); private void ensureFetchIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { fetch_ = new java.util.ArrayList(fetch_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Fetch, org.tensorflow.tf2xla.Fetch.Builder, org.tensorflow.tf2xla.FetchOrBuilder> fetchBuilder_; /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public java.util.List getFetchList() { if (fetchBuilder_ == null) { return java.util.Collections.unmodifiableList(fetch_); } else { return fetchBuilder_.getMessageList(); } } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public int getFetchCount() { if (fetchBuilder_ == null) { return fetch_.size(); } else { return fetchBuilder_.getCount(); } } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.Fetch getFetch(int index) { if (fetchBuilder_ == null) { return fetch_.get(index); } else { return fetchBuilder_.getMessage(index); } } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder setFetch( int index, org.tensorflow.tf2xla.Fetch value) { if (fetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFetchIsMutable(); fetch_.set(index, value); onChanged(); } else { fetchBuilder_.setMessage(index, value); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder setFetch( int index, org.tensorflow.tf2xla.Fetch.Builder builderForValue) { if (fetchBuilder_ == null) { ensureFetchIsMutable(); fetch_.set(index, builderForValue.build()); onChanged(); } else { fetchBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder addFetch(org.tensorflow.tf2xla.Fetch value) { if (fetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFetchIsMutable(); fetch_.add(value); onChanged(); } else { fetchBuilder_.addMessage(value); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder addFetch( int index, org.tensorflow.tf2xla.Fetch value) { if (fetchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFetchIsMutable(); fetch_.add(index, value); onChanged(); } else { fetchBuilder_.addMessage(index, value); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder addFetch( org.tensorflow.tf2xla.Fetch.Builder builderForValue) { if (fetchBuilder_ == null) { ensureFetchIsMutable(); fetch_.add(builderForValue.build()); onChanged(); } else { fetchBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder addFetch( int index, org.tensorflow.tf2xla.Fetch.Builder builderForValue) { if (fetchBuilder_ == null) { ensureFetchIsMutable(); fetch_.add(index, builderForValue.build()); onChanged(); } else { fetchBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder addAllFetch( java.lang.Iterable values) { if (fetchBuilder_ == null) { ensureFetchIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fetch_); onChanged(); } else { fetchBuilder_.addAllMessages(values); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder clearFetch() { if (fetchBuilder_ == null) { fetch_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { fetchBuilder_.clear(); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public Builder removeFetch(int index) { if (fetchBuilder_ == null) { ensureFetchIsMutable(); fetch_.remove(index); onChanged(); } else { fetchBuilder_.remove(index); } return this; } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.Fetch.Builder getFetchBuilder( int index) { return getFetchFieldBuilder().getBuilder(index); } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.FetchOrBuilder getFetchOrBuilder( int index) { if (fetchBuilder_ == null) { return fetch_.get(index); } else { return fetchBuilder_.getMessageOrBuilder(index); } } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public java.util.List getFetchOrBuilderList() { if (fetchBuilder_ != null) { return fetchBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fetch_); } } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.Fetch.Builder addFetchBuilder() { return getFetchFieldBuilder().addBuilder( org.tensorflow.tf2xla.Fetch.getDefaultInstance()); } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public org.tensorflow.tf2xla.Fetch.Builder addFetchBuilder( int index) { return getFetchFieldBuilder().addBuilder( index, org.tensorflow.tf2xla.Fetch.getDefaultInstance()); } /** *
     * Each fetch is a positional output argument for the generated computation.
     * The order of each entry matches the order of each output argument.
     * 
* * repeated .tensorflow.tf2xla.Fetch fetch = 2; */ public java.util.List getFetchBuilderList() { return getFetchFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Fetch, org.tensorflow.tf2xla.Fetch.Builder, org.tensorflow.tf2xla.FetchOrBuilder> getFetchFieldBuilder() { if (fetchBuilder_ == null) { fetchBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.tf2xla.Fetch, org.tensorflow.tf2xla.Fetch.Builder, org.tensorflow.tf2xla.FetchOrBuilder>( fetch_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); fetch_ = null; } return fetchBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.tf2xla.Config) } // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.Config) private static final org.tensorflow.tf2xla.Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.tf2xla.Config(); } public static org.tensorflow.tf2xla.Config getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Config parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Config(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.tensorflow.tf2xla.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy