Class RecvTensorRequest.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, RecvTensorRequestOrBuilder
    Enclosing class:
    RecvTensorRequest

    public static final class RecvTensorRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
    implements RecvTensorRequestOrBuilder
    Protobuf type org.platanios.tensorflow.proto.RecvTensorRequest
    • 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<RecvTensorRequest.Builder>
      • clear

        public RecvTensorRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.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<RecvTensorRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public RecvTensorRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
      • setField

        public RecvTensorRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
      • clearField

        public RecvTensorRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
      • clearOneof

        public RecvTensorRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
      • setRepeatedField

        public RecvTensorRequest.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<RecvTensorRequest.Builder>
      • addRepeatedField

        public RecvTensorRequest.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<RecvTensorRequest.Builder>
      • mergeFrom

        public RecvTensorRequest.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecvTensorRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecvTensorRequest.Builder>
      • mergeFrom

        public RecvTensorRequest.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<RecvTensorRequest.Builder>
        Throws:
        java.io.IOException
      • getStepId

        public long getStepId()
         The step in which the tensor will be produced.
         REQUIRED: This must eventually correspond to the `step_id` passed
         into a RunGraph call on the same WorkerService.
         
        int64 step_id = 1;
        Specified by:
        getStepId in interface RecvTensorRequestOrBuilder
        Returns:
        The stepId.
      • setStepId

        public RecvTensorRequest.Builder setStepId​(long value)
         The step in which the tensor will be produced.
         REQUIRED: This must eventually correspond to the `step_id` passed
         into a RunGraph call on the same WorkerService.
         
        int64 step_id = 1;
        Parameters:
        value - The stepId to set.
        Returns:
        This builder for chaining.
      • clearStepId

        public RecvTensorRequest.Builder clearStepId()
         The step in which the tensor will be produced.
         REQUIRED: This must eventually correspond to the `step_id` passed
         into a RunGraph call on the same WorkerService.
         
        int64 step_id = 1;
        Returns:
        This builder for chaining.
      • getRendezvousKey

        public java.lang.String getRendezvousKey()
         A key identifying the channel to receive tensors from. A RecvTensor request
         retrieves one tensor from the channel, but multiple tensors can be sent and
         received over the same channel with multiple RecvTensor requests. See
         rendezvous.h for details.
         
        string rendezvous_key = 2;
        Specified by:
        getRendezvousKey in interface RecvTensorRequestOrBuilder
        Returns:
        The rendezvousKey.
      • getRendezvousKeyBytes

        public com.google.protobuf.ByteString getRendezvousKeyBytes()
         A key identifying the channel to receive tensors from. A RecvTensor request
         retrieves one tensor from the channel, but multiple tensors can be sent and
         received over the same channel with multiple RecvTensor requests. See
         rendezvous.h for details.
         
        string rendezvous_key = 2;
        Specified by:
        getRendezvousKeyBytes in interface RecvTensorRequestOrBuilder
        Returns:
        The bytes for rendezvousKey.
      • setRendezvousKey

        public RecvTensorRequest.Builder setRendezvousKey​(java.lang.String value)
         A key identifying the channel to receive tensors from. A RecvTensor request
         retrieves one tensor from the channel, but multiple tensors can be sent and
         received over the same channel with multiple RecvTensor requests. See
         rendezvous.h for details.
         
        string rendezvous_key = 2;
        Parameters:
        value - The rendezvousKey to set.
        Returns:
        This builder for chaining.
      • clearRendezvousKey

        public RecvTensorRequest.Builder clearRendezvousKey()
         A key identifying the channel to receive tensors from. A RecvTensor request
         retrieves one tensor from the channel, but multiple tensors can be sent and
         received over the same channel with multiple RecvTensor requests. See
         rendezvous.h for details.
         
        string rendezvous_key = 2;
        Returns:
        This builder for chaining.
      • setRendezvousKeyBytes

        public RecvTensorRequest.Builder setRendezvousKeyBytes​(com.google.protobuf.ByteString value)
         A key identifying the channel to receive tensors from. A RecvTensor request
         retrieves one tensor from the channel, but multiple tensors can be sent and
         received over the same channel with multiple RecvTensor requests. See
         rendezvous.h for details.
         
        string rendezvous_key = 2;
        Parameters:
        value - The bytes for rendezvousKey to set.
        Returns:
        This builder for chaining.
      • getDmaOk

        public boolean getDmaOk()
         If true, use an out-of-band DMA mechanism to transfer the
         received tensor.
         
        bool dma_ok = 3;
        Specified by:
        getDmaOk in interface RecvTensorRequestOrBuilder
        Returns:
        The dmaOk.
      • setDmaOk

        public RecvTensorRequest.Builder setDmaOk​(boolean value)
         If true, use an out-of-band DMA mechanism to transfer the
         received tensor.
         
        bool dma_ok = 3;
        Parameters:
        value - The dmaOk to set.
        Returns:
        This builder for chaining.
      • clearDmaOk

        public RecvTensorRequest.Builder clearDmaOk()
         If true, use an out-of-band DMA mechanism to transfer the
         received tensor.
         
        bool dma_ok = 3;
        Returns:
        This builder for chaining.
      • hasClientLocality

        public boolean hasClientLocality()
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
        Specified by:
        hasClientLocality in interface RecvTensorRequestOrBuilder
        Returns:
        Whether the clientLocality field is set.
      • getClientLocality

        public DeviceLocality getClientLocality()
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
        Specified by:
        getClientLocality in interface RecvTensorRequestOrBuilder
        Returns:
        The clientLocality.
      • setClientLocality

        public RecvTensorRequest.Builder setClientLocality​(DeviceLocality value)
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
      • setClientLocality

        public RecvTensorRequest.Builder setClientLocality​(DeviceLocality.Builder builderForValue)
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
      • mergeClientLocality

        public RecvTensorRequest.Builder mergeClientLocality​(DeviceLocality value)
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
      • clearClientLocality

        public RecvTensorRequest.Builder clearClientLocality()
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
      • getClientLocalityBuilder

        public DeviceLocality.Builder getClientLocalityBuilder()
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 4;
      • hasServerLocality

        public boolean hasServerLocality()
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
        Specified by:
        hasServerLocality in interface RecvTensorRequestOrBuilder
        Returns:
        Whether the serverLocality field is set.
      • getServerLocality

        public DeviceLocality getServerLocality()
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
        Specified by:
        getServerLocality in interface RecvTensorRequestOrBuilder
        Returns:
        The serverLocality.
      • setServerLocality

        public RecvTensorRequest.Builder setServerLocality​(DeviceLocality value)
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
      • setServerLocality

        public RecvTensorRequest.Builder setServerLocality​(DeviceLocality.Builder builderForValue)
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
      • mergeServerLocality

        public RecvTensorRequest.Builder mergeServerLocality​(DeviceLocality value)
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
      • clearServerLocality

        public RecvTensorRequest.Builder clearServerLocality()
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
      • getServerLocalityBuilder

        public DeviceLocality.Builder getServerLocalityBuilder()
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 5;
      • hasTransportOptions

        public boolean hasTransportOptions()
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
        Specified by:
        hasTransportOptions in interface RecvTensorRequestOrBuilder
        Returns:
        Whether the transportOptions field is set.
      • getTransportOptions

        public Any getTransportOptions()
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
        Specified by:
        getTransportOptions in interface RecvTensorRequestOrBuilder
        Returns:
        The transportOptions.
      • setTransportOptions

        public RecvTensorRequest.Builder setTransportOptions​(Any value)
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
      • setTransportOptions

        public RecvTensorRequest.Builder setTransportOptions​(Any.Builder builderForValue)
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
      • mergeTransportOptions

        public RecvTensorRequest.Builder mergeTransportOptions​(Any value)
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
      • clearTransportOptions

        public RecvTensorRequest.Builder clearTransportOptions()
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
      • getTransportOptionsBuilder

        public Any.Builder getTransportOptionsBuilder()
         Optional information needed by the RPC subsystem.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 6;
      • getRequestId

        public long getRequestId()
         Unique identifier for this request. Every RecvTensorRequest must have a
         unique request_id, and retried RecvTensorRequests must have the same
         request_id. If request_id is zero, retry detection and response cache
         are disabled.
         Retried RecvTensorRequests are problematic because a RecvTensor with no
         corresponding sender will wait forever, and the tensor may have been
         delivered to a previous retry. Workers use request_ids to reject retried
         RecvTensor requests instead of waiting forever.
         
        int64 request_id = 7;
        Specified by:
        getRequestId in interface RecvTensorRequestOrBuilder
        Returns:
        The requestId.
      • setRequestId

        public RecvTensorRequest.Builder setRequestId​(long value)
         Unique identifier for this request. Every RecvTensorRequest must have a
         unique request_id, and retried RecvTensorRequests must have the same
         request_id. If request_id is zero, retry detection and response cache
         are disabled.
         Retried RecvTensorRequests are problematic because a RecvTensor with no
         corresponding sender will wait forever, and the tensor may have been
         delivered to a previous retry. Workers use request_ids to reject retried
         RecvTensor requests instead of waiting forever.
         
        int64 request_id = 7;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public RecvTensorRequest.Builder clearRequestId()
         Unique identifier for this request. Every RecvTensorRequest must have a
         unique request_id, and retried RecvTensorRequests must have the same
         request_id. If request_id is zero, retry detection and response cache
         are disabled.
         Retried RecvTensorRequests are problematic because a RecvTensor with no
         corresponding sender will wait forever, and the tensor may have been
         delivered to a previous retry. Workers use request_ids to reject retried
         RecvTensor requests instead of waiting forever.
         
        int64 request_id = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RecvTensorRequest.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<RecvTensorRequest.Builder>
      • mergeUnknownFields

        public final RecvTensorRequest.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<RecvTensorRequest.Builder>