- 0.79.0 (latest)
- 0.78.0
- 0.77.0
- 0.76.0
- 0.74.0
- 0.72.0
- 0.71.0
- 0.70.0
- 0.69.0
- 0.68.0
- 0.66.0
- 0.64.0
- 0.63.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class SynonymSet.Builder extends GeneratedMessage.Builder<SynonymSet.Builder> implements SynonymSetOrBuilderRepresents a list of synonyms for a given context. For example a context "sales" could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint
Protobuf type google.cloud.contentwarehouse.v1.SynonymSet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SynonymSet.BuilderImplements
SynonymSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSynonyms(Iterable<? extends SynonymSet.Synonym> values)
public SynonymSet.Builder addAllSynonyms(Iterable<? extends SynonymSet.Synonym> values)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.contentwarehouse.v1.SynonymSet.Synonym> |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
addSynonyms(SynonymSet.Synonym value)
public SynonymSet.Builder addSynonyms(SynonymSet.Synonym value)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
SynonymSet.Synonym |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
addSynonyms(SynonymSet.Synonym.Builder builderForValue)
public SynonymSet.Builder addSynonyms(SynonymSet.Synonym.Builder builderForValue)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SynonymSet.Synonym.Builder |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
addSynonyms(int index, SynonymSet.Synonym value)
public SynonymSet.Builder addSynonyms(int index, SynonymSet.Synonym value)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SynonymSet.Synonym |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
addSynonyms(int index, SynonymSet.Synonym.Builder builderForValue)
public SynonymSet.Builder addSynonyms(int index, SynonymSet.Synonym.Builder builderForValue)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SynonymSet.Synonym.Builder |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
addSynonymsBuilder()
public SynonymSet.Synonym.Builder addSynonymsBuilder()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Synonym.Builder |
|
addSynonymsBuilder(int index)
public SynonymSet.Synonym.Builder addSynonymsBuilder(int index)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Synonym.Builder |
|
build()
public SynonymSet build()| Returns | |
|---|---|
| Type | Description |
SynonymSet |
|
buildPartial()
public SynonymSet buildPartial()| Returns | |
|---|---|
| Type | Description |
SynonymSet |
|
clear()
public SynonymSet.Builder clear()| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
clearContext()
public SynonymSet.Builder clearContext()This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
clearName()
public SynonymSet.Builder clearName()The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
clearSynonyms()
public SynonymSet.Builder clearSynonyms()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
getContext()
public String getContext()This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The context. |
getContextBytes()
public ByteString getContextBytes()This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for context. |
getDefaultInstanceForType()
public SynonymSet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SynonymSet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSynonyms(int index)
public SynonymSet.Synonym getSynonyms(int index)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Synonym |
|
getSynonymsBuilder(int index)
public SynonymSet.Synonym.Builder getSynonymsBuilder(int index)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Synonym.Builder |
|
getSynonymsBuilderList()
public List<SynonymSet.Synonym.Builder> getSynonymsBuilderList()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSynonymsCount()
public int getSynonymsCount()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSynonymsList()
public List<SynonymSet.Synonym> getSynonymsList()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
List<Synonym> |
|
getSynonymsOrBuilder(int index)
public SynonymSet.SynonymOrBuilder getSynonymsOrBuilder(int index)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.SynonymOrBuilder |
|
getSynonymsOrBuilderList()
public List<? extends SynonymSet.SynonymOrBuilder> getSynonymsOrBuilderList()List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.contentwarehouse.v1.SynonymSet.SynonymOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SynonymSet other)
public SynonymSet.Builder mergeFrom(SynonymSet other)| Parameter | |
|---|---|
| Name | Description |
other |
SynonymSet |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SynonymSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SynonymSet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
removeSynonyms(int index)
public SynonymSet.Builder removeSynonyms(int index)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
setContext(String value)
public SynonymSet.Builder setContext(String value)This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe context to set. |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
setContextBytes(ByteString value)
public SynonymSet.Builder setContextBytes(ByteString value)This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for context to set. |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
setName(String value)
public SynonymSet.Builder setName(String value)The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SynonymSet.Builder setNameBytes(ByteString value)The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
This builder for chaining. |
setSynonyms(int index, SynonymSet.Synonym value)
public SynonymSet.Builder setSynonyms(int index, SynonymSet.Synonym value)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
SynonymSet.Synonym |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|
setSynonyms(int index, SynonymSet.Synonym.Builder builderForValue)
public SynonymSet.Builder setSynonyms(int index, SynonymSet.Synonym.Builder builderForValue)List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
SynonymSet.Synonym.Builder |
| Returns | |
|---|---|
| Type | Description |
SynonymSet.Builder |
|