Class RecvBufRequest.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, RecvBufRequestOrBuilder
    Enclosing class:
    RecvBufRequest

    public static final class RecvBufRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RecvBufRequest.Builder>
    implements RecvBufRequestOrBuilder
     Use of the fields below may vary by implementation.  For example
     the buf_ptr and num_bytes may be set only for local operations and
     not sent on the wire, or only sent on the wire in one direction.
     
    Protobuf type org.platanios.tensorflow.proto.RecvBufRequest
    • 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<RecvBufRequest.Builder>
      • clear

        public RecvBufRequest.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<RecvBufRequest.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<RecvBufRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public RecvBufRequest.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<RecvBufRequest.Builder>
      • setField

        public RecvBufRequest.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<RecvBufRequest.Builder>
      • clearField

        public RecvBufRequest.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<RecvBufRequest.Builder>
      • clearOneof

        public RecvBufRequest.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<RecvBufRequest.Builder>
      • setRepeatedField

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

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

        public RecvBufRequest.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<RecvBufRequest.Builder>
      • isInitialized

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

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

        public long getStepId()
         Used at server side to find the correct BufRendezvous.
         
        int64 step_id = 1;
        Specified by:
        getStepId in interface RecvBufRequestOrBuilder
        Returns:
        The stepId.
      • setStepId

        public RecvBufRequest.Builder setStepId​(long value)
         Used at server side to find the correct BufRendezvous.
         
        int64 step_id = 1;
        Parameters:
        value - The stepId to set.
        Returns:
        This builder for chaining.
      • clearStepId

        public RecvBufRequest.Builder clearStepId()
         Used at server side to find the correct BufRendezvous.
         
        int64 step_id = 1;
        Returns:
        This builder for chaining.
      • getBufRendezvousKey

        public java.lang.String getBufRendezvousKey()
         Arbitrary string identifying a BufRendezvous entry.
         
        string buf_rendezvous_key = 2;
        Specified by:
        getBufRendezvousKey in interface RecvBufRequestOrBuilder
        Returns:
        The bufRendezvousKey.
      • getBufRendezvousKeyBytes

        public com.google.protobuf.ByteString getBufRendezvousKeyBytes()
         Arbitrary string identifying a BufRendezvous entry.
         
        string buf_rendezvous_key = 2;
        Specified by:
        getBufRendezvousKeyBytes in interface RecvBufRequestOrBuilder
        Returns:
        The bytes for bufRendezvousKey.
      • setBufRendezvousKey

        public RecvBufRequest.Builder setBufRendezvousKey​(java.lang.String value)
         Arbitrary string identifying a BufRendezvous entry.
         
        string buf_rendezvous_key = 2;
        Parameters:
        value - The bufRendezvousKey to set.
        Returns:
        This builder for chaining.
      • clearBufRendezvousKey

        public RecvBufRequest.Builder clearBufRendezvousKey()
         Arbitrary string identifying a BufRendezvous entry.
         
        string buf_rendezvous_key = 2;
        Returns:
        This builder for chaining.
      • setBufRendezvousKeyBytes

        public RecvBufRequest.Builder setBufRendezvousKeyBytes​(com.google.protobuf.ByteString value)
         Arbitrary string identifying a BufRendezvous entry.
         
        string buf_rendezvous_key = 2;
        Parameters:
        value - The bytes for bufRendezvousKey to set.
        Returns:
        This builder for chaining.
      • getNumBytes

        public long getNumBytes()
         Size of value expected, must agree with BufRendezvous entry.
         
        int64 num_bytes = 3;
        Specified by:
        getNumBytes in interface RecvBufRequestOrBuilder
        Returns:
        The numBytes.
      • setNumBytes

        public RecvBufRequest.Builder setNumBytes​(long value)
         Size of value expected, must agree with BufRendezvous entry.
         
        int64 num_bytes = 3;
        Parameters:
        value - The numBytes to set.
        Returns:
        This builder for chaining.
      • clearNumBytes

        public RecvBufRequest.Builder clearNumBytes()
         Size of value expected, must agree with BufRendezvous entry.
         
        int64 num_bytes = 3;
        Returns:
        This builder for chaining.
      • getBufPtr

        public long getBufPtr()
         When RDMA is in use, address of destination field on client.
         
        fixed64 buf_ptr = 4;
        Specified by:
        getBufPtr in interface RecvBufRequestOrBuilder
        Returns:
        The bufPtr.
      • setBufPtr

        public RecvBufRequest.Builder setBufPtr​(long value)
         When RDMA is in use, address of destination field on client.
         
        fixed64 buf_ptr = 4;
        Parameters:
        value - The bufPtr to set.
        Returns:
        This builder for chaining.
      • clearBufPtr

        public RecvBufRequest.Builder clearBufPtr()
         When RDMA is in use, address of destination field on client.
         
        fixed64 buf_ptr = 4;
        Returns:
        This builder for chaining.
      • hasClientLocality

        public boolean hasClientLocality()
         Optional information on client-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality client_locality = 5;
        Specified by:
        hasClientLocality in interface RecvBufRequestOrBuilder
        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 = 5;
        Specified by:
        getClientLocality in interface RecvBufRequestOrBuilder
        Returns:
        The clientLocality.
      • setClientLocality

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

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

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

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

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

        public boolean hasServerLocality()
         Optional information on server-side device locality.
         
        .org.platanios.tensorflow.proto.DeviceLocality server_locality = 6;
        Specified by:
        hasServerLocality in interface RecvBufRequestOrBuilder
        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 = 6;
        Specified by:
        getServerLocality in interface RecvBufRequestOrBuilder
        Returns:
        The serverLocality.
      • setServerLocality

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

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

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

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

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

        public boolean hasTransportOptions()
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
        Specified by:
        hasTransportOptions in interface RecvBufRequestOrBuilder
        Returns:
        Whether the transportOptions field is set.
      • getTransportOptions

        public Any getTransportOptions()
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
        Specified by:
        getTransportOptions in interface RecvBufRequestOrBuilder
        Returns:
        The transportOptions.
      • setTransportOptions

        public RecvBufRequest.Builder setTransportOptions​(Any value)
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
      • setTransportOptions

        public RecvBufRequest.Builder setTransportOptions​(Any.Builder builderForValue)
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
      • mergeTransportOptions

        public RecvBufRequest.Builder mergeTransportOptions​(Any value)
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
      • clearTransportOptions

        public RecvBufRequest.Builder clearTransportOptions()
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
      • getTransportOptionsBuilder

        public Any.Builder getTransportOptionsBuilder()
         Optional, implementation-specific data.
         
        .org.platanios.tensorflow.proto.google.Any transport_options = 7;
      • getSrcDevice

        public java.lang.String getSrcDevice()
         For annotating timeline and device incarnation check.
         
        string src_device = 8;
        Specified by:
        getSrcDevice in interface RecvBufRequestOrBuilder
        Returns:
        The srcDevice.
      • getSrcDeviceBytes

        public com.google.protobuf.ByteString getSrcDeviceBytes()
         For annotating timeline and device incarnation check.
         
        string src_device = 8;
        Specified by:
        getSrcDeviceBytes in interface RecvBufRequestOrBuilder
        Returns:
        The bytes for srcDevice.
      • setSrcDevice

        public RecvBufRequest.Builder setSrcDevice​(java.lang.String value)
         For annotating timeline and device incarnation check.
         
        string src_device = 8;
        Parameters:
        value - The srcDevice to set.
        Returns:
        This builder for chaining.
      • clearSrcDevice

        public RecvBufRequest.Builder clearSrcDevice()
         For annotating timeline and device incarnation check.
         
        string src_device = 8;
        Returns:
        This builder for chaining.
      • setSrcDeviceBytes

        public RecvBufRequest.Builder setSrcDeviceBytes​(com.google.protobuf.ByteString value)
         For annotating timeline and device incarnation check.
         
        string src_device = 8;
        Parameters:
        value - The bytes for srcDevice to set.
        Returns:
        This builder for chaining.
      • getDstDevice

        public java.lang.String getDstDevice()
         Optional, for annotating the timeline.
         
        string dst_device = 9;
        Specified by:
        getDstDevice in interface RecvBufRequestOrBuilder
        Returns:
        The dstDevice.
      • getDstDeviceBytes

        public com.google.protobuf.ByteString getDstDeviceBytes()
         Optional, for annotating the timeline.
         
        string dst_device = 9;
        Specified by:
        getDstDeviceBytes in interface RecvBufRequestOrBuilder
        Returns:
        The bytes for dstDevice.
      • setDstDevice

        public RecvBufRequest.Builder setDstDevice​(java.lang.String value)
         Optional, for annotating the timeline.
         
        string dst_device = 9;
        Parameters:
        value - The dstDevice to set.
        Returns:
        This builder for chaining.
      • clearDstDevice

        public RecvBufRequest.Builder clearDstDevice()
         Optional, for annotating the timeline.
         
        string dst_device = 9;
        Returns:
        This builder for chaining.
      • setDstDeviceBytes

        public RecvBufRequest.Builder setDstDeviceBytes​(com.google.protobuf.ByteString value)
         Optional, for annotating the timeline.
         
        string dst_device = 9;
        Parameters:
        value - The bytes for dstDevice to set.
        Returns:
        This builder for chaining.
      • getRequestId

        public long getRequestId()
         Depending on the RPC system in use, it may be necessary to set this
         id to detect resends of RPCs where the server is not aware that
         the prior RPC failed.
         
        int64 request_id = 10;
        Specified by:
        getRequestId in interface RecvBufRequestOrBuilder
        Returns:
        The requestId.
      • setRequestId

        public RecvBufRequest.Builder setRequestId​(long value)
         Depending on the RPC system in use, it may be necessary to set this
         id to detect resends of RPCs where the server is not aware that
         the prior RPC failed.
         
        int64 request_id = 10;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public RecvBufRequest.Builder clearRequestId()
         Depending on the RPC system in use, it may be necessary to set this
         id to detect resends of RPCs where the server is not aware that
         the prior RPC failed.
         
        int64 request_id = 10;
        Returns:
        This builder for chaining.
      • getSrcIncarnation

        public long getSrcIncarnation()
         Incarnation number of the source device, used to detect worker failures.
         
        uint64 src_incarnation = 11;
        Specified by:
        getSrcIncarnation in interface RecvBufRequestOrBuilder
        Returns:
        The srcIncarnation.
      • setSrcIncarnation

        public RecvBufRequest.Builder setSrcIncarnation​(long value)
         Incarnation number of the source device, used to detect worker failures.
         
        uint64 src_incarnation = 11;
        Parameters:
        value - The srcIncarnation to set.
        Returns:
        This builder for chaining.
      • clearSrcIncarnation

        public RecvBufRequest.Builder clearSrcIncarnation()
         Incarnation number of the source device, used to detect worker failures.
         
        uint64 src_incarnation = 11;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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