public static final class SafetySettings.Builder extends GeneratedMessageV3.Builder<SafetySettings.Builder> implements SafetySettingsOrBuilder
Settings for Generative Safety.
Protobuf type google.cloud.dialogflow.cx.v3beta1.SafetySettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllBannedPhrases(Iterable<? extends SafetySettings.Phrase> values)
public SafetySettings.Builder addAllBannedPhrases(Iterable<? extends SafetySettings.Phrase> values)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase>
|
addBannedPhrases(SafetySettings.Phrase value)
public SafetySettings.Builder addBannedPhrases(SafetySettings.Phrase value)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
addBannedPhrases(SafetySettings.Phrase.Builder builderForValue)
public SafetySettings.Builder addBannedPhrases(SafetySettings.Phrase.Builder builderForValue)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
addBannedPhrases(int index, SafetySettings.Phrase value)
public SafetySettings.Builder addBannedPhrases(int index, SafetySettings.Phrase value)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
addBannedPhrases(int index, SafetySettings.Phrase.Builder builderForValue)
public SafetySettings.Builder addBannedPhrases(int index, SafetySettings.Phrase.Builder builderForValue)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
addBannedPhrasesBuilder()
public SafetySettings.Phrase.Builder addBannedPhrasesBuilder()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
addBannedPhrasesBuilder(int index)
public SafetySettings.Phrase.Builder addBannedPhrasesBuilder(int index)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SafetySettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SafetySettings build()
buildPartial()
public SafetySettings buildPartial()
clear()
public SafetySettings.Builder clear()
Overrides
clearBannedPhrases()
public SafetySettings.Builder clearBannedPhrases()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
clearField(Descriptors.FieldDescriptor field)
public SafetySettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SafetySettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SafetySettings.Builder clone()
Overrides
getBannedPhrases(int index)
public SafetySettings.Phrase getBannedPhrases(int index)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
index |
int
|
getBannedPhrasesBuilder(int index)
public SafetySettings.Phrase.Builder getBannedPhrasesBuilder(int index)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
index |
int
|
getBannedPhrasesBuilderList()
public List<SafetySettings.Phrase.Builder> getBannedPhrasesBuilderList()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
getBannedPhrasesCount()
public int getBannedPhrasesCount()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Returns |
Type |
Description |
int |
|
getBannedPhrasesList()
public List<SafetySettings.Phrase> getBannedPhrasesList()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
getBannedPhrasesOrBuilder(int index)
public SafetySettings.PhraseOrBuilder getBannedPhrasesOrBuilder(int index)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
index |
int
|
getBannedPhrasesOrBuilderList()
public List<? extends SafetySettings.PhraseOrBuilder> getBannedPhrasesOrBuilderList()
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PhraseOrBuilder> |
|
getDefaultInstanceForType()
public SafetySettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SafetySettings other)
public SafetySettings.Builder mergeFrom(SafetySettings other)
public SafetySettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SafetySettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SafetySettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeBannedPhrases(int index)
public SafetySettings.Builder removeBannedPhrases(int index)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
Parameter |
Name |
Description |
index |
int
|
setBannedPhrases(int index, SafetySettings.Phrase value)
public SafetySettings.Builder setBannedPhrases(int index, SafetySettings.Phrase value)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
setBannedPhrases(int index, SafetySettings.Phrase.Builder builderForValue)
public SafetySettings.Builder setBannedPhrases(int index, SafetySettings.Phrase.Builder builderForValue)
Banned phrases for generated text.
repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public SafetySettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SafetySettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SafetySettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides