Interface GetTrainingOperationResultResponse.Builder

  • Method Details

    • status

      The current status of the operation. Possible values are Pending, InProgress, Completed, Failed, or Skipped.

      Parameters:
      status - The current status of the operation. Possible values are Pending, InProgress , Completed, Failed, or Skipped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the operation. Possible values are Pending, InProgress, Completed, Failed, or Skipped.

      Parameters:
      status - The current status of the operation. Possible values are Pending, InProgress , Completed, Failed, or Skipped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operationResult

      The result payload of the operation. The service populates this field only when the status is Completed. The populated member of the union corresponds to the operation type that was submitted.

      Parameters:
      operationResult - The result payload of the operation. The service populates this field only when the status is Completed. The populated member of the union corresponds to the operation type that was submitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operationResult

      The result payload of the operation. The service populates this field only when the status is Completed. The populated member of the union corresponds to the operation type that was submitted.

      This is a convenience method that creates an instance of the OperationResult.Builder avoiding the need to create one manually via OperationResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to operationResult(OperationResult).

      Parameters:
      operationResult - a consumer that will call methods on OperationResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errorDetails

      A message describing why the operation failed. The service populates this field only when the status is Failed.

      Parameters:
      errorDetails - A message describing why the operation failed. The service populates this field only when the status is Failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenUsage

      The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.

      Parameters:
      tokenUsage - The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenUsage

      The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.

      This is a convenience method that creates an instance of the TrainingTokenUsage.Builder avoiding the need to create one manually via TrainingTokenUsage.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tokenUsage(TrainingTokenUsage).

      Parameters:
      tokenUsage - a consumer that will call methods on TrainingTokenUsage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: