public static final class BatchTranslateResponse.Builder extends GeneratedMessageV3.Builder<BatchTranslateResponse.Builder> implements BatchTranslateResponseOrBuilder
Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateText if at least one sentence is translated successfully.Protobuf type
google.cloud.translation.v3.BatchTranslateResponse
Modifier and Type | Method and Description |
---|---|
BatchTranslateResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateResponse |
build() |
BatchTranslateResponse |
buildPartial() |
BatchTranslateResponse.Builder |
clear() |
BatchTranslateResponse.Builder |
clearEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateResponse.Builder |
clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints).
|
BatchTranslateResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
BatchTranslateResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
BatchTranslateResponse.Builder |
clearSubmitTime()
Time when the operation was submitted.
|
BatchTranslateResponse.Builder |
clearTotalCharacters()
Total number of characters (Unicode codepoints).
|
BatchTranslateResponse.Builder |
clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints).
|
BatchTranslateResponse.Builder |
clone() |
BatchTranslateResponse |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
Timestamp.Builder |
getEndTimeBuilder()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
long |
getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints).
|
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 |
getTotalCharacters()
Total number of characters (Unicode codepoints).
|
long |
getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints).
|
boolean |
hasEndTime()
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
boolean |
hasSubmitTime()
Time when the operation was submitted.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BatchTranslateResponse.Builder |
mergeEndTime(Timestamp value)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateResponse.Builder |
mergeFrom(BatchTranslateResponse other) |
BatchTranslateResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
BatchTranslateResponse.Builder |
mergeFrom(Message other) |
BatchTranslateResponse.Builder |
mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
BatchTranslateResponse.Builder |
setEndTime(Timestamp.Builder builderForValue)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateResponse.Builder |
setEndTime(Timestamp value)
The time when the operation is finished and
[google.longrunning.Operation.done][google.longrunning.Operation.done] is
set to true.
|
BatchTranslateResponse.Builder |
setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints).
|
BatchTranslateResponse.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
BatchTranslateResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
BatchTranslateResponse.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
|
BatchTranslateResponse.Builder |
setSubmitTime(Timestamp value)
Time when the operation was submitted.
|
BatchTranslateResponse.Builder |
setTotalCharacters(long value)
Total number of characters (Unicode codepoints).
|
BatchTranslateResponse.Builder |
setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints).
|
BatchTranslateResponse.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<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BatchTranslateResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BatchTranslateResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BatchTranslateResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder mergeFrom(BatchTranslateResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public BatchTranslateResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateResponse.Builder>
IOException
public long getTotalCharacters()
Total number of characters (Unicode codepoints).
int64 total_characters = 1;
getTotalCharacters
in interface BatchTranslateResponseOrBuilder
public BatchTranslateResponse.Builder setTotalCharacters(long value)
Total number of characters (Unicode codepoints).
int64 total_characters = 1;
value
- The totalCharacters to set.public BatchTranslateResponse.Builder clearTotalCharacters()
Total number of characters (Unicode codepoints).
int64 total_characters = 1;
public long getTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints).
int64 translated_characters = 2;
getTranslatedCharacters
in interface BatchTranslateResponseOrBuilder
public BatchTranslateResponse.Builder setTranslatedCharacters(long value)
Number of successfully translated characters (Unicode codepoints).
int64 translated_characters = 2;
value
- The translatedCharacters to set.public BatchTranslateResponse.Builder clearTranslatedCharacters()
Number of successfully translated characters (Unicode codepoints).
int64 translated_characters = 2;
public long getFailedCharacters()
Number of characters that have failed to process (Unicode codepoints).
int64 failed_characters = 3;
getFailedCharacters
in interface BatchTranslateResponseOrBuilder
public BatchTranslateResponse.Builder setFailedCharacters(long value)
Number of characters that have failed to process (Unicode codepoints).
int64 failed_characters = 3;
value
- The failedCharacters to set.public BatchTranslateResponse.Builder clearFailedCharacters()
Number of characters that have failed to process (Unicode codepoints).
int64 failed_characters = 3;
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
hasSubmitTime
in interface BatchTranslateResponseOrBuilder
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
getSubmitTime
in interface BatchTranslateResponseOrBuilder
public BatchTranslateResponse.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
public BatchTranslateResponse.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
public BatchTranslateResponse.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
public BatchTranslateResponse.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 4;
getSubmitTimeOrBuilder
in interface BatchTranslateResponseOrBuilder
public boolean hasEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
hasEndTime
in interface BatchTranslateResponseOrBuilder
public Timestamp getEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
getEndTime
in interface BatchTranslateResponseOrBuilder
public BatchTranslateResponse.Builder setEndTime(Timestamp value)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
public BatchTranslateResponse.Builder setEndTime(Timestamp.Builder builderForValue)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
public BatchTranslateResponse.Builder mergeEndTime(Timestamp value)
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
public BatchTranslateResponse.Builder clearEndTime()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
public Timestamp.Builder getEndTimeBuilder()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
public TimestampOrBuilder getEndTimeOrBuilder()
The time when the operation is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 5;
getEndTimeOrBuilder
in interface BatchTranslateResponseOrBuilder
public final BatchTranslateResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
public final BatchTranslateResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.