Class AlertPolicy.Documentation.Link.Builder (3.84.0)

public static final class AlertPolicy.Documentation.Link.Builder extends GeneratedMessage.Builder<AlertPolicy.Documentation.Link.Builder> implements AlertPolicy.Documentation.LinkOrBuilder

Links to content such as playbooks, repositories, and other resources.

Protobuf type google.monitoring.v3.AlertPolicy.Documentation.Link

Static Methods

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

Methods

public AlertPolicy.Documentation.Link build()
Returns
Type Description
AlertPolicy.Documentation.Link
public AlertPolicy.Documentation.Link buildPartial()
Returns
Type Description
AlertPolicy.Documentation.Link
public AlertPolicy.Documentation.Link.Builder clear()
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
public AlertPolicy.Documentation.Link.Builder clearDisplayName()

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook".

string display_name = 1;

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.

public AlertPolicy.Documentation.Link.Builder clearUrl()

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}"

string url = 2;

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.

public AlertPolicy.Documentation.Link getDefaultInstanceForType()
Returns
Type Description
AlertPolicy.Documentation.Link
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getDisplayName()

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook".

string display_name = 1;

Returns
Type Description
String

The displayName.

public ByteString getDisplayNameBytes()

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook".

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

public String getUrl()

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}"

string url = 2;

Returns
Type Description
String

The url.

public ByteString getUrlBytes()

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}"

string url = 2;

Returns
Type Description
ByteString

The bytes for url.

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public AlertPolicy.Documentation.Link.Builder mergeFrom(AlertPolicy.Documentation.Link other)
Parameter
Name Description
other AlertPolicy.Documentation.Link
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
public AlertPolicy.Documentation.Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
Exceptions
Type Description
IOException
public AlertPolicy.Documentation.Link.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
public AlertPolicy.Documentation.Link.Builder setDisplayName(String value)

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook".

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.

public AlertPolicy.Documentation.Link.Builder setDisplayNameBytes(ByteString value)

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook".

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.

public AlertPolicy.Documentation.Link.Builder setUrl(String value)

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}"

string url = 2;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.

public AlertPolicy.Documentation.Link.Builder setUrlBytes(ByteString value)

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain.com/playbook?name=${resource.name}"

string url = 2;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
AlertPolicy.Documentation.Link.Builder

This builder for chaining.