- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class BatchTranslateMetadata.Builder extends GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder> implements BatchTranslateMetadataOrBuilder
State metadata for the batch translation operation.
Protobuf type google.cloud.translation.v3.BatchTranslateMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchTranslateMetadata.BuilderImplements
BatchTranslateMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchTranslateMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BatchTranslateMetadata.Builder |
build()
public BatchTranslateMetadata build()
Type | Description |
BatchTranslateMetadata |
buildPartial()
public BatchTranslateMetadata buildPartial()
Type | Description |
BatchTranslateMetadata |
clear()
public BatchTranslateMetadata.Builder clear()
Type | Description |
BatchTranslateMetadata.Builder |
clearFailedCharacters()
public BatchTranslateMetadata.Builder clearFailedCharacters()
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BatchTranslateMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
BatchTranslateMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchTranslateMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
BatchTranslateMetadata.Builder |
clearState()
public BatchTranslateMetadata.Builder clearState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
clearSubmitTime()
public BatchTranslateMetadata.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Type | Description |
BatchTranslateMetadata.Builder |
clearTotalCharacters()
public BatchTranslateMetadata.Builder clearTotalCharacters()
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.
int64 total_characters = 4;
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
clearTranslatedCharacters()
public BatchTranslateMetadata.Builder clearTranslatedCharacters()
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
clone()
public BatchTranslateMetadata.Builder clone()
Type | Description |
BatchTranslateMetadata.Builder |
getDefaultInstanceForType()
public BatchTranslateMetadata getDefaultInstanceForType()
Type | Description |
BatchTranslateMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFailedCharacters()
public long getFailedCharacters()
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
Type | Description |
long | The failedCharacters. |
getState()
public BatchTranslateMetadata.State getState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
Type | Description |
BatchTranslateMetadata.State | The state. |
getStateValue()
public int getStateValue()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
Type | Description |
int | The enum numeric value on the wire for state. |
getSubmitTime()
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Type | Description |
Timestamp | The submitTime. |
getSubmitTimeBuilder()
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Type | Description |
Builder |
getSubmitTimeOrBuilder()
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Type | Description |
TimestampOrBuilder |
getTotalCharacters()
public long getTotalCharacters()
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.
int64 total_characters = 4;
Type | Description |
long | The totalCharacters. |
getTranslatedCharacters()
public long getTranslatedCharacters()
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
Type | Description |
long | The translatedCharacters. |
hasSubmitTime()
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Type | Description |
boolean | Whether the submitTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(BatchTranslateMetadata other)
public BatchTranslateMetadata.Builder mergeFrom(BatchTranslateMetadata other)
Name | Description |
other | BatchTranslateMetadata |
Type | Description |
BatchTranslateMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchTranslateMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BatchTranslateMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public BatchTranslateMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
BatchTranslateMetadata.Builder |
mergeSubmitTime(Timestamp value)
public BatchTranslateMetadata.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchTranslateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BatchTranslateMetadata.Builder |
setFailedCharacters(long value)
public BatchTranslateMetadata.Builder setFailedCharacters(long value)
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
Name | Description |
value | long The failedCharacters to set. |
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BatchTranslateMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BatchTranslateMetadata.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchTranslateMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
BatchTranslateMetadata.Builder |
setState(BatchTranslateMetadata.State value)
public BatchTranslateMetadata.Builder setState(BatchTranslateMetadata.State value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
Name | Description |
value | BatchTranslateMetadata.State The state to set. |
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
setStateValue(int value)
public BatchTranslateMetadata.Builder setStateValue(int value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
setSubmitTime(Timestamp value)
public BatchTranslateMetadata.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
BatchTranslateMetadata.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
public BatchTranslateMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
BatchTranslateMetadata.Builder |
setTotalCharacters(long value)
public BatchTranslateMetadata.Builder setTotalCharacters(long value)
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.
int64 total_characters = 4;
Name | Description |
value | long The totalCharacters to set. |
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
setTranslatedCharacters(long value)
public BatchTranslateMetadata.Builder setTranslatedCharacters(long value)
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
Name | Description |
value | long The translatedCharacters to set. |
Type | Description |
BatchTranslateMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchTranslateMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BatchTranslateMetadata.Builder |