Class RelatedUrl.Builder (2.84.0)

public static final class RelatedUrl.Builder extends GeneratedMessage.Builder<RelatedUrl.Builder> implements RelatedUrlOrBuilder

Metadata for any related URL information.

Protobuf type grafeas.v1.RelatedUrl

Implements

RelatedUrlOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public RelatedUrl build()
Returns
Type Description
RelatedUrl

buildPartial()

public RelatedUrl buildPartial()
Returns
Type Description
RelatedUrl

clear()

public RelatedUrl.Builder clear()
Returns
Type Description
RelatedUrl.Builder
Overrides

clearLabel()

public RelatedUrl.Builder clearLabel()

Label to describe usage of the URL.

string label = 2;

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.

clearUrl()

public RelatedUrl.Builder clearUrl()

Specific URL associated with the resource.

string url = 1;

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.

getDefaultInstanceForType()

public RelatedUrl getDefaultInstanceForType()
Returns
Type Description
RelatedUrl

getDescriptorForType()

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

getLabel()

public String getLabel()

Label to describe usage of the URL.

string label = 2;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Label to describe usage of the URL.

string label = 2;

Returns
Type Description
ByteString

The bytes for label.

getUrl()

public String getUrl()

Specific URL associated with the resource.

string url = 1;

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Specific URL associated with the resource.

string url = 1;

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RelatedUrl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RelatedUrl.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RelatedUrl.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RelatedUrl.Builder
Overrides

mergeFrom(RelatedUrl other)

public RelatedUrl.Builder mergeFrom(RelatedUrl other)
Parameter
Name Description
other RelatedUrl
Returns
Type Description
RelatedUrl.Builder

setLabel(String value)

public RelatedUrl.Builder setLabel(String value)

Label to describe usage of the URL.

string label = 2;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public RelatedUrl.Builder setLabelBytes(ByteString value)

Label to describe usage of the URL.

string label = 2;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.

setUrl(String value)

public RelatedUrl.Builder setUrl(String value)

Specific URL associated with the resource.

string url = 1;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public RelatedUrl.Builder setUrlBytes(ByteString value)

Specific URL associated with the resource.

string url = 1;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
RelatedUrl.Builder

This builder for chaining.