public static final class Glossary.Builder extends GeneratedMessageV3.Builder<Glossary.Builder> implements GlossaryOrBuilder
Represents a glossary built from user provided data.Protobuf type
google.cloud.translation.v3.Glossary
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<Glossary.Builder>
public Glossary.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Glossary build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Glossary buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Glossary.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Glossary.Builder>
public Glossary.Builder mergeFrom(Glossary other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Glossary.Builder>
public Glossary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Glossary.Builder>
IOException
public Glossary.LanguagesCase getLanguagesCase()
getLanguagesCase
in interface GlossaryOrBuilder
public Glossary.Builder clearLanguages()
public String 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];
getName
in interface GlossaryOrBuilder
public 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];
getNameBytes
in interface GlossaryOrBuilder
public Glossary.Builder setName(String value)
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];
value
- The name to set.public Glossary.Builder 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];
public Glossary.Builder setNameBytes(ByteString value)
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];
value
- The bytes for name to set.public boolean hasLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
hasLanguagePair
in interface GlossaryOrBuilder
public Glossary.LanguageCodePair getLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
getLanguagePair
in interface GlossaryOrBuilder
public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair value)
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue)
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
public Glossary.Builder mergeLanguagePair(Glossary.LanguageCodePair value)
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
public Glossary.Builder clearLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
public Glossary.LanguageCodePair.Builder getLanguagePairBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
getLanguagePairOrBuilder
in interface GlossaryOrBuilder
public boolean hasLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
hasLanguageCodesSet
in interface GlossaryOrBuilder
public Glossary.LanguageCodesSet getLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguageCodesSet
in interface GlossaryOrBuilder
public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet value)
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue)
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
public Glossary.Builder mergeLanguageCodesSet(Glossary.LanguageCodesSet value)
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
public Glossary.Builder clearLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
public Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguageCodesSetOrBuilder
in interface GlossaryOrBuilder
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;
hasInputConfig
in interface GlossaryOrBuilder
public GlossaryInputConfig 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;
getInputConfig
in interface GlossaryOrBuilder
public Glossary.Builder setInputConfig(GlossaryInputConfig value)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
public Glossary.Builder setInputConfig(GlossaryInputConfig.Builder builderForValue)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
public Glossary.Builder mergeInputConfig(GlossaryInputConfig value)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
public Glossary.Builder 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;
public GlossaryInputConfig.Builder 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;
public GlossaryInputConfigOrBuilder 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;
getInputConfigOrBuilder
in interface GlossaryOrBuilder
public int getEntryCount()
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEntryCount
in interface GlossaryOrBuilder
public Glossary.Builder setEntryCount(int value)
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The entryCount to set.public Glossary.Builder clearEntryCount()
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasSubmitTime
in interface GlossaryOrBuilder
public Timestamp getSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubmitTime
in interface GlossaryOrBuilder
public Glossary.Builder setSubmitTime(Timestamp value)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder setSubmitTime(Timestamp.Builder builderForValue)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder mergeSubmitTime(Timestamp value)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder clearSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getSubmitTimeBuilder()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getSubmitTimeOrBuilder()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSubmitTimeOrBuilder
in interface GlossaryOrBuilder
public boolean hasEndTime()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasEndTime
in interface GlossaryOrBuilder
public Timestamp getEndTime()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTime
in interface GlossaryOrBuilder
public Glossary.Builder setEndTime(Timestamp value)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder setEndTime(Timestamp.Builder builderForValue)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder mergeEndTime(Timestamp value)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Glossary.Builder clearEndTime()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getEndTimeBuilder()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTimeOrBuilder
in interface GlossaryOrBuilder
public final Glossary.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Glossary.Builder>
public final Glossary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Glossary.Builder>
Copyright © 2022 Google LLC. All rights reserved.