Class WidgetMarkup.OpenLink.Builder (0.5.0)

public static final class WidgetMarkup.OpenLink.Builder extends GeneratedMessageV3.Builder<WidgetMarkup.OpenLink.Builder> implements WidgetMarkup.OpenLinkOrBuilder

A link that opens a new window.

Protobuf type google.chat.v1.WidgetMarkup.OpenLink

Static Methods

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

Methods

public WidgetMarkup.OpenLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink build()
Returns
TypeDescription
WidgetMarkup.OpenLink
public WidgetMarkup.OpenLink buildPartial()
Returns
TypeDescription
WidgetMarkup.OpenLink
public WidgetMarkup.OpenLink.Builder clear()
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder clearUrl()

The URL to open.

string url = 1;

Returns
TypeDescription
WidgetMarkup.OpenLink.Builder

This builder for chaining.

public WidgetMarkup.OpenLink.Builder clone()
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink getDefaultInstanceForType()
Returns
TypeDescription
WidgetMarkup.OpenLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
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 WidgetMarkup.OpenLink.Builder mergeFrom(WidgetMarkup.OpenLink other)
Parameter
NameDescription
otherWidgetMarkup.OpenLink
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
public WidgetMarkup.OpenLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
Exceptions
TypeDescription
IOException
public WidgetMarkup.OpenLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public final WidgetMarkup.OpenLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public final WidgetMarkup.OpenLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WidgetMarkup.OpenLink.Builder
Overrides
public WidgetMarkup.OpenLink.Builder setUrl(String value)

The URL to open.

string url = 1;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
WidgetMarkup.OpenLink.Builder

This builder for chaining.

public WidgetMarkup.OpenLink.Builder setUrlBytes(ByteString value)

The URL to open.

string url = 1;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
WidgetMarkup.OpenLink.Builder

This builder for chaining.