Class OpenLink.Builder (0.1.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
TypeDescription
Descriptor

Methods

public OpenLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OpenLink.Builder
Overrides
public OpenLink build()
Returns
TypeDescription
OpenLink
public OpenLink buildPartial()
Returns
TypeDescription
OpenLink
public OpenLink.Builder clear()
Returns
TypeDescription
OpenLink.Builder
Overrides
public OpenLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clearUrl()

The URL to open.

string url = 1;

Returns
TypeDescription
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder clone()
Returns
TypeDescription
OpenLink.Builder
Overrides
public OpenLink getDefaultInstanceForType()
Returns
TypeDescription
OpenLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for openAs.

public String getUrl()

The URL to open.

string url = 1;

Returns
TypeDescription
String

The url.

public ByteString getUrlBytes()

The URL to open.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public OpenLink.Builder mergeFrom(OpenLink other)
Parameter
NameDescription
otherOpenLink
Returns
TypeDescription
OpenLink.Builder
public OpenLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OpenLink.Builder
Overrides
Exceptions
TypeDescription
IOException
public OpenLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OpenLink.Builder
Overrides
public final OpenLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OpenLink.Builder
Overrides
public OpenLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueOpenLink.OnClose

The onClose to set.

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

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

Returns
TypeDescription
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
NameDescription
valueOpenLink.OpenAs

The openAs to set.

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

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

Returns
TypeDescription
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OpenLink.Builder
Overrides
public final OpenLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OpenLink.Builder
Overrides
public OpenLink.Builder setUrl(String value)

The URL to open.

string url = 1;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
OpenLink.Builder

This builder for chaining.

public OpenLink.Builder setUrlBytes(ByteString value)

The URL to open.

string url = 1;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
OpenLink.Builder

This builder for chaining.