Class HelpLink.Builder (1.53.0)

public static final class HelpLink.Builder extends GeneratedMessageV3.Builder<HelpLink.Builder> implements HelpLinkOrBuilder

Describes a URL link.

Protobuf type google.cloud.compute.v1.HelpLink

Implements

HelpLinkOrBuilder

Static Methods

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

Methods

public HelpLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink build()
Returns
Type Description
HelpLink
public HelpLink buildPartial()
Returns
Type Description
HelpLink
public HelpLink.Builder clear()
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink.Builder clearDescription()

Describes what the link offers.

optional string description = 422937596;

Returns
Type Description
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink.Builder clearUrl()

The URL of the link.

optional string url = 116079;

Returns
Type Description
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder clone()
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink getDefaultInstanceForType()
Returns
Type Description
HelpLink
public String getDescription()

Describes what the link offers.

optional string description = 422937596;

Returns
Type Description
String

The description.

public ByteString getDescriptionBytes()

Describes what the link offers.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public String getUrl()

The URL of the link.

optional string url = 116079;

Returns
Type Description
String

The url.

public ByteString getUrlBytes()

The URL of the link.

optional string url = 116079;

Returns
Type Description
ByteString

The bytes for url.

public boolean hasDescription()

Describes what the link offers.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

public boolean hasUrl()

The URL of the link.

optional string url = 116079;

Returns
Type Description
boolean

Whether the url field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public HelpLink.Builder mergeFrom(HelpLink other)
Parameter
Name Description
other HelpLink
Returns
Type Description
HelpLink.Builder
public HelpLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HelpLink.Builder
Overrides
Exceptions
Type Description
IOException
public HelpLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HelpLink.Builder
Overrides
public final HelpLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HelpLink.Builder
Overrides
public HelpLink.Builder setDescription(String value)

Describes what the link offers.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder setDescriptionBytes(ByteString value)

Describes what the link offers.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
HelpLink.Builder

This builder for chaining.

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

The URL of the link.

optional string url = 116079;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder setUrlBytes(ByteString value)

The URL of the link.

optional string url = 116079;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
HelpLink.Builder

This builder for chaining.