public final class Glossary extends GeneratedMessageV3 implements GlossaryOrBuilder
Represents a glossary built from user-provided data.
Protobuf type google.cloud.translation.v3.Glossary
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 | |
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()
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];
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.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;
getLanguageCodesSet()
public Glossary.LanguageCodesSet getLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguageCodesSetOrBuilder()
public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodesSet language_codes_set = 4;
getLanguagePair()
public Glossary.LanguageCodePair getLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3.Glossary.LanguageCodePair language_pair = 3;
getLanguagePairOrBuilder()
public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3.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];
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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.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()
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)
Overrides
toBuilder()
public Glossary.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides