
org.tensorflow.framework.RPCOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto Show documentation
Show all versions of proto Show documentation
Java API for TensorFlow protocol buffers.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/config.proto
package org.tensorflow.framework;
/**
* Protobuf type {@code tensorflow.RPCOptions}
*/
public final class RPCOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.RPCOptions)
RPCOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RPCOptions.newBuilder() to construct.
private RPCOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RPCOptions() {
useRpcForInprocessMaster_ = false;
compressionAlgorithm_ = "";
compressionLevel_ = 0;
cacheRpcResponse_ = false;
disableSessionConnectionSharing_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RPCOptions(
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: {
useRpcForInprocessMaster_ = input.readBool();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
compressionAlgorithm_ = s;
break;
}
case 24: {
compressionLevel_ = input.readInt32();
break;
}
case 32: {
cacheRpcResponse_ = input.readBool();
break;
}
case 40: {
disableSessionConnectionSharing_ = input.readBool();
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.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.RPCOptions.class, org.tensorflow.framework.RPCOptions.Builder.class);
}
public static final int USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER = 1;
private boolean useRpcForInprocessMaster_;
/**
*
* If true, always use RPC to contact the session target.
* If false (the default option), TensorFlow may use an optimized
* transport for client-master communication that avoids the RPC
* stack. This option is primarily for used testing the RPC stack.
*
*
* bool use_rpc_for_inprocess_master = 1;
*/
public boolean getUseRpcForInprocessMaster() {
return useRpcForInprocessMaster_;
}
public static final int COMPRESSION_ALGORITHM_FIELD_NUMBER = 2;
private volatile java.lang.Object compressionAlgorithm_;
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public java.lang.String getCompressionAlgorithm() {
java.lang.Object ref = compressionAlgorithm_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
compressionAlgorithm_ = s;
return s;
}
}
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public com.google.protobuf.ByteString
getCompressionAlgorithmBytes() {
java.lang.Object ref = compressionAlgorithm_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compressionAlgorithm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPRESSION_LEVEL_FIELD_NUMBER = 3;
private int compressionLevel_;
/**
*
* If compression_algorithm is set, the compression level to be used.
* From 0 (no compression), up to 3.
*
*
* int32 compression_level = 3;
*/
public int getCompressionLevel() {
return compressionLevel_;
}
public static final int CACHE_RPC_RESPONSE_FIELD_NUMBER = 4;
private boolean cacheRpcResponse_;
/**
*
* Setting cache_rpc_response to true will enable sender side caching of
* response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
* requests . This is only necessary when the network fabric is experiencing a
* significant error rate. Without it we'll fail a step on an network error,
* while with it we'll be able to complete long steps (like complex
* initializations) in the face of some network errors during RecvTensor.
*
*
* bool cache_rpc_response = 4;
*/
public boolean getCacheRpcResponse() {
return cacheRpcResponse_;
}
public static final int DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER = 5;
private boolean disableSessionConnectionSharing_;
/**
*
* Disables TCP connection sharing when opening a new RPC channel.
*
*
* bool disable_session_connection_sharing = 5;
*/
public boolean getDisableSessionConnectionSharing() {
return disableSessionConnectionSharing_;
}
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 (useRpcForInprocessMaster_ != false) {
output.writeBool(1, useRpcForInprocessMaster_);
}
if (!getCompressionAlgorithmBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, compressionAlgorithm_);
}
if (compressionLevel_ != 0) {
output.writeInt32(3, compressionLevel_);
}
if (cacheRpcResponse_ != false) {
output.writeBool(4, cacheRpcResponse_);
}
if (disableSessionConnectionSharing_ != false) {
output.writeBool(5, disableSessionConnectionSharing_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (useRpcForInprocessMaster_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, useRpcForInprocessMaster_);
}
if (!getCompressionAlgorithmBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, compressionAlgorithm_);
}
if (compressionLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, compressionLevel_);
}
if (cacheRpcResponse_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, cacheRpcResponse_);
}
if (disableSessionConnectionSharing_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, disableSessionConnectionSharing_);
}
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.RPCOptions)) {
return super.equals(obj);
}
org.tensorflow.framework.RPCOptions other = (org.tensorflow.framework.RPCOptions) obj;
boolean result = true;
result = result && (getUseRpcForInprocessMaster()
== other.getUseRpcForInprocessMaster());
result = result && getCompressionAlgorithm()
.equals(other.getCompressionAlgorithm());
result = result && (getCompressionLevel()
== other.getCompressionLevel());
result = result && (getCacheRpcResponse()
== other.getCacheRpcResponse());
result = result && (getDisableSessionConnectionSharing()
== other.getDisableSessionConnectionSharing());
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) + USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseRpcForInprocessMaster());
hash = (37 * hash) + COMPRESSION_ALGORITHM_FIELD_NUMBER;
hash = (53 * hash) + getCompressionAlgorithm().hashCode();
hash = (37 * hash) + COMPRESSION_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getCompressionLevel();
hash = (37 * hash) + CACHE_RPC_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCacheRpcResponse());
hash = (37 * hash) + DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableSessionConnectionSharing());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.RPCOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RPCOptions 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.RPCOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RPCOptions 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.RPCOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.RPCOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.RPCOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RPCOptions 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.RPCOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RPCOptions 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.RPCOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.RPCOptions 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.RPCOptions 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;
}
/**
* Protobuf type {@code tensorflow.RPCOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.RPCOptions)
org.tensorflow.framework.RPCOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.RPCOptions.class, org.tensorflow.framework.RPCOptions.Builder.class);
}
// Construct using org.tensorflow.framework.RPCOptions.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();
useRpcForInprocessMaster_ = false;
compressionAlgorithm_ = "";
compressionLevel_ = 0;
cacheRpcResponse_ = false;
disableSessionConnectionSharing_ = false;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RPCOptions_descriptor;
}
public org.tensorflow.framework.RPCOptions getDefaultInstanceForType() {
return org.tensorflow.framework.RPCOptions.getDefaultInstance();
}
public org.tensorflow.framework.RPCOptions build() {
org.tensorflow.framework.RPCOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.RPCOptions buildPartial() {
org.tensorflow.framework.RPCOptions result = new org.tensorflow.framework.RPCOptions(this);
result.useRpcForInprocessMaster_ = useRpcForInprocessMaster_;
result.compressionAlgorithm_ = compressionAlgorithm_;
result.compressionLevel_ = compressionLevel_;
result.cacheRpcResponse_ = cacheRpcResponse_;
result.disableSessionConnectionSharing_ = disableSessionConnectionSharing_;
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.RPCOptions) {
return mergeFrom((org.tensorflow.framework.RPCOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.RPCOptions other) {
if (other == org.tensorflow.framework.RPCOptions.getDefaultInstance()) return this;
if (other.getUseRpcForInprocessMaster() != false) {
setUseRpcForInprocessMaster(other.getUseRpcForInprocessMaster());
}
if (!other.getCompressionAlgorithm().isEmpty()) {
compressionAlgorithm_ = other.compressionAlgorithm_;
onChanged();
}
if (other.getCompressionLevel() != 0) {
setCompressionLevel(other.getCompressionLevel());
}
if (other.getCacheRpcResponse() != false) {
setCacheRpcResponse(other.getCacheRpcResponse());
}
if (other.getDisableSessionConnectionSharing() != false) {
setDisableSessionConnectionSharing(other.getDisableSessionConnectionSharing());
}
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.RPCOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.RPCOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean useRpcForInprocessMaster_ ;
/**
*
* If true, always use RPC to contact the session target.
* If false (the default option), TensorFlow may use an optimized
* transport for client-master communication that avoids the RPC
* stack. This option is primarily for used testing the RPC stack.
*
*
* bool use_rpc_for_inprocess_master = 1;
*/
public boolean getUseRpcForInprocessMaster() {
return useRpcForInprocessMaster_;
}
/**
*
* If true, always use RPC to contact the session target.
* If false (the default option), TensorFlow may use an optimized
* transport for client-master communication that avoids the RPC
* stack. This option is primarily for used testing the RPC stack.
*
*
* bool use_rpc_for_inprocess_master = 1;
*/
public Builder setUseRpcForInprocessMaster(boolean value) {
useRpcForInprocessMaster_ = value;
onChanged();
return this;
}
/**
*
* If true, always use RPC to contact the session target.
* If false (the default option), TensorFlow may use an optimized
* transport for client-master communication that avoids the RPC
* stack. This option is primarily for used testing the RPC stack.
*
*
* bool use_rpc_for_inprocess_master = 1;
*/
public Builder clearUseRpcForInprocessMaster() {
useRpcForInprocessMaster_ = false;
onChanged();
return this;
}
private java.lang.Object compressionAlgorithm_ = "";
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public java.lang.String getCompressionAlgorithm() {
java.lang.Object ref = compressionAlgorithm_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
compressionAlgorithm_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public com.google.protobuf.ByteString
getCompressionAlgorithmBytes() {
java.lang.Object ref = compressionAlgorithm_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compressionAlgorithm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public Builder setCompressionAlgorithm(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
compressionAlgorithm_ = value;
onChanged();
return this;
}
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public Builder clearCompressionAlgorithm() {
compressionAlgorithm_ = getDefaultInstance().getCompressionAlgorithm();
onChanged();
return this;
}
/**
*
* The compression algorithm to be used. One of "deflate", "gzip".
*
*
* string compression_algorithm = 2;
*/
public Builder setCompressionAlgorithmBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
compressionAlgorithm_ = value;
onChanged();
return this;
}
private int compressionLevel_ ;
/**
*
* If compression_algorithm is set, the compression level to be used.
* From 0 (no compression), up to 3.
*
*
* int32 compression_level = 3;
*/
public int getCompressionLevel() {
return compressionLevel_;
}
/**
*
* If compression_algorithm is set, the compression level to be used.
* From 0 (no compression), up to 3.
*
*
* int32 compression_level = 3;
*/
public Builder setCompressionLevel(int value) {
compressionLevel_ = value;
onChanged();
return this;
}
/**
*
* If compression_algorithm is set, the compression level to be used.
* From 0 (no compression), up to 3.
*
*
* int32 compression_level = 3;
*/
public Builder clearCompressionLevel() {
compressionLevel_ = 0;
onChanged();
return this;
}
private boolean cacheRpcResponse_ ;
/**
*
* Setting cache_rpc_response to true will enable sender side caching of
* response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
* requests . This is only necessary when the network fabric is experiencing a
* significant error rate. Without it we'll fail a step on an network error,
* while with it we'll be able to complete long steps (like complex
* initializations) in the face of some network errors during RecvTensor.
*
*
* bool cache_rpc_response = 4;
*/
public boolean getCacheRpcResponse() {
return cacheRpcResponse_;
}
/**
*
* Setting cache_rpc_response to true will enable sender side caching of
* response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
* requests . This is only necessary when the network fabric is experiencing a
* significant error rate. Without it we'll fail a step on an network error,
* while with it we'll be able to complete long steps (like complex
* initializations) in the face of some network errors during RecvTensor.
*
*
* bool cache_rpc_response = 4;
*/
public Builder setCacheRpcResponse(boolean value) {
cacheRpcResponse_ = value;
onChanged();
return this;
}
/**
*
* Setting cache_rpc_response to true will enable sender side caching of
* response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
* requests . This is only necessary when the network fabric is experiencing a
* significant error rate. Without it we'll fail a step on an network error,
* while with it we'll be able to complete long steps (like complex
* initializations) in the face of some network errors during RecvTensor.
*
*
* bool cache_rpc_response = 4;
*/
public Builder clearCacheRpcResponse() {
cacheRpcResponse_ = false;
onChanged();
return this;
}
private boolean disableSessionConnectionSharing_ ;
/**
*
* Disables TCP connection sharing when opening a new RPC channel.
*
*
* bool disable_session_connection_sharing = 5;
*/
public boolean getDisableSessionConnectionSharing() {
return disableSessionConnectionSharing_;
}
/**
*
* Disables TCP connection sharing when opening a new RPC channel.
*
*
* bool disable_session_connection_sharing = 5;
*/
public Builder setDisableSessionConnectionSharing(boolean value) {
disableSessionConnectionSharing_ = value;
onChanged();
return this;
}
/**
*
* Disables TCP connection sharing when opening a new RPC channel.
*
*
* bool disable_session_connection_sharing = 5;
*/
public Builder clearDisableSessionConnectionSharing() {
disableSessionConnectionSharing_ = false;
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.RPCOptions)
}
// @@protoc_insertion_point(class_scope:tensorflow.RPCOptions)
private static final org.tensorflow.framework.RPCOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.RPCOptions();
}
public static org.tensorflow.framework.RPCOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RPCOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RPCOptions(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.RPCOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy