Class Intent.Builder (2.43.0)

public static final class Intent.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Intent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Builder
Overrides

clearId()

public Intent.Builder clearId()

The unique identifier of the intent.

string id = 1;

Returns
Type Description
Intent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Intent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Intent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Builder
Overrides