Class Intent.Message.BasicCard.Button.Builder (4.6.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.v2beta1.Intent.Message.BasicCard.Button

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.BasicCard.Button.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder
Overrides

build()

public Intent.Message.BasicCard.Button build()
Returns
TypeDescription
Intent.Message.BasicCard.Button

buildPartial()

public Intent.Message.BasicCard.Button buildPartial()
Returns
TypeDescription
Intent.Message.BasicCard.Button

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.BasicCard.Button.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.BasicCard.Button.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

clearTitle()

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

Required. The title of the button.

string title = 1;

Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Intent.Message.BasicCard.Button getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.BasicCard.Button

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOpenUriAction()

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

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

.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Returns
TypeDescription
Intent.Message.BasicCard.Button.OpenUriActionOrBuilder

getTitle()

public String getTitle()

Required. The title of the button.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The title of the button.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

hasOpenUriAction()

public boolean hasOpenUriAction()

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

.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Returns
TypeDescription
boolean

Whether the openUriAction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.BasicCard.Button other)

public Intent.Message.BasicCard.Button.Builder mergeFrom(Intent.Message.BasicCard.Button other)
Parameter
NameDescription
otherIntent.Message.BasicCard.Button
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.BasicCard.Button.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Intent.Message.BasicCard.Button.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Parameter
NameDescription
valueIntent.Message.BasicCard.Button.OpenUriAction
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BasicCard.Button.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Parameter
NameDescription
valueIntent.Message.BasicCard.Button.OpenUriAction
Returns
TypeDescription
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.v2beta1.Intent.Message.BasicCard.Button.OpenUriAction open_uri_action = 2;

Parameter
NameDescription
builderForValueIntent.Message.BasicCard.Button.OpenUriAction.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The title to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.BasicCard.Button.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder
Overrides