Class: Google::Cloud::Translate::V3::BatchTranslateMetadata

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/translation_service.rb

Overview

State metadata for the batch translation operation.

Defined Under Namespace

Modules: State

Instance Attribute Summary collapse

Instance Attribute Details

#failed_characters::Integer

Returns Number of characters that have failed to process so far (Unicode codepoints).

Returns:

  • (::Integer)

    Number of characters that have failed to process so far (Unicode codepoints).



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 811

class BatchTranslateMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # State of the job.
  module State
    # Invalid.
    STATE_UNSPECIFIED = 0

    # Request is being processed.
    RUNNING = 1

    # The batch is processed, and at least one item was successfully
    # processed.
    SUCCEEDED = 2

    # The batch is done and no item was successfully processed.
    FAILED = 3

    # Request is in the process of being canceled after caller invoked
    # longrunning.Operations.CancelOperation on the request id.
    CANCELLING = 4

    # The batch is done after the user has called the
    # longrunning.Operations.CancelOperation. Any records processed before the
    # cancel command are output as specified in the request.
    CANCELLED = 5
  end
end

#state::Google::Cloud::Translate::V3::BatchTranslateMetadata::State

Returns The state of the operation.

Returns:



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 811

class BatchTranslateMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # State of the job.
  module State
    # Invalid.
    STATE_UNSPECIFIED = 0

    # Request is being processed.
    RUNNING = 1

    # The batch is processed, and at least one item was successfully
    # processed.
    SUCCEEDED = 2

    # The batch is done and no item was successfully processed.
    FAILED = 3

    # Request is in the process of being canceled after caller invoked
    # longrunning.Operations.CancelOperation on the request id.
    CANCELLING = 4

    # The batch is done after the user has called the
    # longrunning.Operations.CancelOperation. Any records processed before the
    # cancel command are output as specified in the request.
    CANCELLED = 5
  end
end

#submit_time::Google::Protobuf::Timestamp

Returns Time when the operation was submitted.

Returns:



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 811

class BatchTranslateMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # State of the job.
  module State
    # Invalid.
    STATE_UNSPECIFIED = 0

    # Request is being processed.
    RUNNING = 1

    # The batch is processed, and at least one item was successfully
    # processed.
    SUCCEEDED = 2

    # The batch is done and no item was successfully processed.
    FAILED = 3

    # Request is in the process of being canceled after caller invoked
    # longrunning.Operations.CancelOperation on the request id.
    CANCELLING = 4

    # The batch is done after the user has called the
    # longrunning.Operations.CancelOperation. Any records processed before the
    # cancel command are output as specified in the request.
    CANCELLED = 5
  end
end

#total_characters::Integer

Returns Total number of characters (Unicode codepoints). This is the total number of codepoints from input files times the number of target languages and appears here shortly after the call is submitted.

Returns:

  • (::Integer)

    Total number of characters (Unicode codepoints). This is the total number of codepoints from input files times the number of target languages and appears here shortly after the call is submitted.



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 811

class BatchTranslateMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # State of the job.
  module State
    # Invalid.
    STATE_UNSPECIFIED = 0

    # Request is being processed.
    RUNNING = 1

    # The batch is processed, and at least one item was successfully
    # processed.
    SUCCEEDED = 2

    # The batch is done and no item was successfully processed.
    FAILED = 3

    # Request is in the process of being canceled after caller invoked
    # longrunning.Operations.CancelOperation on the request id.
    CANCELLING = 4

    # The batch is done after the user has called the
    # longrunning.Operations.CancelOperation. Any records processed before the
    # cancel command are output as specified in the request.
    CANCELLED = 5
  end
end

#translated_characters::Integer

Returns Number of successfully translated characters so far (Unicode codepoints).

Returns:

  • (::Integer)

    Number of successfully translated characters so far (Unicode codepoints).



811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 811

class BatchTranslateMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # State of the job.
  module State
    # Invalid.
    STATE_UNSPECIFIED = 0

    # Request is being processed.
    RUNNING = 1

    # The batch is processed, and at least one item was successfully
    # processed.
    SUCCEEDED = 2

    # The batch is done and no item was successfully processed.
    FAILED = 3

    # Request is in the process of being canceled after caller invoked
    # longrunning.Operations.CancelOperation on the request id.
    CANCELLING = 4

    # The batch is done after the user has called the
    # longrunning.Operations.CancelOperation. Any records processed before the
    # cancel command are output as specified in the request.
    CANCELLED = 5
  end
end