public static final class SafetySettings.Phrase extends GeneratedMessageV3 implements SafetySettings.PhraseOrBuilder
Text input which can be used for prompt or banned phrases.
Protobuf type google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase
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
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SafetySettings.Phrase getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SafetySettings.Phrase.Builder newBuilder()
newBuilder(SafetySettings.Phrase prototype)
public static SafetySettings.Phrase.Builder newBuilder(SafetySettings.Phrase prototype)
public static SafetySettings.Phrase parseDelimitedFrom(InputStream input)
public static SafetySettings.Phrase parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SafetySettings.Phrase parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SafetySettings.Phrase parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SafetySettings.Phrase parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SafetySettings.Phrase parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SafetySettings.Phrase parseFrom(CodedInputStream input)
public static SafetySettings.Phrase parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SafetySettings.Phrase parseFrom(InputStream input)
public static SafetySettings.Phrase parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SafetySettings.Phrase parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SafetySettings.Phrase parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SafetySettings.Phrase> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SafetySettings.Phrase getDefaultInstanceForType()
getLanguageCode()
public String getLanguageCode()
Required. Language code of the phrase.
string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Required. Language code of the phrase.
string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
getParserForType()
public Parser<SafetySettings.Phrase> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getText()
Required. Text input which can be used for prompt or banned phrases.
string text = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The text.
|
getTextBytes()
public ByteString getTextBytes()
Required. Text input which can be used for prompt or banned phrases.
string text = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for text.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SafetySettings.Phrase.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SafetySettings.Phrase.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SafetySettings.Phrase.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides