Class OpenLink.Builder (2.44.0)

public static final class OpenLink.Builder extends GeneratedMessageV3.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

Implements

OpenLinkOrBuilder

Static Methods

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

Methods

public OpenLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink build()
Returns
Type Description
OpenLink
public OpenLink buildPartial()
Returns
Type Description
OpenLink
public OpenLink.Builder clear()
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink.Builder clearOnClose()

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OnClose on_close = 3;

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink.Builder clearOpenAs()

How to open a link.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OpenAs open_as = 2;

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clearUrl()

The URL to open.

string url = 1;

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clone()
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink getDefaultInstanceForType()
Returns
Type Description
OpenLink
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public OpenLink.OnClose getOnClose()

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OnClose on_close = 3;

Returns
Type Description
OpenLink.OnClose

The onClose.

public int getOnCloseValue()

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OnClose on_close = 3;

Returns
Type Description
int

The enum numeric value on the wire for onClose.

public OpenLink.OpenAs getOpenAs()

How to open a link.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OpenAs open_as = 2;

Returns
Type Description
OpenLink.OpenAs

The openAs.

public int getOpenAsValue()

How to open a link.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OpenAs open_as = 2;

Returns
Type Description
int

The enum numeric value on the wire for openAs.

public String getUrl()

The URL to open.

string url = 1;

Returns
Type Description
String

The url.

public ByteString getUrlBytes()

The URL to open.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public OpenLink.Builder mergeFrom(OpenLink other)
Parameter
Name Description
other OpenLink
Returns
Type Description
OpenLink.Builder
public OpenLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OpenLink.Builder
Overrides
Exceptions
Type Description
IOException
public OpenLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OpenLink.Builder
Overrides
public final OpenLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OpenLink.Builder
Overrides
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 Workspace Add-ons:

.google.apps.card.v1.OpenLink.OnClose on_close = 3;

Parameter
Name Description
value OpenLink.OnClose

The onClose to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setOnCloseValue(int value)

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OnClose on_close = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for onClose to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setOpenAs(OpenLink.OpenAs value)

How to open a link.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OpenAs open_as = 2;

Parameter
Name Description
value OpenLink.OpenAs

The openAs to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setOpenAsValue(int value)

How to open a link.

Google Workspace Add-ons:

.google.apps.card.v1.OpenLink.OpenAs open_as = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for openAs to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OpenLink.Builder
Overrides
public final OpenLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OpenLink.Builder
Overrides
public OpenLink.Builder setUrl(String value)

The URL to open.

string url = 1;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setUrlBytes(ByteString value)

The URL to open.

string url = 1;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
OpenLink.Builder

This builder for chaining.