public final class GlossaryEntry extends com.google.protobuf.GeneratedMessageV3 implements GlossaryEntryOrBuilder
Represents a single entry in a glossary.Protobuf type
google.cloud.translation.v3.GlossaryEntry| Modifier and Type | Class and Description |
|---|---|
static class |
GlossaryEntry.Builder
Represents a single entry in a glossary.
|
static class |
GlossaryEntry.DataCase |
static class |
GlossaryEntry.GlossaryTermsPair
Represents a single entry for an unidirectional glossary.
|
static interface |
GlossaryEntry.GlossaryTermsPairOrBuilder |
static class |
GlossaryEntry.GlossaryTermsSet
Represents a single entry for an equivalent term set glossary.
|
static interface |
GlossaryEntry.GlossaryTermsSetOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TERMS_PAIR_FIELD_NUMBER |
static int |
TERMS_SET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GlossaryEntry.DataCase |
getDataCase() |
static GlossaryEntry |
getDefaultInstance() |
GlossaryEntry |
getDefaultInstanceForType() |
String |
getDescription()
Describes the glossary entry.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Describes the glossary entry.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Identifier.
|
com.google.protobuf.ByteString |
getNameBytes()
Identifier.
|
com.google.protobuf.Parser<GlossaryEntry> |
getParserForType() |
int |
getSerializedSize() |
GlossaryEntry.GlossaryTermsPair |
getTermsPair()
Used for an unidirectional glossary.
|
GlossaryEntry.GlossaryTermsPairOrBuilder |
getTermsPairOrBuilder()
Used for an unidirectional glossary.
|
GlossaryEntry.GlossaryTermsSet |
getTermsSet()
Used for an equivalent term sets glossary.
|
GlossaryEntry.GlossaryTermsSetOrBuilder |
getTermsSetOrBuilder()
Used for an equivalent term sets glossary.
|
int |
hashCode() |
boolean |
hasTermsPair()
Used for an unidirectional glossary.
|
boolean |
hasTermsSet()
Used for an equivalent term sets glossary.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GlossaryEntry.Builder |
newBuilder() |
static GlossaryEntry.Builder |
newBuilder(GlossaryEntry prototype) |
GlossaryEntry.Builder |
newBuilderForType() |
protected GlossaryEntry.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GlossaryEntry |
parseDelimitedFrom(InputStream input) |
static GlossaryEntry |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GlossaryEntry |
parseFrom(byte[] data) |
static GlossaryEntry |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GlossaryEntry |
parseFrom(ByteBuffer data) |
static GlossaryEntry |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GlossaryEntry |
parseFrom(com.google.protobuf.ByteString data) |
static GlossaryEntry |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GlossaryEntry |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GlossaryEntry |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GlossaryEntry |
parseFrom(InputStream input) |
static GlossaryEntry |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GlossaryEntry> |
parser() |
GlossaryEntry.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TERMS_PAIR_FIELD_NUMBER
public static final int TERMS_SET_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public GlossaryEntry.DataCase getDataCase()
getDataCase in interface GlossaryEntryOrBuilderpublic String getName()
Identifier. The resource name of the entry. Format: `projects/*/locations/*/glossaries/*/glossaryEntries/*`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getName in interface GlossaryEntryOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Identifier. The resource name of the entry. Format: `projects/*/locations/*/glossaries/*/glossaryEntries/*`
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];getNameBytes in interface GlossaryEntryOrBuilderpublic boolean hasTermsPair()
Used for an unidirectional glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;hasTermsPair in interface GlossaryEntryOrBuilderpublic GlossaryEntry.GlossaryTermsPair getTermsPair()
Used for an unidirectional glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;getTermsPair in interface GlossaryEntryOrBuilderpublic GlossaryEntry.GlossaryTermsPairOrBuilder getTermsPairOrBuilder()
Used for an unidirectional glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsPair terms_pair = 2;getTermsPairOrBuilder in interface GlossaryEntryOrBuilderpublic boolean hasTermsSet()
Used for an equivalent term sets glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;hasTermsSet in interface GlossaryEntryOrBuilderpublic GlossaryEntry.GlossaryTermsSet getTermsSet()
Used for an equivalent term sets glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;getTermsSet in interface GlossaryEntryOrBuilderpublic GlossaryEntry.GlossaryTermsSetOrBuilder getTermsSetOrBuilder()
Used for an equivalent term sets glossary.
.google.cloud.translation.v3.GlossaryEntry.GlossaryTermsSet terms_set = 3;getTermsSetOrBuilder in interface GlossaryEntryOrBuilderpublic String getDescription()
Describes the glossary entry.
string description = 4;getDescription in interface GlossaryEntryOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Describes the glossary entry.
string description = 4;getDescriptionBytes in interface GlossaryEntryOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GlossaryEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GlossaryEntry parseFrom(InputStream input) throws IOException
IOExceptionpublic static GlossaryEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GlossaryEntry parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GlossaryEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GlossaryEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GlossaryEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GlossaryEntry.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GlossaryEntry.Builder newBuilder()
public static GlossaryEntry.Builder newBuilder(GlossaryEntry prototype)
public GlossaryEntry.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GlossaryEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GlossaryEntry getDefaultInstance()
public static com.google.protobuf.Parser<GlossaryEntry> parser()
public com.google.protobuf.Parser<GlossaryEntry> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GlossaryEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.