Class Agent.PersonalizationSettings.Builder (0.64.0)

public static final class Agent.PersonalizationSettings.Builder extends GeneratedMessageV3.Builder<Agent.PersonalizationSettings.Builder> implements Agent.PersonalizationSettingsOrBuilder

Settings for end user personalization.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Agent.PersonalizationSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Agent.PersonalizationSettings build()
Returns
Type Description
Agent.PersonalizationSettings

buildPartial()

public Agent.PersonalizationSettings buildPartial()
Returns
Type Description
Agent.PersonalizationSettings

clear()

public Agent.PersonalizationSettings.Builder clear()
Returns
Type Description
Agent.PersonalizationSettings.Builder
Overrides

clearDefaultEndUserMetadata()

public Agent.PersonalizationSettings.Builder clearDefaultEndUserMetadata()

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Agent.PersonalizationSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Agent.PersonalizationSettings.Builder clone()
Returns
Type Description
Agent.PersonalizationSettings.Builder
Overrides

getDefaultEndUserMetadata()

public Struct getDefaultEndUserMetadata()

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The defaultEndUserMetadata.

getDefaultEndUserMetadataBuilder()

public Struct.Builder getDefaultEndUserMetadataBuilder()

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getDefaultEndUserMetadataOrBuilder()

public StructOrBuilder getDefaultEndUserMetadataOrBuilder()

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public Agent.PersonalizationSettings getDefaultInstanceForType()
Returns
Type Description
Agent.PersonalizationSettings

getDescriptorForType()

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

hasDefaultEndUserMetadata()

public boolean hasDefaultEndUserMetadata()

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the defaultEndUserMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultEndUserMetadata(Struct value)

public Agent.PersonalizationSettings.Builder mergeDefaultEndUserMetadata(Struct value)

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
Agent.PersonalizationSettings.Builder

mergeFrom(Agent.PersonalizationSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Agent.PersonalizationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Agent.PersonalizationSettings.Builder
Overrides

setDefaultEndUserMetadata(Struct value)

public Agent.PersonalizationSettings.Builder setDefaultEndUserMetadata(Struct value)

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
Agent.PersonalizationSettings.Builder

setDefaultEndUserMetadata(Struct.Builder builderForValue)

public Agent.PersonalizationSettings.Builder setDefaultEndUserMetadata(Struct.Builder builderForValue)

Optional. Default end user metadata, used when processing DetectIntent requests. Recommended to be filled as a template instead of hard-coded value, for example { "age": "$session.params.age" }. The data will be merged with the QueryParameters.end_user_metadata in DetectIntentRequest.query_params during query processing.

.google.protobuf.Struct default_end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Agent.PersonalizationSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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