Class Intent.Builder (2.83.0)

public static final class Intent.Builder extends GeneratedMessage.Builder<Intent.Builder> implements IntentOrBuilder

The data for an intent. Represents a detected intent in the conversation, for example MAKES_PROMISE.

Protobuf type google.cloud.contactcenterinsights.v1.Intent

Implements

IntentOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Intent build()
Returns
Type Description
Intent

buildPartial()

public Intent buildPartial()
Returns
Type Description
Intent

clear()

public Intent.Builder clear()
Returns
Type Description
Intent.Builder
Overrides

clearDisplayName()

public Intent.Builder clearDisplayName()

The human-readable name of the intent.

string display_name = 2;

Returns
Type Description
Intent.Builder

This builder for chaining.

clearId()

public Intent.Builder clearId()

The unique identifier of the intent.

string id = 1;

Returns
Type Description
Intent.Builder

This builder for chaining.

getDefaultInstanceForType()

public Intent getDefaultInstanceForType()
Returns
Type Description
Intent

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The human-readable name of the intent.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name of the intent.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

The unique identifier of the intent.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The unique identifier of the intent.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public Intent.Builder setDisplayName(String value)

The human-readable name of the intent.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Intent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Intent.Builder setDisplayNameBytes(ByteString value)

The human-readable name of the intent.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Intent.Builder

This builder for chaining.

setId(String value)

public Intent.Builder setId(String value)

The unique identifier of the intent.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Intent.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Intent.Builder setIdBytes(ByteString value)

The unique identifier of the intent.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Intent.Builder

This builder for chaining.