Class RpcOptions.RPCOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RpcOptions.RPCOptions.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
org.tensorflow.proto.RpcOptions.RPCOptions.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, RpcOptions.RPCOptionsOrBuilder
- Enclosing class:
RpcOptions.RPCOptions
public static final class RpcOptions.RPCOptions.Builder
extends GeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
implements RpcOptions.RPCOptionsOrBuilder
RPC options for distributed runtime.Protobuf type
tensorflow.RPCOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Setting cache_rpc_response to true will enable sender side caching of response for RecvTensorAsync and RecvBufAsync to allow receiver to retry requests .The compression algorithm to be used.If compression_algorithm is set, the compression level to be used.Disables TCP connection sharing when opening a new RPC channel.Setting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target.If true, always use RPC to contact the session target.clone()booleanSetting cache_rpc_response to true will enable sender side caching of response for RecvTensorAsync and RecvBufAsync to allow receiver to retry requests .The compression algorithm to be used.The compression algorithm to be used.intIf compression_algorithm is set, the compression level to be used.static final Descriptors.DescriptorbooleanDisables TCP connection sharing when opening a new RPC channel.intSetting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target.booleanIf true, always use RPC to contact the session target.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(RpcOptions.RPCOptions other) mergeUnknownFields(UnknownFieldSet unknownFields) setCacheRpcResponse(boolean value) Setting cache_rpc_response to true will enable sender side caching of response for RecvTensorAsync and RecvBufAsync to allow receiver to retry requests .setCompressionAlgorithm(String value) The compression algorithm to be used.The compression algorithm to be used.setCompressionLevel(int value) If compression_algorithm is set, the compression level to be used.setDisableSessionConnectionSharing(boolean value) Disables TCP connection sharing when opening a new RPC channel.setField(Descriptors.FieldDescriptor field, Object value) setNumChannelsPerTarget(int value) Setting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(UnknownFieldSet unknownFields) setUseRpcForInprocessMaster(boolean value) If true, always use RPC to contact the session target.Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
setRepeatedField
public RpcOptions.RPCOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
addRepeatedField
public RpcOptions.RPCOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RpcOptions.RPCOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
mergeFrom
public RpcOptions.RPCOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RpcOptions.RPCOptions.Builder>- Throws:
IOException
-
getUseRpcForInprocessMaster
public boolean getUseRpcForInprocessMaster()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;- Specified by:
getUseRpcForInprocessMasterin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The useRpcForInprocessMaster.
-
setUseRpcForInprocessMaster
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;- Parameters:
value- The useRpcForInprocessMaster to set.- Returns:
- This builder for chaining.
-
clearUseRpcForInprocessMaster
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;- Returns:
- This builder for chaining.
-
getCompressionAlgorithm
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;- Specified by:
getCompressionAlgorithmin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The compressionAlgorithm.
-
getCompressionAlgorithmBytes
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;- Specified by:
getCompressionAlgorithmBytesin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The bytes for compressionAlgorithm.
-
setCompressionAlgorithm
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;- Parameters:
value- The compressionAlgorithm to set.- Returns:
- This builder for chaining.
-
clearCompressionAlgorithm
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;- Returns:
- This builder for chaining.
-
setCompressionAlgorithmBytes
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;- Parameters:
value- The bytes for compressionAlgorithm to set.- Returns:
- This builder for chaining.
-
getCompressionLevel
public int getCompressionLevel()If compression_algorithm is set, the compression level to be used. From 0 (no compression), up to 3.
int32 compression_level = 3;- Specified by:
getCompressionLevelin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The compressionLevel.
-
setCompressionLevel
If compression_algorithm is set, the compression level to be used. From 0 (no compression), up to 3.
int32 compression_level = 3;- Parameters:
value- The compressionLevel to set.- Returns:
- This builder for chaining.
-
clearCompressionLevel
If compression_algorithm is set, the compression level to be used. From 0 (no compression), up to 3.
int32 compression_level = 3;- Returns:
- This builder for chaining.
-
getCacheRpcResponse
public boolean getCacheRpcResponse()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;- Specified by:
getCacheRpcResponsein interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The cacheRpcResponse.
-
setCacheRpcResponse
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;- Parameters:
value- The cacheRpcResponse to set.- Returns:
- This builder for chaining.
-
clearCacheRpcResponse
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;- Returns:
- This builder for chaining.
-
getDisableSessionConnectionSharing
public boolean getDisableSessionConnectionSharing()Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;- Specified by:
getDisableSessionConnectionSharingin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The disableSessionConnectionSharing.
-
setDisableSessionConnectionSharing
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;- Parameters:
value- The disableSessionConnectionSharing to set.- Returns:
- This builder for chaining.
-
clearDisableSessionConnectionSharing
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;- Returns:
- This builder for chaining.
-
getNumChannelsPerTarget
public int getNumChannelsPerTarget()Setting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target. This can be used to improve the aggregate throughput on high speed links (e.g 100G) where single connection is not sufficient to maximize link utilization. Note that a single RPC only goes on a single channel, this only helps in situations where there are multiple transfers to the same target overlapping in time.
int32 num_channels_per_target = 6;- Specified by:
getNumChannelsPerTargetin interfaceRpcOptions.RPCOptionsOrBuilder- Returns:
- The numChannelsPerTarget.
-
setNumChannelsPerTarget
Setting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target. This can be used to improve the aggregate throughput on high speed links (e.g 100G) where single connection is not sufficient to maximize link utilization. Note that a single RPC only goes on a single channel, this only helps in situations where there are multiple transfers to the same target overlapping in time.
int32 num_channels_per_target = 6;- Parameters:
value- The numChannelsPerTarget to set.- Returns:
- This builder for chaining.
-
clearNumChannelsPerTarget
Setting num_channels_per_target > 0 allows uses of multiple channels to communicate to the same target. This can be used to improve the aggregate throughput on high speed links (e.g 100G) where single connection is not sufficient to maximize link utilization. Note that a single RPC only goes on a single channel, this only helps in situations where there are multiple transfers to the same target overlapping in time.
int32 num_channels_per_target = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<RpcOptions.RPCOptions.Builder>
-