Class EagerServiceOuterClass.SendTensorOp.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<EagerServiceOuterClass.SendTensorOp.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<EagerServiceOuterClass.SendTensorOp.Builder>
      • getDefaultInstanceForType

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

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

        public EagerServiceOuterClass.SendTensorOp buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public EagerServiceOuterClass.SendTensorOp.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<EagerServiceOuterClass.SendTensorOp.Builder>
        Throws:
        java.io.IOException
      • getOpId

        public long getOpId()
         All remote tensors are identified by <Op ID, Output num>. To mimic this
         situation when directly sending tensors, we include an "artificial" op ID
         (which would have corresponded to the _Recv op when not using SendTensor).
         
        int64 op_id = 1;
        Specified by:
        getOpId in interface EagerServiceOuterClass.SendTensorOpOrBuilder
        Returns:
        The opId.
      • setOpId

        public EagerServiceOuterClass.SendTensorOp.Builder setOpId​(long value)
         All remote tensors are identified by <Op ID, Output num>. To mimic this
         situation when directly sending tensors, we include an "artificial" op ID
         (which would have corresponded to the _Recv op when not using SendTensor).
         
        int64 op_id = 1;
        Parameters:
        value - The opId to set.
        Returns:
        This builder for chaining.
      • clearOpId

        public EagerServiceOuterClass.SendTensorOp.Builder clearOpId()
         All remote tensors are identified by <Op ID, Output num>. To mimic this
         situation when directly sending tensors, we include an "artificial" op ID
         (which would have corresponded to the _Recv op when not using SendTensor).
         
        int64 op_id = 1;
        Returns:
        This builder for chaining.
      • getTensorsList

        public java.util.List<TensorProto> getTensorsList()
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
        Specified by:
        getTensorsList in interface EagerServiceOuterClass.SendTensorOpOrBuilder
      • getTensorsCount

        public int getTensorsCount()
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
        Specified by:
        getTensorsCount in interface EagerServiceOuterClass.SendTensorOpOrBuilder
      • getTensors

        public TensorProto getTensors​(int index)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
        Specified by:
        getTensors in interface EagerServiceOuterClass.SendTensorOpOrBuilder
      • setTensors

        public EagerServiceOuterClass.SendTensorOp.Builder setTensors​(int index,
                                                                      TensorProto value)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • setTensors

        public EagerServiceOuterClass.SendTensorOp.Builder setTensors​(int index,
                                                                      TensorProto.Builder builderForValue)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensors

        public EagerServiceOuterClass.SendTensorOp.Builder addTensors​(TensorProto value)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensors

        public EagerServiceOuterClass.SendTensorOp.Builder addTensors​(int index,
                                                                      TensorProto value)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensors

        public EagerServiceOuterClass.SendTensorOp.Builder addTensors​(TensorProto.Builder builderForValue)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensors

        public EagerServiceOuterClass.SendTensorOp.Builder addTensors​(int index,
                                                                      TensorProto.Builder builderForValue)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addAllTensors

        public EagerServiceOuterClass.SendTensorOp.Builder addAllTensors​(java.lang.Iterable<? extends TensorProto> values)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • clearTensors

        public EagerServiceOuterClass.SendTensorOp.Builder clearTensors()
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • removeTensors

        public EagerServiceOuterClass.SendTensorOp.Builder removeTensors​(int index)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • getTensorsBuilder

        public TensorProto.Builder getTensorsBuilder​(int index)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensorsBuilder

        public TensorProto.Builder addTensorsBuilder()
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • addTensorsBuilder

        public TensorProto.Builder addTensorsBuilder​(int index)
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • getTensorsBuilderList

        public java.util.List<TensorProto.Builder> getTensorsBuilderList()
         The index within the repeated field is the output number that will help
         uniquely identify (along with the above op_id) the particular tensor.
         
        repeated .org.platanios.tensorflow.proto.TensorProto tensors = 2;
      • setDeviceName

        public EagerServiceOuterClass.SendTensorOp.Builder setDeviceName​(java.lang.String value)
         The device on which the tensors should be resident.
         
        string device_name = 3;
        Parameters:
        value - The deviceName to set.
        Returns:
        This builder for chaining.
      • setDeviceNameBytes

        public EagerServiceOuterClass.SendTensorOp.Builder setDeviceNameBytes​(com.google.protobuf.ByteString value)
         The device on which the tensors should be resident.
         
        string device_name = 3;
        Parameters:
        value - The bytes for deviceName to set.
        Returns:
        This builder for chaining.