Class AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder (0.90.0)

public static final class AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder extends GeneratedMessage.Builder<AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder> implements AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultOrBuilder

Customer policy enforcement result for the banned phrase policy.

Protobuf type google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBannedPhrases(Iterable<String> values)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder addAllBannedPhrases(Iterable<String> values)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
values Iterable<String>

The bannedPhrases to add.

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

This builder for chaining.

addBannedPhrases(String value)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder addBannedPhrases(String value)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
value String

The bannedPhrases to add.

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

This builder for chaining.

addBannedPhrasesBytes(ByteString value)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder addBannedPhrasesBytes(ByteString value)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
value ByteString

The bytes of the bannedPhrases to add.

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

This builder for chaining.

build()

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult build()
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult

buildPartial()

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult buildPartial()
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult

clear()

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder clear()
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder
Overrides

clearBannedPhrases()

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder clearBannedPhrases()

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

This builder for chaining.

getBannedPhrases(int index)

public String getBannedPhrases(int index)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The bannedPhrases at the given index.

getBannedPhrasesBytes(int index)

public ByteString getBannedPhrasesBytes(int index)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the bannedPhrases at the given index.

getBannedPhrasesCount()

public int getBannedPhrasesCount()

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Returns
Type Description
int

The count of bannedPhrases.

getBannedPhrasesList()

public ProtocolStringList getBannedPhrasesList()

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Returns
Type Description
ProtocolStringList

A list containing the bannedPhrases.

getDefaultInstanceForType()

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult getDefaultInstanceForType()
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult other)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder mergeFrom(AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult other)
Parameter
Name Description
other AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder
Overrides

setBannedPhrases(int index, String value)

public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder setBannedPhrases(int index, String value)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The bannedPhrases to set.

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder

This builder for chaining.