public static final class AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult extends GeneratedMessage implements AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultOrBuilderCustomer policy enforcement result for the banned phrase policy.
Protobuf type
google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultStatic Fields
BANNED_PHRASES_FIELD_NUMBER
public static final int BANNED_PHRASES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder |
|
newBuilder(AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult prototype)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder newBuilder(AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder |
|
parseDelimitedFrom(InputStream input)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult> parser()| Returns | |
|---|---|
| Type | Description |
Parser<BannedPhraseEnforcementResult> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
intThe 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 |
intThe 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 |
|
getParserForType()
public Parser<AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<BannedPhraseEnforcementResult> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder |
|
toBuilder()
public AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|