Package com.google.cloud.translate.v3
Interface GlossaryOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Glossary,Glossary.Builder
public interface GlossaryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDisplayName()Optional.com.google.protobuf.ByteStringgetDisplayNameBytes()Optional.com.google.protobuf.TimestampgetEndTime()Output only.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()Output only.intgetEntryCount()Output only.GlossaryInputConfiggetInputConfig()Required.GlossaryInputConfigOrBuildergetInputConfigOrBuilder()Required.Glossary.LanguageCodesSetgetLanguageCodesSet()Used with equivalent term set glossaries.Glossary.LanguageCodesSetOrBuildergetLanguageCodesSetOrBuilder()Used with equivalent term set glossaries.Glossary.LanguageCodePairgetLanguagePair()Used with unidirectional glossaries.Glossary.LanguageCodePairOrBuildergetLanguagePairOrBuilder()Used with unidirectional glossaries.Glossary.LanguagesCasegetLanguagesCase()StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.com.google.protobuf.TimestampgetSubmitTime()Output only.com.google.protobuf.TimestampOrBuildergetSubmitTimeOrBuilder()Output only.booleanhasEndTime()Output only.booleanhasInputConfig()Required.booleanhasLanguageCodesSet()Used with equivalent term set glossaries.booleanhasLanguagePair()Used with unidirectional glossaries.booleanhasSubmitTime()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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];- Returns:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
hasLanguagePair
boolean hasLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;- Returns:
- Whether the languagePair field is set.
-
getLanguagePair
Glossary.LanguageCodePair getLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;- Returns:
- The languagePair.
-
getLanguagePairOrBuilder
Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
-
hasLanguageCodesSet
boolean hasLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;- Returns:
- Whether the languageCodesSet field is set.
-
getLanguageCodesSet
Glossary.LanguageCodesSet getLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;- Returns:
- The languageCodesSet.
-
getLanguageCodesSetOrBuilder
Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
-
hasInputConfig
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;- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
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;- Returns:
- The inputConfig.
-
getInputConfigOrBuilder
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;
-
getEntryCount
int getEntryCount()
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The entryCount.
-
hasSubmitTime
boolean hasSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
com.google.protobuf.Timestamp getSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The submitTime.
-
getSubmitTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
hasEndTime
boolean hasEndTime()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the endTime field is set.
-
getEndTime
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];- Returns:
- The endTime.
-
getEndTimeOrBuilder
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];
-
getDisplayName
String getDisplayName()
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()
Optional. The display name of the glossary.
string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for displayName.
-
getLanguagesCase
Glossary.LanguagesCase getLanguagesCase()
-
-