Interface Rule.ReplacementActionOrBuilder (2.33.0)

public static interface Rule.ReplacementActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getQueryTerms(int index)

public abstract String getQueryTerms(int index)

Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

repeated string query_terms = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The queryTerms at the given index.

getQueryTermsBytes(int index)

public abstract ByteString getQueryTermsBytes(int index)

Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

repeated string query_terms = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the queryTerms at the given index.

getQueryTermsCount()

public abstract int getQueryTermsCount()

Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

repeated string query_terms = 2;

Returns
TypeDescription
int

The count of queryTerms.

getQueryTermsList()

public abstract List<String> getQueryTermsList()

Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

repeated string query_terms = 2;

Returns
TypeDescription
List<String>

A list containing the queryTerms.

getReplacementTerm()

public abstract String getReplacementTerm()

Term that will be used for replacement.

string replacement_term = 3;

Returns
TypeDescription
String

The replacementTerm.

getReplacementTermBytes()

public abstract ByteString getReplacementTermBytes()

Term that will be used for replacement.

string replacement_term = 3;

Returns
TypeDescription
ByteString

The bytes for replacementTerm.

getTerm()

public abstract String getTerm()

Will be [deprecated = true] post migration;

string term = 1;

Returns
TypeDescription
String

The term.

getTermBytes()

public abstract ByteString getTermBytes()

Will be [deprecated = true] post migration;

string term = 1;

Returns
TypeDescription
ByteString

The bytes for term.