Class Glossary (2.47.0)

public final class Glossary extends GeneratedMessageV3 implements GlossaryOrBuilder

Represents a glossary built from user-provided data.

Protobuf type google.cloud.translation.v3.Glossary

Implements

GlossaryOrBuilder

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

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

INPUT_CONFIG_FIELD_NUMBER

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()
Returns
Type Description
Glossary

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Glossary.Builder newBuilder()
Returns
Type Description
Glossary.Builder

newBuilder(Glossary prototype)

public static Glossary.Builder newBuilder(Glossary prototype)
Parameter
Name Description
prototype Glossary
Returns
Type Description
Glossary.Builder

parseDelimitedFrom(InputStream input)

public static Glossary parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Glossary parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Glossary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Glossary parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Glossary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Glossary parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Glossary parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Glossary parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Glossary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Glossary
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Glossary> parser()
Returns
Type Description
Parser<Glossary>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Glossary getDefaultInstanceForType()
Returns
Type Description
Glossary

getDisplayName()

public String getDisplayName()

Optional. The display name of the glossary.

string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the glossary.

string display_name = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

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];

Returns
Type Description
TimestampOrBuilder

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.

getInputConfig()

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;

Returns
Type Description
GlossaryInputConfig

The inputConfig.

getInputConfigOrBuilder()

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;

Returns
Type Description
GlossaryInputConfigOrBuilder

getLanguageCodesSet()

public Glossary.LanguageCodesSet getLanguageCodesSet()

Used with equivalent term set glossaries.

.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.LanguageCodesSet

The languageCodesSet.

getLanguageCodesSetOrBuilder()

public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()

Used with equivalent term set glossaries.

.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;

Returns
Type Description
Glossary.LanguageCodesSetOrBuilder

getLanguagePair()

public Glossary.LanguageCodePair getLanguagePair()

Used with unidirectional glossaries.

.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.LanguageCodePair

The languagePair.

getLanguagePairOrBuilder()

public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()

Used with unidirectional glossaries.

.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;

Returns
Type Description
Glossary.LanguageCodePairOrBuilder

getLanguagesCase()

public Glossary.LanguagesCase getLanguagesCase()
Returns
Type Description
Glossary.LanguagesCase

getName()

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];

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()
Returns
Type Description
Parser<Glossary>
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];

Returns
Type Description
TimestampOrBuilder

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.

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;

Returns
Type Description
boolean

Whether the inputConfig field is set.

hasLanguageCodesSet()

public boolean hasLanguageCodesSet()

Used with equivalent term set glossaries.

.google.cloud.translation.v3.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.v3.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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Glossary.Builder newBuilderForType()
Returns
Type Description
Glossary.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Glossary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Glossary.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Glossary.Builder toBuilder()
Returns
Type Description
Glossary.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException