Class ActionResponse.UpdatedWidget.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.UpdatedWidget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

build()

public ActionResponse.UpdatedWidget build()
Returns
TypeDescription
ActionResponse.UpdatedWidget

buildPartial()

public ActionResponse.UpdatedWidget buildPartial()
Returns
TypeDescription
ActionResponse.UpdatedWidget

clear()

public ActionResponse.UpdatedWidget.Builder clear()
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ActionResponse.UpdatedWidget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ActionResponse.UpdatedWidget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

clearSuggestions()

public ActionResponse.UpdatedWidget.Builder clearSuggestions()

List of widget autocomplete results

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

Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

clearUpdatedWidget()

public ActionResponse.UpdatedWidget.Builder clearUpdatedWidget()
Returns
TypeDescription
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
TypeDescription
ActionResponse.UpdatedWidget.Builder

This builder for chaining.

clone()

public ActionResponse.UpdatedWidget.Builder clone()
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

getDefaultInstanceForType()

public ActionResponse.UpdatedWidget getDefaultInstanceForType()
Returns
TypeDescription
ActionResponse.UpdatedWidget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSuggestions()

public ActionResponse.SelectionItems getSuggestions()

List of widget autocomplete results

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

Returns
TypeDescription
ActionResponse.SelectionItems

The suggestions.

getSuggestionsBuilder()

public ActionResponse.SelectionItems.Builder getSuggestionsBuilder()

List of widget autocomplete results

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

Returns
TypeDescription
ActionResponse.SelectionItems.Builder

getSuggestionsOrBuilder()

public ActionResponse.SelectionItemsOrBuilder getSuggestionsOrBuilder()

List of widget autocomplete results

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

Returns
TypeDescription
ActionResponse.SelectionItemsOrBuilder

getUpdatedWidgetCase()

public ActionResponse.UpdatedWidget.UpdatedWidgetCase getUpdatedWidgetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for widget.

hasSuggestions()

public boolean hasSuggestions()

List of widget autocomplete results

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

Returns
TypeDescription
boolean

Whether the suggestions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ActionResponse.UpdatedWidget other)

public ActionResponse.UpdatedWidget.Builder mergeFrom(ActionResponse.UpdatedWidget other)
Parameter
NameDescription
otherActionResponse.UpdatedWidget
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ActionResponse.UpdatedWidget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ActionResponse.UpdatedWidget.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueActionResponse.SelectionItems
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.UpdatedWidget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ActionResponse.UpdatedWidget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueActionResponse.SelectionItems
Returns
TypeDescription
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
NameDescription
builderForValueActionResponse.SelectionItems.Builder
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ActionResponse.UpdatedWidget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The widget to set.

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

The bytes for widget to set.

Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

This builder for chaining.