Interface SafetySettings.PhraseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SafetySettings.Phrase, SafetySettings.Phrase.Builder
Enclosing class:
SafetySettings

public static interface SafetySettings.PhraseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getText

      String getText()
       Required. Text input which can be used for prompt or banned phrases.
       
      string text = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The text.
    • getTextBytes

      com.google.protobuf.ByteString getTextBytes()
       Required. Text input which can be used for prompt or banned phrases.
       
      string text = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for text.
    • getLanguageCode

      String getLanguageCode()
       Required. Language code of the phrase.
       
      string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      com.google.protobuf.ByteString getLanguageCodeBytes()
       Required. Language code of the phrase.
       
      string language_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for languageCode.