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
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<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BatchTranslateMetadata build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BatchTranslateMetadata buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BatchTranslateMetadata.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder mergeFrom(BatchTranslateMetadata other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public BatchTranslateMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BatchTranslateMetadata.Builder>
IOException
public int getStateValue()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
getStateValue
in interface BatchTranslateMetadataOrBuilder
public BatchTranslateMetadata.Builder setStateValue(int value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
value
- The enum numeric value on the wire for state to set.public BatchTranslateMetadata.State getState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
getState
in interface BatchTranslateMetadataOrBuilder
public BatchTranslateMetadata.Builder setState(BatchTranslateMetadata.State value)
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
value
- The state to set.public BatchTranslateMetadata.Builder clearState()
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;
public long getTranslatedCharacters()
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
getTranslatedCharacters
in interface BatchTranslateMetadataOrBuilder
public BatchTranslateMetadata.Builder setTranslatedCharacters(long value)
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
value
- The translatedCharacters to set.public BatchTranslateMetadata.Builder clearTranslatedCharacters()
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;
public long getFailedCharacters()
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
getFailedCharacters
in interface BatchTranslateMetadataOrBuilder
public BatchTranslateMetadata.Builder setFailedCharacters(long value)
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
value
- The failedCharacters to set.public BatchTranslateMetadata.Builder clearFailedCharacters()
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;
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;
getTotalCharacters
in interface BatchTranslateMetadataOrBuilder
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;
value
- The totalCharacters to set.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;
public boolean hasSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
hasSubmitTime
in interface BatchTranslateMetadataOrBuilder
public Timestamp getSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
getSubmitTime
in interface BatchTranslateMetadataOrBuilder
public BatchTranslateMetadata.Builder setSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
public BatchTranslateMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
public BatchTranslateMetadata.Builder mergeSubmitTime(Timestamp value)
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
public BatchTranslateMetadata.Builder clearSubmitTime()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
public Timestamp.Builder getSubmitTimeBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
public TimestampOrBuilder getSubmitTimeOrBuilder()
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;
getSubmitTimeOrBuilder
in interface BatchTranslateMetadataOrBuilder
public final BatchTranslateMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
public final BatchTranslateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BatchTranslateMetadata.Builder>
Copyright © 2022 Google LLC. All rights reserved.