Package com.google.cloud.translate.v3
Class BatchTranslateMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
com.google.cloud.translate.v3.BatchTranslateMetadata.Builder
- All Implemented Interfaces:
BatchTranslateMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchTranslateMetadata
public static final class BatchTranslateMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
implements BatchTranslateMetadataOrBuilder
State metadata for the batch translation operation.Protobuf type
google.cloud.translation.v3.BatchTranslateMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Number of characters that have failed to process so far (Unicode codepoints).The state of the operation.Time when the operation was submitted.Total number of characters (Unicode codepoints).Number of successfully translated characters so far (Unicode codepoints).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongNumber of characters that have failed to process so far (Unicode codepoints).getState()The state of the operation.intThe state of the operation.com.google.protobuf.TimestampTime when the operation was submitted.com.google.protobuf.Timestamp.BuilderTime when the operation was submitted.com.google.protobuf.TimestampOrBuilderTime when the operation was submitted.longTotal number of characters (Unicode codepoints).longNumber of successfully translated characters so far (Unicode codepoints).booleanTime when the operation was submitted.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BatchTranslateMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSubmitTime(com.google.protobuf.Timestamp value) Time when the operation was submitted.setFailedCharacters(long value) Number of characters that have failed to process so far (Unicode codepoints).The state of the operation.setStateValue(int value) The state of the operation.setSubmitTime(com.google.protobuf.Timestamp value) Time when the operation was submitted.setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the operation was submitted.setTotalCharacters(long value) Total number of characters (Unicode codepoints).setTranslatedCharacters(long value) Number of successfully translated characters so far (Unicode codepoints).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchTranslateMetadata.Builder>
-
mergeFrom
public BatchTranslateMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchTranslateMetadata.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;- Specified by:
getStateValuein interfaceBatchTranslateMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;- Specified by:
getStatein interfaceBatchTranslateMetadataOrBuilder- Returns:
- The state.
-
setState
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The state of the operation.
.google.cloud.translation.v3.BatchTranslateMetadata.State state = 1;- Returns:
- This builder for chaining.
-
getTranslatedCharacters
public long getTranslatedCharacters()Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;- Specified by:
getTranslatedCharactersin interfaceBatchTranslateMetadataOrBuilder- Returns:
- The translatedCharacters.
-
setTranslatedCharacters
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;- Parameters:
value- The translatedCharacters to set.- Returns:
- This builder for chaining.
-
clearTranslatedCharacters
Number of successfully translated characters so far (Unicode codepoints).
int64 translated_characters = 2;- Returns:
- This builder for chaining.
-
getFailedCharacters
public long getFailedCharacters()Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;- Specified by:
getFailedCharactersin interfaceBatchTranslateMetadataOrBuilder- Returns:
- The failedCharacters.
-
setFailedCharacters
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;- Parameters:
value- The failedCharacters to set.- Returns:
- This builder for chaining.
-
clearFailedCharacters
Number of characters that have failed to process so far (Unicode codepoints).
int64 failed_characters = 3;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTotalCharactersin interfaceBatchTranslateMetadataOrBuilder- Returns:
- The totalCharacters.
-
setTotalCharacters
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;- Parameters:
value- The totalCharacters to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasSubmitTime
public boolean hasSubmitTime()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;- Specified by:
hasSubmitTimein interfaceBatchTranslateMetadataOrBuilder- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
public com.google.protobuf.Timestamp getSubmitTime()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;- Specified by:
getSubmitTimein interfaceBatchTranslateMetadataOrBuilder- Returns:
- The submitTime.
-
setSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5; -
setSubmitTime
public BatchTranslateMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5; -
mergeSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5; -
clearSubmitTime
Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5; -
getSubmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5; -
getSubmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()Time when the operation was submitted.
.google.protobuf.Timestamp submit_time = 5;- Specified by:
getSubmitTimeOrBuilderin interfaceBatchTranslateMetadataOrBuilder
-