- 2.47.0 (latest)
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class Glossary.Builder extends GeneratedMessageV3.Builder<Glossary.Builder> implements GlossaryOrBuilder
Represents a glossary built from user provided data.
Protobuf type google.cloud.translation.v3beta1.Glossary
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Glossary.BuilderImplements
GlossaryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Glossary.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
build()
public Glossary build()
Returns | |
---|---|
Type | Description |
Glossary |
buildPartial()
public Glossary buildPartial()
Returns | |
---|---|
Type | Description |
Glossary |
clear()
public Glossary.Builder clear()
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearEndTime()
public Glossary.Builder clearEndTime()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearEntryCount()
public Glossary.Builder clearEntryCount()
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Glossary.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Glossary.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearInputConfig()
public Glossary.Builder clearInputConfig()
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 |
Glossary.Builder |
clearLanguageCodesSet()
public Glossary.Builder clearLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearLanguagePair()
public Glossary.Builder clearLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearLanguages()
public Glossary.Builder clearLanguages()
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearName()
public Glossary.Builder clearName()
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 |
Glossary.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Glossary.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clearSubmitTime()
public Glossary.Builder clearSubmitTime()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Glossary.Builder |
clone()
public Glossary.Builder clone()
Returns | |
---|---|
Type | Description |
Glossary.Builder |
getDefaultInstanceForType()
public Glossary getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Glossary |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
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.v3beta1.GlossaryInputConfig input_config = 5;
Returns | |
---|---|
Type | Description |
GlossaryInputConfig |
The inputConfig. |
getInputConfigBuilder()
public GlossaryInputConfig.Builder getInputConfigBuilder()
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 |
GlossaryInputConfig.Builder |
getInputConfigOrBuilder()
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 | |
---|---|
Type | Description |
GlossaryInputConfigOrBuilder |
getLanguageCodesSet()
public Glossary.LanguageCodesSet getLanguageCodesSet()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns | |
---|---|
Type | Description |
Glossary.LanguageCodesSet |
The languageCodesSet. |
getLanguageCodesSetBuilder()
public Glossary.LanguageCodesSet.Builder getLanguageCodesSetBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns | |
---|---|
Type | Description |
Glossary.LanguageCodesSet.Builder |
getLanguageCodesSetOrBuilder()
public Glossary.LanguageCodesSetOrBuilder getLanguageCodesSetOrBuilder()
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Returns | |
---|---|
Type | Description |
Glossary.LanguageCodesSetOrBuilder |
getLanguagePair()
public Glossary.LanguageCodePair getLanguagePair()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns | |
---|---|
Type | Description |
Glossary.LanguageCodePair |
The languagePair. |
getLanguagePairBuilder()
public Glossary.LanguageCodePair.Builder getLanguagePairBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Returns | |
---|---|
Type | Description |
Glossary.LanguageCodePair.Builder |
getLanguagePairOrBuilder()
public Glossary.LanguageCodePairOrBuilder getLanguagePairOrBuilder()
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.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. |
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. |
getSubmitTimeBuilder()
public Timestamp.Builder getSubmitTimeBuilder()
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
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.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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEndTime(Timestamp value)
public Glossary.Builder mergeEndTime(Timestamp value)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeFrom(Glossary other)
public Glossary.Builder mergeFrom(Glossary other)
Parameter | |
---|---|
Name | Description |
other |
Glossary |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Glossary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Glossary.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeInputConfig(GlossaryInputConfig value)
public Glossary.Builder mergeInputConfig(GlossaryInputConfig value)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
Parameter | |
---|---|
Name | Description |
value |
GlossaryInputConfig |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeLanguageCodesSet(Glossary.LanguageCodesSet value)
public Glossary.Builder mergeLanguageCodesSet(Glossary.LanguageCodesSet value)
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Parameter | |
---|---|
Name | Description |
value |
Glossary.LanguageCodesSet |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeLanguagePair(Glossary.LanguageCodePair value)
public Glossary.Builder mergeLanguagePair(Glossary.LanguageCodePair value)
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Parameter | |
---|---|
Name | Description |
value |
Glossary.LanguageCodePair |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeSubmitTime(Timestamp value)
public Glossary.Builder mergeSubmitTime(Timestamp value)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Glossary.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setEndTime(Timestamp value)
public Glossary.Builder setEndTime(Timestamp value)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setEndTime(Timestamp.Builder builderForValue)
public Glossary.Builder setEndTime(Timestamp.Builder builderForValue)
Output only. When the glossary creation was finished.
.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setEntryCount(int value)
public Glossary.Builder setEntryCount(int value)
Output only. The number of entries defined in the glossary.
int32 entry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The entryCount to set. |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Glossary.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setInputConfig(GlossaryInputConfig value)
public Glossary.Builder setInputConfig(GlossaryInputConfig value)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
Parameter | |
---|---|
Name | Description |
value |
GlossaryInputConfig |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setInputConfig(GlossaryInputConfig.Builder builderForValue)
public Glossary.Builder setInputConfig(GlossaryInputConfig.Builder builderForValue)
Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.
.google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
GlossaryInputConfig.Builder |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setLanguageCodesSet(Glossary.LanguageCodesSet value)
public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet value)
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Parameter | |
---|---|
Name | Description |
value |
Glossary.LanguageCodesSet |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue)
public Glossary.Builder setLanguageCodesSet(Glossary.LanguageCodesSet.Builder builderForValue)
Used with equivalent term set glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodesSet language_codes_set = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Glossary.LanguageCodesSet.Builder |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setLanguagePair(Glossary.LanguageCodePair value)
public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair value)
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Parameter | |
---|---|
Name | Description |
value |
Glossary.LanguageCodePair |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue)
public Glossary.Builder setLanguagePair(Glossary.LanguageCodePair.Builder builderForValue)
Used with unidirectional glossaries.
.google.cloud.translation.v3beta1.Glossary.LanguageCodePair language_pair = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Glossary.LanguageCodePair.Builder |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setName(String value)
public Glossary.Builder setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Glossary.Builder setNameBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Glossary.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setSubmitTime(Timestamp value)
public Glossary.Builder setSubmitTime(Timestamp value)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setSubmitTime(Timestamp.Builder builderForValue)
public Glossary.Builder setSubmitTime(Timestamp.Builder builderForValue)
Output only. When CreateGlossary was called.
.google.protobuf.Timestamp submit_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Glossary.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Glossary.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Glossary.Builder |