Class ActionResponse.UpdatedWidget.Builder (0.16.0)

public static final class ActionResponse.UpdatedWidget.Builder extends GeneratedMessageV3.Builder<ActionResponse.UpdatedWidget.Builder> implements ActionResponse.UpdatedWidgetOrBuilder

The response of the updated widget. Used to provide autocomplete options for a widget.

Protobuf type google.chat.v1.ActionResponse.UpdatedWidget

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ActionResponse.UpdatedWidget build()
Returns
Type Description
ActionResponse.UpdatedWidget

buildPartial()

public ActionResponse.UpdatedWidget buildPartial()
Returns
Type Description
ActionResponse.UpdatedWidget

clear()

public ActionResponse.UpdatedWidget.Builder clear()
Returns
Type Description
ActionResponse.UpdatedWidget.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSuggestions()

public ActionResponse.UpdatedWidget.Builder clearSuggestions()

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Returns
Type Description
ActionResponse.UpdatedWidget.Builder

clearUpdatedWidget()

public ActionResponse.UpdatedWidget.Builder clearUpdatedWidget()
Returns
Type Description
ActionResponse.UpdatedWidget.Builder

clearWidget()

public ActionResponse.UpdatedWidget.Builder clearWidget()

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

string widget = 2;

Returns
Type Description
ActionResponse.UpdatedWidget.Builder

This builder for chaining.

clone()

public ActionResponse.UpdatedWidget.Builder clone()
Returns
Type Description
ActionResponse.UpdatedWidget.Builder
Overrides

getDefaultInstanceForType()

public ActionResponse.UpdatedWidget getDefaultInstanceForType()
Returns
Type Description
ActionResponse.UpdatedWidget

getDescriptorForType()

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

getSuggestions()

public ActionResponse.SelectionItems getSuggestions()

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Returns
Type Description
ActionResponse.SelectionItems

The suggestions.

getSuggestionsBuilder()

public ActionResponse.SelectionItems.Builder getSuggestionsBuilder()

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Returns
Type Description
ActionResponse.SelectionItems.Builder

getSuggestionsOrBuilder()

public ActionResponse.SelectionItemsOrBuilder getSuggestionsOrBuilder()

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Returns
Type Description
ActionResponse.SelectionItemsOrBuilder

getUpdatedWidgetCase()

public ActionResponse.UpdatedWidget.UpdatedWidgetCase getUpdatedWidgetCase()
Returns
Type Description
ActionResponse.UpdatedWidget.UpdatedWidgetCase

getWidget()

public String getWidget()

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

string widget = 2;

Returns
Type Description
String

The widget.

getWidgetBytes()

public ByteString getWidgetBytes()

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

string widget = 2;

Returns
Type Description
ByteString

The bytes for widget.

hasSuggestions()

public boolean hasSuggestions()

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Returns
Type Description
boolean

Whether the suggestions field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ActionResponse.UpdatedWidget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSuggestions(ActionResponse.SelectionItems value)

public ActionResponse.UpdatedWidget.Builder mergeSuggestions(ActionResponse.SelectionItems value)

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Parameter
Name Description
value ActionResponse.SelectionItems
Returns
Type Description
ActionResponse.UpdatedWidget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.UpdatedWidget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ActionResponse.UpdatedWidget.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSuggestions(ActionResponse.SelectionItems value)

public ActionResponse.UpdatedWidget.Builder setSuggestions(ActionResponse.SelectionItems value)

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Parameter
Name Description
value ActionResponse.SelectionItems
Returns
Type Description
ActionResponse.UpdatedWidget.Builder

setSuggestions(ActionResponse.SelectionItems.Builder builderForValue)

public ActionResponse.UpdatedWidget.Builder setSuggestions(ActionResponse.SelectionItems.Builder builderForValue)

List of widget autocomplete results

.google.chat.v1.ActionResponse.SelectionItems suggestions = 1;

Parameter
Name Description
builderForValue ActionResponse.SelectionItems.Builder
Returns
Type Description
ActionResponse.UpdatedWidget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWidget(String value)

public ActionResponse.UpdatedWidget.Builder setWidget(String value)

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

string widget = 2;

Parameter
Name Description
value String

The widget to set.

Returns
Type Description
ActionResponse.UpdatedWidget.Builder

This builder for chaining.

setWidgetBytes(ByteString value)

public ActionResponse.UpdatedWidget.Builder setWidgetBytes(ByteString value)

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

string widget = 2;

Parameter
Name Description
value ByteString

The bytes for widget to set.

Returns
Type Description
ActionResponse.UpdatedWidget.Builder

This builder for chaining.