Class AlertPolicy.Documentation.Link.Builder (3.48.0)

public static final class AlertPolicy.Documentation.Link.Builder extends GeneratedMessageV3.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.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
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 clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
public AlertPolicy.Documentation.Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
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.Builder clone()
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
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 GeneratedMessageV3.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 final AlertPolicy.Documentation.Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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 setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
public AlertPolicy.Documentation.Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
public final AlertPolicy.Documentation.Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlertPolicy.Documentation.Link.Builder
Overrides
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.