Class Intent.Message.BasicCard.Button.Builder (4.55.0)

public static final class Intent.Message.BasicCard.Button.Builder extends GeneratedMessageV3.Builder<Intent.Message.BasicCard.Button.Builder> implements Intent.Message.BasicCard.ButtonOrBuilder

The button object that appears at the bottom of a card.

Protobuf type google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.BasicCard.Button build()
Returns
Type Description
Intent.Message.BasicCard.Button

buildPartial()

public Intent.Message.BasicCard.Button buildPartial()
Returns
Type Description
Intent.Message.BasicCard.Button

clear()

public Intent.Message.BasicCard.Button.Builder clear()
Returns
Type Description
Intent.Message.BasicCard.Button.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOpenUriAction()

public Intent.Message.BasicCard.Button.Builder clearOpenUriAction()

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.BasicCard.Button.Builder

clearTitle()

public Intent.Message.BasicCard.Button.Builder clearTitle()

Required. The title of the button.

string title = 1;

Returns
Type Description
Intent.Message.BasicCard.Button.Builder

This builder for chaining.

clone()

public Intent.Message.BasicCard.Button.Builder clone()
Returns
Type Description
Intent.Message.BasicCard.Button.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.BasicCard.Button getDefaultInstanceForType()
Returns
Type Description
Intent.Message.BasicCard.Button

getDescriptorForType()

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

getOpenUriAction()

public Intent.Message.BasicCard.Button.OpenUriAction getOpenUriAction()

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.BasicCard.Button.OpenUriAction

The openUriAction.

getOpenUriActionBuilder()

public Intent.Message.BasicCard.Button.OpenUriAction.Builder getOpenUriActionBuilder()

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.BasicCard.Button.OpenUriAction.Builder

getOpenUriActionOrBuilder()

public Intent.Message.BasicCard.Button.OpenUriActionOrBuilder getOpenUriActionOrBuilder()

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Intent.Message.BasicCard.Button.OpenUriActionOrBuilder

getTitle()

public String getTitle()

Required. The title of the button.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The title of the button.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

hasOpenUriAction()

public boolean hasOpenUriAction()

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the openUriAction field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.BasicCard.Button other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction value)

public Intent.Message.BasicCard.Button.Builder mergeOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction value)

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Intent.Message.BasicCard.Button.OpenUriAction
Returns
Type Description
Intent.Message.BasicCard.Button.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BasicCard.Button.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.BasicCard.Button.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction value)

public Intent.Message.BasicCard.Button.Builder setOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction value)

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Intent.Message.BasicCard.Button.OpenUriAction
Returns
Type Description
Intent.Message.BasicCard.Button.Builder

setOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction.Builder builderForValue)

public Intent.Message.BasicCard.Button.Builder setOpenUriAction(Intent.Message.BasicCard.Button.OpenUriAction.Builder builderForValue)

Required. Action to take when a user taps on the button.

.google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Intent.Message.BasicCard.Button.OpenUriAction.Builder
Returns
Type Description
Intent.Message.BasicCard.Button.Builder

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

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

setTitle(String value)

public Intent.Message.BasicCard.Button.Builder setTitle(String value)

Required. The title of the button.

string title = 1;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Intent.Message.BasicCard.Button.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Intent.Message.BasicCard.Button.Builder setTitleBytes(ByteString value)

Required. The title of the button.

string title = 1;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Intent.Message.BasicCard.Button.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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