Package org.platanios.tensorflow.proto
Class CreateWorkerSessionRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
- org.platanios.tensorflow.proto.CreateWorkerSessionRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,CreateWorkerSessionRequestOrBuilder
- Enclosing class:
- CreateWorkerSessionRequest
public static final class CreateWorkerSessionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder> implements CreateWorkerSessionRequestOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.CreateWorkerSessionRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateWorkerSessionRequest.Builder
addAllClusterDeviceAttributes(java.lang.Iterable<? extends DeviceAttributes> values)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
addClusterDeviceAttributes(int index, DeviceAttributes value)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
addClusterDeviceAttributes(int index, DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
addClusterDeviceAttributes(DeviceAttributes value)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
addClusterDeviceAttributes(DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.DeviceAttributes.Builder
addClusterDeviceAttributesBuilder()
The device attributes of all the devices in the cluster.DeviceAttributes.Builder
addClusterDeviceAttributesBuilder(int index)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CreateWorkerSessionRequest
build()
CreateWorkerSessionRequest
buildPartial()
CreateWorkerSessionRequest.Builder
clear()
CreateWorkerSessionRequest.Builder
clearClusterDeviceAttributes()
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CreateWorkerSessionRequest.Builder
clearIsolateSessionState()
If true, any resources such as Variables used in the session will not be shared with other sessions.CreateWorkerSessionRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CreateWorkerSessionRequest.Builder
clearServerDef()
Defines the configuration of a TensorFlow worker.CreateWorkerSessionRequest.Builder
clearSessionHandle()
Sessions are identified by a given handle.CreateWorkerSessionRequest.Builder
clone()
DeviceAttributes
getClusterDeviceAttributes(int index)
The device attributes of all the devices in the cluster.DeviceAttributes.Builder
getClusterDeviceAttributesBuilder(int index)
The device attributes of all the devices in the cluster.java.util.List<DeviceAttributes.Builder>
getClusterDeviceAttributesBuilderList()
The device attributes of all the devices in the cluster.int
getClusterDeviceAttributesCount()
The device attributes of all the devices in the cluster.java.util.List<DeviceAttributes>
getClusterDeviceAttributesList()
The device attributes of all the devices in the cluster.DeviceAttributesOrBuilder
getClusterDeviceAttributesOrBuilder(int index)
The device attributes of all the devices in the cluster.java.util.List<? extends DeviceAttributesOrBuilder>
getClusterDeviceAttributesOrBuilderList()
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getIsolateSessionState()
If true, any resources such as Variables used in the session will not be shared with other sessions.ServerDef
getServerDef()
Defines the configuration of a TensorFlow worker.ServerDef.Builder
getServerDefBuilder()
Defines the configuration of a TensorFlow worker.ServerDefOrBuilder
getServerDefOrBuilder()
Defines the configuration of a TensorFlow worker.java.lang.String
getSessionHandle()
Sessions are identified by a given handle.com.google.protobuf.ByteString
getSessionHandleBytes()
Sessions are identified by a given handle.boolean
hasServerDef()
Defines the configuration of a TensorFlow worker.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CreateWorkerSessionRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CreateWorkerSessionRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CreateWorkerSessionRequest.Builder
mergeFrom(CreateWorkerSessionRequest other)
CreateWorkerSessionRequest.Builder
mergeServerDef(ServerDef value)
Defines the configuration of a TensorFlow worker.CreateWorkerSessionRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CreateWorkerSessionRequest.Builder
removeClusterDeviceAttributes(int index)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
setClusterDeviceAttributes(int index, DeviceAttributes value)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
setClusterDeviceAttributes(int index, DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.CreateWorkerSessionRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CreateWorkerSessionRequest.Builder
setIsolateSessionState(boolean value)
If true, any resources such as Variables used in the session will not be shared with other sessions.CreateWorkerSessionRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CreateWorkerSessionRequest.Builder
setServerDef(ServerDef value)
Defines the configuration of a TensorFlow worker.CreateWorkerSessionRequest.Builder
setServerDef(ServerDef.Builder builderForValue)
Defines the configuration of a TensorFlow worker.CreateWorkerSessionRequest.Builder
setSessionHandle(java.lang.String value)
Sessions are identified by a given handle.CreateWorkerSessionRequest.Builder
setSessionHandleBytes(com.google.protobuf.ByteString value)
Sessions are identified by a given handle.CreateWorkerSessionRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
clear
public CreateWorkerSessionRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
getDefaultInstanceForType
public CreateWorkerSessionRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateWorkerSessionRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateWorkerSessionRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateWorkerSessionRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
setField
public CreateWorkerSessionRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
clearField
public CreateWorkerSessionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
clearOneof
public CreateWorkerSessionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
setRepeatedField
public CreateWorkerSessionRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
addRepeatedField
public CreateWorkerSessionRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
mergeFrom
public CreateWorkerSessionRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateWorkerSessionRequest.Builder>
-
mergeFrom
public CreateWorkerSessionRequest.Builder mergeFrom(CreateWorkerSessionRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
mergeFrom
public CreateWorkerSessionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateWorkerSessionRequest.Builder>
- Throws:
java.io.IOException
-
getSessionHandle
public java.lang.String getSessionHandle()
Sessions are identified by a given handle.
string session_handle = 1;
- Specified by:
getSessionHandle
in interfaceCreateWorkerSessionRequestOrBuilder
- Returns:
- The sessionHandle.
-
getSessionHandleBytes
public com.google.protobuf.ByteString getSessionHandleBytes()
Sessions are identified by a given handle.
string session_handle = 1;
- Specified by:
getSessionHandleBytes
in interfaceCreateWorkerSessionRequestOrBuilder
- Returns:
- The bytes for sessionHandle.
-
setSessionHandle
public CreateWorkerSessionRequest.Builder setSessionHandle(java.lang.String value)
Sessions are identified by a given handle.
string session_handle = 1;
- Parameters:
value
- The sessionHandle to set.- Returns:
- This builder for chaining.
-
clearSessionHandle
public CreateWorkerSessionRequest.Builder clearSessionHandle()
Sessions are identified by a given handle.
string session_handle = 1;
- Returns:
- This builder for chaining.
-
setSessionHandleBytes
public CreateWorkerSessionRequest.Builder setSessionHandleBytes(com.google.protobuf.ByteString value)
Sessions are identified by a given handle.
string session_handle = 1;
- Parameters:
value
- The bytes for sessionHandle to set.- Returns:
- This builder for chaining.
-
hasServerDef
public boolean hasServerDef()
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
- Specified by:
hasServerDef
in interfaceCreateWorkerSessionRequestOrBuilder
- Returns:
- Whether the serverDef field is set.
-
getServerDef
public ServerDef getServerDef()
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
- Specified by:
getServerDef
in interfaceCreateWorkerSessionRequestOrBuilder
- Returns:
- The serverDef.
-
setServerDef
public CreateWorkerSessionRequest.Builder setServerDef(ServerDef value)
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
-
setServerDef
public CreateWorkerSessionRequest.Builder setServerDef(ServerDef.Builder builderForValue)
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
-
mergeServerDef
public CreateWorkerSessionRequest.Builder mergeServerDef(ServerDef value)
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
-
clearServerDef
public CreateWorkerSessionRequest.Builder clearServerDef()
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
-
getServerDefBuilder
public ServerDef.Builder getServerDefBuilder()
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
-
getServerDefOrBuilder
public ServerDefOrBuilder getServerDefOrBuilder()
Defines the configuration of a TensorFlow worker.
.org.platanios.tensorflow.proto.ServerDef server_def = 2;
- Specified by:
getServerDefOrBuilder
in interfaceCreateWorkerSessionRequestOrBuilder
-
getIsolateSessionState
public boolean getIsolateSessionState()
If true, any resources such as Variables used in the session will not be shared with other sessions.
bool isolate_session_state = 3;
- Specified by:
getIsolateSessionState
in interfaceCreateWorkerSessionRequestOrBuilder
- Returns:
- The isolateSessionState.
-
setIsolateSessionState
public CreateWorkerSessionRequest.Builder setIsolateSessionState(boolean value)
If true, any resources such as Variables used in the session will not be shared with other sessions.
bool isolate_session_state = 3;
- Parameters:
value
- The isolateSessionState to set.- Returns:
- This builder for chaining.
-
clearIsolateSessionState
public CreateWorkerSessionRequest.Builder clearIsolateSessionState()
If true, any resources such as Variables used in the session will not be shared with other sessions.
bool isolate_session_state = 3;
- Returns:
- This builder for chaining.
-
getClusterDeviceAttributesList
public java.util.List<DeviceAttributes> getClusterDeviceAttributesList()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
- Specified by:
getClusterDeviceAttributesList
in interfaceCreateWorkerSessionRequestOrBuilder
-
getClusterDeviceAttributesCount
public int getClusterDeviceAttributesCount()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
- Specified by:
getClusterDeviceAttributesCount
in interfaceCreateWorkerSessionRequestOrBuilder
-
getClusterDeviceAttributes
public DeviceAttributes getClusterDeviceAttributes(int index)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
- Specified by:
getClusterDeviceAttributes
in interfaceCreateWorkerSessionRequestOrBuilder
-
setClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder setClusterDeviceAttributes(int index, DeviceAttributes value)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
setClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder setClusterDeviceAttributes(int index, DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder addClusterDeviceAttributes(DeviceAttributes value)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder addClusterDeviceAttributes(int index, DeviceAttributes value)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder addClusterDeviceAttributes(DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder addClusterDeviceAttributes(int index, DeviceAttributes.Builder builderForValue)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addAllClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder addAllClusterDeviceAttributes(java.lang.Iterable<? extends DeviceAttributes> values)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
clearClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder clearClusterDeviceAttributes()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
removeClusterDeviceAttributes
public CreateWorkerSessionRequest.Builder removeClusterDeviceAttributes(int index)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
getClusterDeviceAttributesBuilder
public DeviceAttributes.Builder getClusterDeviceAttributesBuilder(int index)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
getClusterDeviceAttributesOrBuilder
public DeviceAttributesOrBuilder getClusterDeviceAttributesOrBuilder(int index)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
- Specified by:
getClusterDeviceAttributesOrBuilder
in interfaceCreateWorkerSessionRequestOrBuilder
-
getClusterDeviceAttributesOrBuilderList
public java.util.List<? extends DeviceAttributesOrBuilder> getClusterDeviceAttributesOrBuilderList()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
- Specified by:
getClusterDeviceAttributesOrBuilderList
in interfaceCreateWorkerSessionRequestOrBuilder
-
addClusterDeviceAttributesBuilder
public DeviceAttributes.Builder addClusterDeviceAttributesBuilder()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
addClusterDeviceAttributesBuilder
public DeviceAttributes.Builder addClusterDeviceAttributesBuilder(int index)
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
getClusterDeviceAttributesBuilderList
public java.util.List<DeviceAttributes.Builder> getClusterDeviceAttributesBuilderList()
The device attributes of all the devices in the cluster.
repeated .org.platanios.tensorflow.proto.DeviceAttributes cluster_device_attributes = 4;
-
setUnknownFields
public final CreateWorkerSessionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
mergeUnknownFields
public final CreateWorkerSessionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
-
-