public static final class Control.SynonymsAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<Control.SynonymsAction.Builder> implements Control.SynonymsActionOrBuilder
Creates a set of terms that will act as synonyms of one another. Example: "happy" will also be considered as "glad", "glad" will also be considered as "happy".Protobuf type
google.cloud.discoveryengine.v1.Control.SynonymsAction| Modifier and Type | Method and Description |
|---|---|
Control.SynonymsAction.Builder |
addAllSynonyms(Iterable<String> values)
Defines a set of synonyms.
|
Control.SynonymsAction.Builder |
addSynonyms(String value)
Defines a set of synonyms.
|
Control.SynonymsAction.Builder |
addSynonymsBytes(com.google.protobuf.ByteString value)
Defines a set of synonyms.
|
Control.SynonymsAction |
build() |
Control.SynonymsAction |
buildPartial() |
Control.SynonymsAction.Builder |
clear() |
Control.SynonymsAction.Builder |
clearSynonyms()
Defines a set of synonyms.
|
Control.SynonymsAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getSynonyms(int index)
Defines a set of synonyms.
|
com.google.protobuf.ByteString |
getSynonymsBytes(int index)
Defines a set of synonyms.
|
int |
getSynonymsCount()
Defines a set of synonyms.
|
com.google.protobuf.ProtocolStringList |
getSynonymsList()
Defines a set of synonyms.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Control.SynonymsAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Control.SynonymsAction.Builder |
mergeFrom(Control.SynonymsAction other) |
Control.SynonymsAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
Control.SynonymsAction.Builder |
setSynonyms(int index,
String value)
Defines a set of synonyms.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Control.SynonymsAction.Builder>public Control.SynonymsAction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Control.SynonymsAction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Control.SynonymsAction.Builder>public Control.SynonymsAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Control.SynonymsAction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Control.SynonymsAction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Control.SynonymsAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.SynonymsAction.Builder>public Control.SynonymsAction.Builder mergeFrom(Control.SynonymsAction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Control.SynonymsAction.Builder>public Control.SynonymsAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Control.SynonymsAction.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getSynonymsList()
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;getSynonymsList in interface Control.SynonymsActionOrBuilderpublic int getSynonymsCount()
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;getSynonymsCount in interface Control.SynonymsActionOrBuilderpublic String getSynonyms(int index)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;getSynonyms in interface Control.SynonymsActionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSynonymsBytes(int index)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;getSynonymsBytes in interface Control.SynonymsActionOrBuilderindex - The index of the value to return.public Control.SynonymsAction.Builder setSynonyms(int index, String value)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;index - The index to set the value at.value - The synonyms to set.public Control.SynonymsAction.Builder addSynonyms(String value)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;value - The synonyms to add.public Control.SynonymsAction.Builder addAllSynonyms(Iterable<String> values)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;values - The synonyms to add.public Control.SynonymsAction.Builder clearSynonyms()
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;public Control.SynonymsAction.Builder addSynonymsBytes(com.google.protobuf.ByteString value)
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
repeated string synonyms = 1;value - The bytes of the synonyms to add.Copyright © 2026 Google LLC. All rights reserved.