public final class Glossary extends GeneratedMessageV3 implements GlossaryOrBuilder
Represents a glossary built from user provided data.
Protobuf type google.cloud.translation.v3beta1.Glossary
Static Fields
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
ENTRY_COUNT_FIELD_NUMBER
public static final int ENTRY_COUNT_FIELD_NUMBER
Field Value
public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
LANGUAGE_CODES_SET_FIELD_NUMBER
public static final int LANGUAGE_CODES_SET_FIELD_NUMBER
Field Value
LANGUAGE_PAIR_FIELD_NUMBER
public static final int LANGUAGE_PAIR_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
SUBMIT_TIME_FIELD_NUMBER
public static final int SUBMIT_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Glossary getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Glossary.Builder newBuilder()
Returns
newBuilder(Glossary prototype)
public static Glossary.Builder newBuilder(Glossary prototype)
Parameter
Returns
public static Glossary parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Glossary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Glossary parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Glossary parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Glossary parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Glossary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Glossary parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Glossary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Glossary parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Glossary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Glossary> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Glossary getDefaultInstanceForType()
Returns
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
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
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;
Returns
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;
Returns
getLanguageCodesSet()
public Glossary.LanguageCodesSet getLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns
getLanguageCodesSetOrBuilder()
public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns
getLanguagePair()
public Glossary.LanguageCodePair getLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns
getLanguagePairOrBuilder()
public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns
getLanguagesCase()
public Glossary.LanguagesCase getLanguagesCase()
Returns
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
getParserForType()
public Parser<Glossary> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSubmitTime()
public Timestamp getSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getSubmitTimeOrBuilder()
public TimestampOrBuilder getSubmitTimeOrBuilder()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Glossary.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Glossary.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Glossary.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions