Class CreateWorkerSessionRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
      • getDefaultInstanceForType

        public CreateWorkerSessionRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateWorkerSessionRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateWorkerSessionRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public CreateWorkerSessionRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   int index,
                                                                   java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateWorkerSessionRequest.Builder>
        Throws:
        java.io.IOException
      • getSessionHandleBytes

        public com.google.protobuf.ByteString getSessionHandleBytes()
         Sessions are identified by a given handle.
         
        string session_handle = 1;
        Specified by:
        getSessionHandleBytes in interface CreateWorkerSessionRequestOrBuilder
        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 interface CreateWorkerSessionRequestOrBuilder
        Returns:
        Whether the serverDef field is set.
      • 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;
      • 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 interface CreateWorkerSessionRequestOrBuilder
        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.
      • 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;
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>
      • mergeUnknownFields

        public final CreateWorkerSessionRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateWorkerSessionRequest.Builder>