public static final class OpenLink.Builder extends GeneratedMessage.Builder<OpenLink.Builder> implements OpenLinkOrBuilder Represents an onClick event that opens a hyperlink.
Google Workspace add-ons and Chat apps:
Protobuf type google.apps.card.v1.OpenLink
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > OpenLink.BuilderImplements
OpenLinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public OpenLink build()| Returns | |
|---|---|
| Type | Description |
OpenLink |
|
buildPartial()
public OpenLink buildPartial()| Returns | |
|---|---|
| Type | Description |
OpenLink |
|
clear()
public OpenLink.Builder clear()| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
|
clearOnClose()
public OpenLink.Builder clearOnClose()Whether the client forgets about a link after opening it, or observes it until the window closes.
.google.apps.card.v1.OpenLink.OnClose on_close = 3;
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
clearOpenAs()
public OpenLink.Builder clearOpenAs()| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
clearUrl()
public OpenLink.Builder clearUrl()The URL to open.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public OpenLink getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OpenLink |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getOnClose()
public OpenLink.OnClose getOnClose()Whether the client forgets about a link after opening it, or observes it until the window closes.
.google.apps.card.v1.OpenLink.OnClose on_close = 3;
| Returns | |
|---|---|
| Type | Description |
OpenLink.OnClose |
The onClose. |
getOnCloseValue()
public int getOnCloseValue()Whether the client forgets about a link after opening it, or observes it until the window closes.
.google.apps.card.v1.OpenLink.OnClose on_close = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for onClose. |
getOpenAs()
public OpenLink.OpenAs getOpenAs()| Returns | |
|---|---|
| Type | Description |
OpenLink.OpenAs |
The openAs. |
getOpenAsValue()
public int getOpenAsValue()| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for openAs. |
getUrl()
public String getUrl()The URL to open.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()The URL to open.
string url = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(OpenLink other)
public OpenLink.Builder mergeFrom(OpenLink other)| Parameter | |
|---|---|
| Name | Description |
other |
OpenLink |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OpenLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public OpenLink.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
|
setOnClose(OpenLink.OnClose value)
public OpenLink.Builder setOnClose(OpenLink.OnClose value)Whether the client forgets about a link after opening it, or observes it until the window closes.
.google.apps.card.v1.OpenLink.OnClose on_close = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
OpenLink.OnCloseThe onClose to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
setOnCloseValue(int value)
public OpenLink.Builder setOnCloseValue(int value)Whether the client forgets about a link after opening it, or observes it until the window closes.
.google.apps.card.v1.OpenLink.OnClose on_close = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for onClose to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
setOpenAs(OpenLink.OpenAs value)
public OpenLink.Builder setOpenAs(OpenLink.OpenAs value)| Parameter | |
|---|---|
| Name | Description |
value |
OpenLink.OpenAsThe openAs to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
setOpenAsValue(int value)
public OpenLink.Builder setOpenAsValue(int value)| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for openAs to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
setUrl(String value)
public OpenLink.Builder setUrl(String value)The URL to open.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public OpenLink.Builder setUrlBytes(ByteString value)The URL to open.
string url = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
OpenLink.Builder |
This builder for chaining. |