public static final class Control.SynonymsAction extends GeneratedMessageV3 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.v1beta.Control.SynonymsAction
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
SYNONYMS_FIELD_NUMBER
public static final int SYNONYMS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Control.SynonymsAction getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Control.SynonymsAction.Builder newBuilder()
newBuilder(Control.SynonymsAction prototype)
public static Control.SynonymsAction.Builder newBuilder(Control.SynonymsAction prototype)
public static Control.SynonymsAction parseDelimitedFrom(InputStream input)
public static Control.SynonymsAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Control.SynonymsAction parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Control.SynonymsAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Control.SynonymsAction parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Control.SynonymsAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Control.SynonymsAction parseFrom(CodedInputStream input)
public static Control.SynonymsAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Control.SynonymsAction parseFrom(InputStream input)
public static Control.SynonymsAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Control.SynonymsAction parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Control.SynonymsAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Control.SynonymsAction> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Control.SynonymsAction getDefaultInstanceForType()
getParserForType()
public Parser<Control.SynonymsAction> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSynonyms(int index)
public 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;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The synonyms at the given index.
|
getSynonymsBytes(int index)
public 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;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the synonyms at the given index.
|
getSynonymsCount()
public 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;
Returns |
Type |
Description |
int |
The count of synonyms.
|
getSynonymsList()
public 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;
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Control.SynonymsAction.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Control.SynonymsAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Control.SynonymsAction.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides