Package com.google.cloud.translate.v3
Class Glossary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Glossary.Builder>
com.google.cloud.translate.v3.Glossary.Builder
- All Implemented Interfaces:
GlossaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Glossary
public static final class Glossary.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Glossary.Builder>
implements GlossaryOrBuilder
Represents a glossary built from user-provided data.Protobuf type
google.cloud.translation.v3.Glossary-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Output only.Output only.Required.Used with equivalent term set glossaries.Used with unidirectional glossaries.Required.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.intOutput only.Required.Required.Required.Used with equivalent term set glossaries.Used with equivalent term set glossaries.Used with equivalent term set glossaries.Used with unidirectional glossaries.Used with unidirectional glossaries.Used with unidirectional glossaries.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanRequired.booleanUsed with equivalent term set glossaries.booleanUsed with unidirectional glossaries.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Used with equivalent term set glossaries.Used with unidirectional glossaries.mergeSubmitTime(com.google.protobuf.Timestamp value) Output only.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setEndTime(com.google.protobuf.Timestamp value) Output only.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEntryCount(int value) Output only.Required.setInputConfig(GlossaryInputConfig.Builder builderForValue) Required.Used with equivalent term set glossaries.setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue) Used with equivalent term set glossaries.Used with unidirectional glossaries.setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue) Used with unidirectional glossaries.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setSubmitTime(com.google.protobuf.Timestamp value) Output only.setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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<Glossary.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<Glossary.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<Glossary.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<Glossary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Glossary.Builder>
-
mergeFrom
public Glossary.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<Glossary.Builder>- Throws:
IOException
-
getLanguagesCase
- Specified by:
getLanguagesCasein interfaceGlossaryOrBuilder
-
clearLanguages
-
getName
Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceGlossaryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceGlossaryOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasLanguagePair
public boolean hasLanguagePair()Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;- Specified by:
hasLanguagePairin interfaceGlossaryOrBuilder- Returns:
- Whether the languagePair field is set.
-
getLanguagePair
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;- Specified by:
getLanguagePairin interfaceGlossaryOrBuilder- Returns:
- The languagePair.
-
setLanguagePair
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; -
setLanguagePair
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; -
mergeLanguagePair
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; -
clearLanguagePair
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; -
getLanguagePairBuilder
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3; -
getLanguagePairOrBuilder
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;- Specified by:
getLanguagePairOrBuilderin interfaceGlossaryOrBuilder
-
hasLanguageCodesSet
public boolean hasLanguageCodesSet()Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;- Specified by:
hasLanguageCodesSetin interfaceGlossaryOrBuilder- Returns:
- Whether the languageCodesSet field is set.
-
getLanguageCodesSet
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;- Specified by:
getLanguageCodesSetin interfaceGlossaryOrBuilder- Returns:
- The languageCodesSet.
-
setLanguageCodesSet
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; -
setLanguageCodesSet
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; -
mergeLanguageCodesSet
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; -
clearLanguageCodesSet
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; -
getLanguageCodesSetBuilder
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4; -
getLanguageCodesSetOrBuilder
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;- Specified by:
getLanguageCodesSetOrBuilderin interfaceGlossaryOrBuilder
-
hasInputConfig
public boolean hasInputConfig()Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;- Specified by:
hasInputConfigin interfaceGlossaryOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;- Specified by:
getInputConfigin interfaceGlossaryOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5; -
setInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5; -
mergeInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5; -
clearInputConfig
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5; -
getInputConfigBuilder
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5; -
getInputConfigOrBuilder
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;- Specified by:
getInputConfigOrBuilderin interfaceGlossaryOrBuilder
-
getEntryCount
public int getEntryCount()Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEntryCountin interfaceGlossaryOrBuilder- Returns:
- The entryCount.
-
setEntryCount
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The entryCount to set.- Returns:
- This builder for chaining.
-
clearEntryCount
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasSubmitTime
public boolean hasSubmitTime()Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSubmitTimein interfaceGlossaryOrBuilder- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
public com.google.protobuf.Timestamp getSubmitTime()Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSubmitTimein interfaceGlossaryOrBuilder- Returns:
- The submitTime.
-
setSubmitTime
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSubmitTime
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSubmitTime
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSubmitTime
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSubmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSubmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSubmitTimeOrBuilderin interfaceGlossaryOrBuilder
-
hasEndTime
public boolean hasEndTime()Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEndTimein interfaceGlossaryOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimein interfaceGlossaryOrBuilder- Returns:
- The endTime.
-
setEndTime
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setEndTime
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeEndTime
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearEndTime
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimeOrBuilderin interfaceGlossaryOrBuilder
-
getDisplayName
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceGlossaryOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceGlossaryOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-