Send feedback
Class Glossary (2.56.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class Glossary extends GeneratedMessageV3 implements GlossaryOrBuilder
Represents a glossary built from user provided data.
Protobuf type google.cloud.translation.v3beta1.Glossary
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
Type
Description
int
ENTRY_COUNT_FIELD_NUMBER
public static final int ENTRY_COUNT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
Type
Description
int
LANGUAGE_CODES_SET_FIELD_NUMBER
public static final int LANGUAGE_CODES_SET_FIELD_NUMBER
Field Value
Type
Description
int
LANGUAGE_PAIR_FIELD_NUMBER
public static final int LANGUAGE_PAIR_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
SUBMIT_TIME_FIELD_NUMBER
public static final int SUBMIT_TIME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Glossary getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Glossary . Builder newBuilder ()
newBuilder(Glossary prototype)
public static Glossary . Builder newBuilder ( Glossary prototype )
Parameter
Name
Description
prototype
Glossary
public static Glossary parseDelimitedFrom ( InputStream input )
public static Glossary parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static Glossary parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static Glossary parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Glossary parseFrom ( CodedInputStream input )
public static Glossary parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Glossary parseFrom ( InputStream input )
public static Glossary parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static Glossary parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<Glossary> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Glossary getDefaultInstanceForType ()
getEndTime()
public Timestamp getEndTime ()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Timestamp
The endTime.
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder ()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEntryCount()
public int getEntryCount ()
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The entryCount.
public GlossaryInputConfig getInputConfig ()
Required. Provides examples to build the glossary from.
Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3beta1.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.v3beta1.GlossaryInputConfig input_config = 5;
getLanguageCodesSet()
public Glossary . LanguageCodesSet getLanguageCodesSet ()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguageCodesSetOrBuilder()
public Glossary . LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder ()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguagePair()
public Glossary . LanguageCodePair getLanguagePair ()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
getLanguagePairOrBuilder()
public Glossary . LanguageCodePairOrBuilder getLanguagePairOrBuilder ()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
getLanguagesCase()
public Glossary . LanguagesCase getLanguagesCase ()
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
Type
Description
String
The name.
getNameBytes()
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];
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<Glossary> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSubmitTime()
public Timestamp getSubmitTime ()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Timestamp
The submitTime.
getSubmitTimeOrBuilder()
public TimestampOrBuilder getSubmitTimeOrBuilder ()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasEndTime()
public boolean hasEndTime ()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the endTime field is set.
public boolean hasInputConfig ()
Required. Provides examples to build the glossary from.
Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
Returns
Type
Description
boolean
Whether the inputConfig field is set.
hasLanguageCodesSet()
public boolean hasLanguageCodesSet ()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns
Type
Description
boolean
Whether the languageCodesSet field is set.
hasLanguagePair()
public boolean hasLanguagePair ()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns
Type
Description
boolean
Whether the languagePair field is set.
hasSubmitTime()
public boolean hasSubmitTime ()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the submitTime field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Glossary . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Glossary . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Glossary . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]