Class Execution.Builder

All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, ExecutionOrBuilder
Enclosing class:
Execution

public static final class Execution.Builder extends GeneratedMessageV3.Builder<Execution.Builder> implements ExecutionOrBuilder
Data relating to the eager execution of an op or a Graph.
For a op that generates N output tensors (N >= 0), only one
Execution proto will be used to describe the execution event.
Protobuf type tensorflow.Execution
  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Execution.Builder>
    • clear

      public Execution.Builder clear()
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessageV3.Builder<Execution.Builder>
    • getDescriptorForType

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

      public Execution getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • build

      public Execution build()
      Specified by:
      build in interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public Execution buildPartial()
      Specified by:
      buildPartial in interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • clone

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

      public Execution.Builder setField(Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface Message.Builder
      Overrides:
      setField in class GeneratedMessageV3.Builder<Execution.Builder>
    • clearField

      Specified by:
      clearField in interface Message.Builder
      Overrides:
      clearField in class GeneratedMessageV3.Builder<Execution.Builder>
    • clearOneof

      Specified by:
      clearOneof in interface Message.Builder
      Overrides:
      clearOneof in class GeneratedMessageV3.Builder<Execution.Builder>
    • setRepeatedField

      public Execution.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface Message.Builder
      Overrides:
      setRepeatedField in class GeneratedMessageV3.Builder<Execution.Builder>
    • addRepeatedField

      public Execution.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface Message.Builder
      Overrides:
      addRepeatedField in class GeneratedMessageV3.Builder<Execution.Builder>
    • mergeFrom

      public Execution.Builder mergeFrom(Message other)
      Specified by:
      mergeFrom in interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Execution.Builder>
    • mergeFrom

      public Execution.Builder mergeFrom(Execution other)
    • isInitialized

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

      public Execution.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<Execution.Builder>
      Throws:
      IOException
    • getOpType

      public String getOpType()
      Op type (e.g., "MatMul").
      In the case of a Graph, this is the name of the Graph.
      
      string op_type = 1;
      Specified by:
      getOpType in interface ExecutionOrBuilder
      Returns:
      The opType.
    • getOpTypeBytes

      public ByteString getOpTypeBytes()
      Op type (e.g., "MatMul").
      In the case of a Graph, this is the name of the Graph.
      
      string op_type = 1;
      Specified by:
      getOpTypeBytes in interface ExecutionOrBuilder
      Returns:
      The bytes for opType.
    • setOpType

      public Execution.Builder setOpType(String value)
      Op type (e.g., "MatMul").
      In the case of a Graph, this is the name of the Graph.
      
      string op_type = 1;
      Parameters:
      value - The opType to set.
      Returns:
      This builder for chaining.
    • clearOpType

      public Execution.Builder clearOpType()
      Op type (e.g., "MatMul").
      In the case of a Graph, this is the name of the Graph.
      
      string op_type = 1;
      Returns:
      This builder for chaining.
    • setOpTypeBytes

      public Execution.Builder setOpTypeBytes(ByteString value)
      Op type (e.g., "MatMul").
      In the case of a Graph, this is the name of the Graph.
      
      string op_type = 1;
      Parameters:
      value - The bytes for opType to set.
      Returns:
      This builder for chaining.
    • getNumOutputs

      public int getNumOutputs()
      Number of output tensors.
      
      int32 num_outputs = 2;
      Specified by:
      getNumOutputs in interface ExecutionOrBuilder
      Returns:
      The numOutputs.
    • setNumOutputs

      public Execution.Builder setNumOutputs(int value)
      Number of output tensors.
      
      int32 num_outputs = 2;
      Parameters:
      value - The numOutputs to set.
      Returns:
      This builder for chaining.
    • clearNumOutputs

      public Execution.Builder clearNumOutputs()
      Number of output tensors.
      
      int32 num_outputs = 2;
      Returns:
      This builder for chaining.
    • getGraphId

      public String getGraphId()
      The graph that's executed: applicable only to the eager
      execution of a FuncGraph.
      
      string graph_id = 3;
      Specified by:
      getGraphId in interface ExecutionOrBuilder
      Returns:
      The graphId.
    • getGraphIdBytes

      public ByteString getGraphIdBytes()
      The graph that's executed: applicable only to the eager
      execution of a FuncGraph.
      
      string graph_id = 3;
      Specified by:
      getGraphIdBytes in interface ExecutionOrBuilder
      Returns:
      The bytes for graphId.
    • setGraphId

      public Execution.Builder setGraphId(String value)
      The graph that's executed: applicable only to the eager
      execution of a FuncGraph.
      
      string graph_id = 3;
      Parameters:
      value - The graphId to set.
      Returns:
      This builder for chaining.
    • clearGraphId

      public Execution.Builder clearGraphId()
      The graph that's executed: applicable only to the eager
      execution of a FuncGraph.
      
      string graph_id = 3;
      Returns:
      This builder for chaining.
    • setGraphIdBytes

      public Execution.Builder setGraphIdBytes(ByteString value)
      The graph that's executed: applicable only to the eager
      execution of a FuncGraph.
      
      string graph_id = 3;
      Parameters:
      value - The bytes for graphId to set.
      Returns:
      This builder for chaining.
    • getInputTensorIdsList

      public List<Long> getInputTensorIdsList()
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Specified by:
      getInputTensorIdsList in interface ExecutionOrBuilder
      Returns:
      A list containing the inputTensorIds.
    • getInputTensorIdsCount

      public int getInputTensorIdsCount()
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Specified by:
      getInputTensorIdsCount in interface ExecutionOrBuilder
      Returns:
      The count of inputTensorIds.
    • getInputTensorIds

      public long getInputTensorIds(int index)
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Specified by:
      getInputTensorIds in interface ExecutionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inputTensorIds at the given index.
    • setInputTensorIds

      public Execution.Builder setInputTensorIds(int index, long value)
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Parameters:
      index - The index to set the value at.
      value - The inputTensorIds to set.
      Returns:
      This builder for chaining.
    • addInputTensorIds

      public Execution.Builder addInputTensorIds(long value)
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Parameters:
      value - The inputTensorIds to add.
      Returns:
      This builder for chaining.
    • addAllInputTensorIds

      public Execution.Builder addAllInputTensorIds(Iterable<? extends Long> values)
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Parameters:
      values - The inputTensorIds to add.
      Returns:
      This builder for chaining.
    • clearInputTensorIds

      public Execution.Builder clearInputTensorIds()
      IDs of the input tensors (if available).
      
      repeated int64 input_tensor_ids = 4;
      Returns:
      This builder for chaining.
    • getOutputTensorIdsList

      public List<Long> getOutputTensorIdsList()
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Specified by:
      getOutputTensorIdsList in interface ExecutionOrBuilder
      Returns:
      A list containing the outputTensorIds.
    • getOutputTensorIdsCount

      public int getOutputTensorIdsCount()
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Specified by:
      getOutputTensorIdsCount in interface ExecutionOrBuilder
      Returns:
      The count of outputTensorIds.
    • getOutputTensorIds

      public long getOutputTensorIds(int index)
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Specified by:
      getOutputTensorIds in interface ExecutionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputTensorIds at the given index.
    • setOutputTensorIds

      public Execution.Builder setOutputTensorIds(int index, long value)
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Parameters:
      index - The index to set the value at.
      value - The outputTensorIds to set.
      Returns:
      This builder for chaining.
    • addOutputTensorIds

      public Execution.Builder addOutputTensorIds(long value)
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Parameters:
      value - The outputTensorIds to add.
      Returns:
      This builder for chaining.
    • addAllOutputTensorIds

      public Execution.Builder addAllOutputTensorIds(Iterable<? extends Long> values)
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Parameters:
      values - The outputTensorIds to add.
      Returns:
      This builder for chaining.
    • clearOutputTensorIds

      public Execution.Builder clearOutputTensorIds()
      IDs of the output tensors (if availbable).
      If specified, must have the same length as tensor_protos.
      
      repeated int64 output_tensor_ids = 5;
      Returns:
      This builder for chaining.
    • getTensorDebugModeValue

      public int getTensorDebugModeValue()
      Type of the tensor value encapsulated in this proto.
      
      .tensorflow.TensorDebugMode tensor_debug_mode = 6;
      Specified by:
      getTensorDebugModeValue in interface ExecutionOrBuilder
      Returns:
      The enum numeric value on the wire for tensorDebugMode.
    • setTensorDebugModeValue

      public Execution.Builder setTensorDebugModeValue(int value)
      Type of the tensor value encapsulated in this proto.
      
      .tensorflow.TensorDebugMode tensor_debug_mode = 6;
      Parameters:
      value - The enum numeric value on the wire for tensorDebugMode to set.
      Returns:
      This builder for chaining.
    • getTensorDebugMode

      public TensorDebugMode getTensorDebugMode()
      Type of the tensor value encapsulated in this proto.
      
      .tensorflow.TensorDebugMode tensor_debug_mode = 6;
      Specified by:
      getTensorDebugMode in interface ExecutionOrBuilder
      Returns:
      The tensorDebugMode.
    • setTensorDebugMode

      public Execution.Builder setTensorDebugMode(TensorDebugMode value)
      Type of the tensor value encapsulated in this proto.
      
      .tensorflow.TensorDebugMode tensor_debug_mode = 6;
      Parameters:
      value - The tensorDebugMode to set.
      Returns:
      This builder for chaining.
    • clearTensorDebugMode

      public Execution.Builder clearTensorDebugMode()
      Type of the tensor value encapsulated in this proto.
      
      .tensorflow.TensorDebugMode tensor_debug_mode = 6;
      Returns:
      This builder for chaining.
    • getTensorProtosList

      public List<TensorProto> getTensorProtosList()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
      Specified by:
      getTensorProtosList in interface ExecutionOrBuilder
    • getTensorProtosCount

      public int getTensorProtosCount()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
      Specified by:
      getTensorProtosCount in interface ExecutionOrBuilder
    • getTensorProtos

      public TensorProto getTensorProtos(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
      Specified by:
      getTensorProtos in interface ExecutionOrBuilder
    • setTensorProtos

      public Execution.Builder setTensorProtos(int index, TensorProto value)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • setTensorProtos

      public Execution.Builder setTensorProtos(int index, TensorProto.Builder builderForValue)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addTensorProtos

      public Execution.Builder addTensorProtos(TensorProto value)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addTensorProtos

      public Execution.Builder addTensorProtos(int index, TensorProto value)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addTensorProtos

      public Execution.Builder addTensorProtos(TensorProto.Builder builderForValue)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addTensorProtos

      public Execution.Builder addTensorProtos(int index, TensorProto.Builder builderForValue)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addAllTensorProtos

      public Execution.Builder addAllTensorProtos(Iterable<? extends TensorProto> values)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • clearTensorProtos

      public Execution.Builder clearTensorProtos()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • removeTensorProtos

      public Execution.Builder removeTensorProtos(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • getTensorProtosBuilder

      public TensorProto.Builder getTensorProtosBuilder(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • getTensorProtosOrBuilder

      public TensorProtoOrBuilder getTensorProtosOrBuilder(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
      Specified by:
      getTensorProtosOrBuilder in interface ExecutionOrBuilder
    • getTensorProtosOrBuilderList

      public List<? extends TensorProtoOrBuilder> getTensorProtosOrBuilderList()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
      Specified by:
      getTensorProtosOrBuilderList in interface ExecutionOrBuilder
    • addTensorProtosBuilder

      public TensorProto.Builder addTensorProtosBuilder()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • addTensorProtosBuilder

      public TensorProto.Builder addTensorProtosBuilder(int index)
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • getTensorProtosBuilderList

      public List<TensorProto.Builder> getTensorProtosBuilderList()
      Output Tensor values in the type described by `tensor_value_type`.
      The length of this should match `num_outputs`.
      
      repeated .tensorflow.TensorProto tensor_protos = 7;
    • hasCodeLocation

      public boolean hasCodeLocation()
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
      Specified by:
      hasCodeLocation in interface ExecutionOrBuilder
      Returns:
      Whether the codeLocation field is set.
    • getCodeLocation

      public CodeLocation getCodeLocation()
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
      Specified by:
      getCodeLocation in interface ExecutionOrBuilder
      Returns:
      The codeLocation.
    • setCodeLocation

      public Execution.Builder setCodeLocation(CodeLocation value)
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
    • setCodeLocation

      public Execution.Builder setCodeLocation(CodeLocation.Builder builderForValue)
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
    • mergeCodeLocation

      public Execution.Builder mergeCodeLocation(CodeLocation value)
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
    • clearCodeLocation

      public Execution.Builder clearCodeLocation()
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
    • getCodeLocationBuilder

      public CodeLocation.Builder getCodeLocationBuilder()
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
    • getCodeLocationOrBuilder

      public CodeLocationOrBuilder getCodeLocationOrBuilder()
      Stack trace of the eager execution.
      
      .tensorflow.CodeLocation code_location = 8;
      Specified by:
      getCodeLocationOrBuilder in interface ExecutionOrBuilder
    • getOutputTensorDeviceIdsList

      public List<Integer> getOutputTensorDeviceIdsList()
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Specified by:
      getOutputTensorDeviceIdsList in interface ExecutionOrBuilder
      Returns:
      A list containing the outputTensorDeviceIds.
    • getOutputTensorDeviceIdsCount

      public int getOutputTensorDeviceIdsCount()
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Specified by:
      getOutputTensorDeviceIdsCount in interface ExecutionOrBuilder
      Returns:
      The count of outputTensorDeviceIds.
    • getOutputTensorDeviceIds

      public int getOutputTensorDeviceIds(int index)
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Specified by:
      getOutputTensorDeviceIds in interface ExecutionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputTensorDeviceIds at the given index.
    • setOutputTensorDeviceIds

      public Execution.Builder setOutputTensorDeviceIds(int index, int value)
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Parameters:
      index - The index to set the value at.
      value - The outputTensorDeviceIds to set.
      Returns:
      This builder for chaining.
    • addOutputTensorDeviceIds

      public Execution.Builder addOutputTensorDeviceIds(int value)
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Parameters:
      value - The outputTensorDeviceIds to add.
      Returns:
      This builder for chaining.
    • addAllOutputTensorDeviceIds

      public Execution.Builder addAllOutputTensorDeviceIds(Iterable<? extends Integer> values)
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Parameters:
      values - The outputTensorDeviceIds to add.
      Returns:
      This builder for chaining.
    • clearOutputTensorDeviceIds

      public Execution.Builder clearOutputTensorDeviceIds()
      Debugged-generated IDs of the devices on which the output tensors reside.
      To look up details about the device (e.g., name), cross-reference this
      field with the DebuggedDevice messages.
      
      repeated int32 output_tensor_device_ids = 9;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Execution.Builder setUnknownFields(UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface Message.Builder
      Overrides:
      setUnknownFields in class GeneratedMessageV3.Builder<Execution.Builder>
    • mergeUnknownFields

      public final Execution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface Message.Builder
      Overrides:
      mergeUnknownFields in class GeneratedMessageV3.Builder<Execution.Builder>