Class HelpLink.Builder (1.12.1)

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
TypeDescription
Descriptor

Methods

public HelpLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HelpLink.Builder
Overrides
public HelpLink build()
Returns
TypeDescription
HelpLink
public HelpLink buildPartial()
Returns
TypeDescription
HelpLink
public HelpLink.Builder clear()
Returns
TypeDescription
HelpLink.Builder
Overrides
public HelpLink.Builder clearDescription()

Describes what the link offers.

optional string description = 422937596;

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HelpLink.Builder
Overrides
public HelpLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HelpLink.Builder
Overrides
public HelpLink.Builder clearUrl()

The URL of the link.

optional string url = 116079;

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.

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

Describes what the link offers.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

public ByteString getDescriptionBytes()

Describes what the link offers.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public String getUrl()

The URL of the link.

optional string url = 116079;

Returns
TypeDescription
String

The url.

public ByteString getUrlBytes()

The URL of the link.

optional string url = 116079;

Returns
TypeDescription
ByteString

The bytes for url.

public boolean hasDescription()

Describes what the link offers.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

public boolean hasUrl()

The URL of the link.

optional string url = 116079;

Returns
TypeDescription
boolean

Whether the url field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public HelpLink.Builder mergeFrom(HelpLink other)
Parameter
NameDescription
otherHelpLink
Returns
TypeDescription
HelpLink.Builder
public HelpLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HelpLink.Builder
Overrides Exceptions
TypeDescription
IOException
public HelpLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HelpLink.Builder
Overrides
public final HelpLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HelpLink.Builder
Overrides
public HelpLink.Builder setDescription(String value)

Describes what the link offers.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder setDescriptionBytes(ByteString value)

Describes what the link offers.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.

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

The URL of the link.

optional string url = 116079;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.

public HelpLink.Builder setUrlBytes(ByteString value)

The URL of the link.

optional string url = 116079;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
HelpLink.Builder

This builder for chaining.