Class Link.Builder (0.3.0)

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

A link lets a dataset be accessible to BigQuery via usage of linked datasets.

Protobuf type google.cloud.observability.v1.Link

Implements

LinkOrBuilder

Static Methods

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

Methods

public Link build()
Returns
Type Description
Link
public Link buildPartial()
Returns
Type Description
Link
public Link.Builder clear()
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clearCreateTime()

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Link.Builder
public Link.Builder clearDescription()

Optional. Description of the link.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder clearDisplayName()

Optional. A user friendly display name.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder clearName()

Identifier. Name of the link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Link.Builder

This builder for chaining.

public Timestamp getCreateTime()

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder
public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder
public Link getDefaultInstanceForType()
Returns
Type Description
Link
public String getDescription()

Optional. Description of the link.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

public ByteString getDescriptionBytes()

Optional. Description of the link.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

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

Optional. A user friendly display name.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

public ByteString getDisplayNameBytes()

Optional. A user friendly display name.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

public String getName()

Identifier. Name of the link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Identifier. Name of the link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

public boolean hasCreateTime()

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Link.Builder mergeCreateTime(Timestamp value)

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Link.Builder
public Link.Builder mergeFrom(Link other)
Parameter
Name Description
other Link
Returns
Type Description
Link.Builder
public Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link.Builder
Overrides
Exceptions
Type Description
IOException
public Link.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setCreateTime(Timestamp value)

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Link.Builder
public Link.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create timestamp.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Link.Builder
public Link.Builder setDescription(String value)

Optional. Description of the link.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setDescriptionBytes(ByteString value)

Optional. Description of the link.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setDisplayName(String value)

Optional. A user friendly display name.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setDisplayNameBytes(ByteString value)

Optional. A user friendly display name.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setName(String value)

Identifier. Name of the link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setNameBytes(ByteString value)

Identifier. Name of the link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Link.Builder

This builder for chaining.