Class ActionResponse.UpdatedWidget (0.4.0)

public static final class ActionResponse.UpdatedWidget extends GeneratedMessageV3 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 Fields

SUGGESTIONS_FIELD_NUMBER

public static final int SUGGESTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

WIDGET_FIELD_NUMBER

public static final int WIDGET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ActionResponse.UpdatedWidget getDefaultInstance()
Returns
TypeDescription
ActionResponse.UpdatedWidget

getDescriptor()

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

newBuilder()

public static ActionResponse.UpdatedWidget.Builder newBuilder()
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

newBuilder(ActionResponse.UpdatedWidget prototype)

public static ActionResponse.UpdatedWidget.Builder newBuilder(ActionResponse.UpdatedWidget prototype)
Parameter
NameDescription
prototypeActionResponse.UpdatedWidget
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

parseDelimitedFrom(InputStream input)

public static ActionResponse.UpdatedWidget parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ActionResponse.UpdatedWidget parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ActionResponse.UpdatedWidget parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ActionResponse.UpdatedWidget parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ActionResponse.UpdatedWidget parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ActionResponse.UpdatedWidget parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ActionResponse.UpdatedWidget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ActionResponse.UpdatedWidget
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ActionResponse.UpdatedWidget> parser()
Returns
TypeDescription
Parser<UpdatedWidget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<ActionResponse.UpdatedWidget> getParserForType()
Returns
TypeDescription
Parser<UpdatedWidget>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSuggestions()

public ActionResponse.SelectionItems getSuggestions()

List of widget autocomplete results

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

Returns
TypeDescription
ActionResponse.SelectionItems

The suggestions.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ActionResponse.UpdatedWidget.Builder newBuilderForType()
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ActionResponse.UpdatedWidget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ActionResponse.UpdatedWidget.Builder toBuilder()
Returns
TypeDescription
ActionResponse.UpdatedWidget.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException