Class DataStoreConnectionSignals.SafetySignals.Builder (0.53.0)

public static final class DataStoreConnectionSignals.SafetySignals.Builder extends GeneratedMessageV3.Builder<DataStoreConnectionSignals.SafetySignals.Builder> implements DataStoreConnectionSignals.SafetySignalsOrBuilder

Safety check results.

Protobuf type google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataStoreConnectionSignals.SafetySignals.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

build()

public DataStoreConnectionSignals.SafetySignals build()
Returns
Type Description
DataStoreConnectionSignals.SafetySignals

buildPartial()

public DataStoreConnectionSignals.SafetySignals buildPartial()
Returns
Type Description
DataStoreConnectionSignals.SafetySignals

clear()

public DataStoreConnectionSignals.SafetySignals.Builder clear()
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

clearBannedPhraseMatch()

public DataStoreConnectionSignals.SafetySignals.Builder clearBannedPhraseMatch()

Specifies banned phrase match subject.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2;

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

clearDecision()

public DataStoreConnectionSignals.SafetySignals.Builder clearDecision()

Safety decision.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1;

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataStoreConnectionSignals.SafetySignals.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

clearMatchedBannedPhrase()

public DataStoreConnectionSignals.SafetySignals.Builder clearMatchedBannedPhrase()

The matched banned phrase if there was a match.

string matched_banned_phrase = 3;

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataStoreConnectionSignals.SafetySignals.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

clone()

public DataStoreConnectionSignals.SafetySignals.Builder clone()
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

getBannedPhraseMatch()

public DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch getBannedPhraseMatch()

Specifies banned phrase match subject.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2;

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch

The bannedPhraseMatch.

getBannedPhraseMatchValue()

public int getBannedPhraseMatchValue()

Specifies banned phrase match subject.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2;

Returns
Type Description
int

The enum numeric value on the wire for bannedPhraseMatch.

getDecision()

public DataStoreConnectionSignals.SafetySignals.SafetyDecision getDecision()

Safety decision.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1;

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.SafetyDecision

The decision.

getDecisionValue()

public int getDecisionValue()

Safety decision.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1;

Returns
Type Description
int

The enum numeric value on the wire for decision.

getDefaultInstanceForType()

public DataStoreConnectionSignals.SafetySignals getDefaultInstanceForType()
Returns
Type Description
DataStoreConnectionSignals.SafetySignals

getDescriptorForType()

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

getMatchedBannedPhrase()

public String getMatchedBannedPhrase()

The matched banned phrase if there was a match.

string matched_banned_phrase = 3;

Returns
Type Description
String

The matchedBannedPhrase.

getMatchedBannedPhraseBytes()

public ByteString getMatchedBannedPhraseBytes()

The matched banned phrase if there was a match.

string matched_banned_phrase = 3;

Returns
Type Description
ByteString

The bytes for matchedBannedPhrase.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataStoreConnectionSignals.SafetySignals other)

public DataStoreConnectionSignals.SafetySignals.Builder mergeFrom(DataStoreConnectionSignals.SafetySignals other)
Parameter
Name Description
other DataStoreConnectionSignals.SafetySignals
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataStoreConnectionSignals.SafetySignals.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataStoreConnectionSignals.SafetySignals.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataStoreConnectionSignals.SafetySignals.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

setBannedPhraseMatch(DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch value)

public DataStoreConnectionSignals.SafetySignals.Builder setBannedPhraseMatch(DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch value)

Specifies banned phrase match subject.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2;

Parameter
Name Description
value DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch

The bannedPhraseMatch to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setBannedPhraseMatchValue(int value)

public DataStoreConnectionSignals.SafetySignals.Builder setBannedPhraseMatchValue(int value)

Specifies banned phrase match subject.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch banned_phrase_match = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for bannedPhraseMatch to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setDecision(DataStoreConnectionSignals.SafetySignals.SafetyDecision value)

public DataStoreConnectionSignals.SafetySignals.Builder setDecision(DataStoreConnectionSignals.SafetySignals.SafetyDecision value)

Safety decision.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1;

Parameter
Name Description
value DataStoreConnectionSignals.SafetySignals.SafetyDecision

The decision to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setDecisionValue(int value)

public DataStoreConnectionSignals.SafetySignals.Builder setDecisionValue(int value)

Safety decision.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals.SafetySignals.SafetyDecision decision = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for decision to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataStoreConnectionSignals.SafetySignals.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

setMatchedBannedPhrase(String value)

public DataStoreConnectionSignals.SafetySignals.Builder setMatchedBannedPhrase(String value)

The matched banned phrase if there was a match.

string matched_banned_phrase = 3;

Parameter
Name Description
value String

The matchedBannedPhrase to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setMatchedBannedPhraseBytes(ByteString value)

public DataStoreConnectionSignals.SafetySignals.Builder setMatchedBannedPhraseBytes(ByteString value)

The matched banned phrase if there was a match.

string matched_banned_phrase = 3;

Parameter
Name Description
value ByteString

The bytes for matchedBannedPhrase to set.

Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataStoreConnectionSignals.SafetySignals.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataStoreConnectionSignals.SafetySignals.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataStoreConnectionSignals.SafetySignals.Builder
Overrides