public static final class BatchTranslateDocumentMetadata.Builder extends GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder> implements BatchTranslateDocumentMetadataOrBuilder
State metadata for the batch translation operation.Protobuf type
google.cloud.translation.v3.BatchTranslateDocumentMetadata
Modifier and Type | Method and Description |
---|---|
BatchTranslateDocumentMetadata.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateDocumentMetadata |
build() |
BatchTranslateDocumentMetadata |
buildPartial() |
BatchTranslateDocumentMetadata.Builder |
clear() |
BatchTranslateDocumentMetadata.Builder |
clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in
all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clearFailedPages()
Number of pages that failed to process in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clearField(Descriptors.FieldDescriptor field) |
BatchTranslateDocumentMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
BatchTranslateDocumentMetadata.Builder |
clearState()
The state of the operation.
|
BatchTranslateDocumentMetadata.Builder |
clearSubmitTime()
Time when the operation was submitted.
|
BatchTranslateDocumentMetadata.Builder |
clearTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without
clear page definition (such as XLSX) so far.
|
BatchTranslateDocumentMetadata.Builder |
clearTotalBillablePages()
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX) so far.
|
BatchTranslateDocumentMetadata.Builder |
clearTotalCharacters()
Total number of characters (Unicode codepoints) in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clearTotalPages()
Total number of pages to translate in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all
documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clearTranslatedPages()
Number of successfully translated pages in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
clone() |
BatchTranslateDocumentMetadata |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
long |
getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in
all documents so far.
|
long |
getFailedPages()
Number of pages that failed to process in all documents so far.
|
BatchTranslateDocumentMetadata.State |
getState()
The state of the operation.
|
int |
getStateValue()
The state of the operation.
|
Timestamp |
getSubmitTime()
Time when the operation was submitted.
|
Timestamp.Builder |
getSubmitTimeBuilder()
Time when the operation was submitted.
|
TimestampOrBuilder |
getSubmitTimeOrBuilder()
Time when the operation was submitted.
|
long |
getTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without
clear page definition (such as XLSX) so far.
|
long |
getTotalBillablePages()
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX) so far.
|
long |
getTotalCharacters()
Total number of characters (Unicode codepoints) in all documents so far.
|
long |
getTotalPages()
Total number of pages to translate in all documents so far.
|
long |
getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all
documents so far.
|
long |
getTranslatedPages()
Number of successfully translated pages in all documents so far.
|
boolean |
hasSubmitTime()
Time when the operation was submitted.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BatchTranslateDocumentMetadata.Builder |
mergeFrom(BatchTranslateDocumentMetadata other) |
BatchTranslateDocumentMetadata.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
BatchTranslateDocumentMetadata.Builder |
mergeFrom(Message other) |
BatchTranslateDocumentMetadata.Builder |
mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateDocumentMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
BatchTranslateDocumentMetadata.Builder |
setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints) in
all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setFailedPages(long value)
Number of pages that failed to process in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateDocumentMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
BatchTranslateDocumentMetadata.Builder |
setState(BatchTranslateDocumentMetadata.State value)
The state of the operation.
|
BatchTranslateDocumentMetadata.Builder |
setStateValue(int value)
The state of the operation.
|
BatchTranslateDocumentMetadata.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
|
BatchTranslateDocumentMetadata.Builder |
setSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateDocumentMetadata.Builder |
setTotalBillableCharacters(long value)
Number of billable characters (Unicode codepoints) in documents without
clear page definition (such as XLSX) so far.
|
BatchTranslateDocumentMetadata.Builder |
setTotalBillablePages(long value)
Number of billable pages in documents with clear page definition (such as
PDF, DOCX, PPTX) so far.
|
BatchTranslateDocumentMetadata.Builder |
setTotalCharacters(long value)
Total number of characters (Unicode codepoints) in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setTotalPages(long value)
Total number of pages to translate in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints) in all
documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setTranslatedPages(long value)
Number of successfully translated pages in all documents so far.
|
BatchTranslateDocumentMetadata.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BatchTranslateDocumentMetadata build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BatchTranslateDocumentMetadata buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BatchTranslateDocumentMetadata.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder mergeFrom(BatchTranslateDocumentMetadata other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public BatchTranslateDocumentMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateDocumentMetadata.Builder>
IOException
public int getStateValue()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
getStateValue
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setStateValue(int value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
value
- The enum numeric value on the wire for state to set.public BatchTranslateDocumentMetadata.State getState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
getState
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setState(BatchTranslateDocumentMetadata.State value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
value
- The state to set.public BatchTranslateDocumentMetadata.Builder clearState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1;
public long getTotalPages()
Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 total_pages = 2;
getTotalPages
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTotalPages(long value)
Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 total_pages = 2;
value
- The totalPages to set.public BatchTranslateDocumentMetadata.Builder clearTotalPages()
Total number of pages to translate in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 total_pages = 2;
public long getTranslatedPages()
Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 3;
getTranslatedPages
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTranslatedPages(long value)
Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 3;
value
- The translatedPages to set.public BatchTranslateDocumentMetadata.Builder clearTranslatedPages()
Number of successfully translated pages in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 translated_pages = 3;
public long getFailedPages()
Number of pages that failed to process in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 failed_pages = 4;
getFailedPages
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setFailedPages(long value)
Number of pages that failed to process in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 failed_pages = 4;
value
- The failedPages to set.public BatchTranslateDocumentMetadata.Builder clearFailedPages()
Number of pages that failed to process in all documents so far. Documents without clear page definition (such as XLSX) are not counted.
int64 failed_pages = 4;
public long getTotalBillablePages()
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.
int64 total_billable_pages = 5;
getTotalBillablePages
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTotalBillablePages(long value)
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.
int64 total_billable_pages = 5;
value
- The totalBillablePages to set.public BatchTranslateDocumentMetadata.Builder clearTotalBillablePages()
Number of billable pages in documents with clear page definition (such as PDF, DOCX, PPTX) so far.
int64 total_billable_pages = 5;
public long getTotalCharacters()
Total number of characters (Unicode codepoints) in all documents so far.
int64 total_characters = 6;
getTotalCharacters
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTotalCharacters(long value)
Total number of characters (Unicode codepoints) in all documents so far.
int64 total_characters = 6;
value
- The totalCharacters to set.public BatchTranslateDocumentMetadata.Builder clearTotalCharacters()
Total number of characters (Unicode codepoints) in all documents so far.
int64 total_characters = 6;
public long getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all documents so far.
int64 translated_characters = 7;
getTranslatedCharacters
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints) in all documents so far.
int64 translated_characters = 7;
value
- The translatedCharacters to set.public BatchTranslateDocumentMetadata.Builder clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints) in all documents so far.
int64 translated_characters = 7;
public long getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents so far.
int64 failed_characters = 8;
getFailedCharacters
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints) in all documents so far.
int64 failed_characters = 8;
value
- The failedCharacters to set.public BatchTranslateDocumentMetadata.Builder clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints) in all documents so far.
int64 failed_characters = 8;
public long getTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.
int64 total_billable_characters = 9;
getTotalBillableCharacters
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setTotalBillableCharacters(long value)
Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.
int64 total_billable_characters = 9;
value
- The totalBillableCharacters to set.public BatchTranslateDocumentMetadata.Builder clearTotalBillableCharacters()
Number of billable characters (Unicode codepoints) in documents without clear page definition (such as XLSX) so far.
int64 total_billable_characters = 9;
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
hasSubmitTime
in interface BatchTranslateDocumentMetadataOrBuilder
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
getSubmitTime
in interface BatchTranslateDocumentMetadataOrBuilder
public BatchTranslateDocumentMetadata.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
public BatchTranslateDocumentMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
public BatchTranslateDocumentMetadata.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
public BatchTranslateDocumentMetadata.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 10;
getSubmitTimeOrBuilder
in interface BatchTranslateDocumentMetadataOrBuilder
public final BatchTranslateDocumentMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
public final BatchTranslateDocumentMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateDocumentMetadata.Builder>
Copyright © 2022 Google LLC. All rights reserved.