Class Link.Builder (3.20.4)

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

Describes a link connected to an analytics enabled bucket.

Protobuf type google.logging.v2.Link

Implements

LinkOrBuilder

Static Methods

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

Methods

public Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Link.Builder
Overrides
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 clearBigqueryDataset()

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

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

Output only. The creation timestamp of the link.

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

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

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clearLifecycleState()

Output only. The resource lifecycle state.

.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder clearName()

The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

For example:

`projects/my-project/locations/global/buckets/my-bucket/links/my_link

string name = 1;

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clone()
Returns
Type Description
Link.Builder
Overrides
public BigQueryDataset getBigqueryDataset()

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Returns
Type Description
BigQueryDataset

The bigqueryDataset.

public BigQueryDataset.Builder getBigqueryDatasetBuilder()

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Returns
Type Description
BigQueryDataset.Builder
public BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder()

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Returns
Type Description
BigQueryDatasetOrBuilder
public Timestamp getCreateTime()

Output only. The creation timestamp of the link.

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

Returns
Type Description
Timestamp

The createTime.

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of the link.

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

Returns
Type Description
Builder
public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of the link.

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

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

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Returns
Type Description
String

The description.

public ByteString getDescriptionBytes()

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

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

Output only. The resource lifecycle state.

.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
LifecycleState

The lifecycleState.

public int getLifecycleStateValue()

Output only. The resource lifecycle state.

.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for lifecycleState.

public String getName()

The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

For example:

`projects/my-project/locations/global/buckets/my-bucket/links/my_link

string name = 1;

Returns
Type Description
String

The name.

public ByteString getNameBytes()

The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

For example:

`projects/my-project/locations/global/buckets/my-bucket/links/my_link

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

public boolean hasBigqueryDataset()

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Returns
Type Description
boolean

Whether the bigqueryDataset field is set.

public boolean hasCreateTime()

Output only. The creation timestamp of the link.

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

Returns
Type Description
boolean

Whether the createTime field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Link.Builder mergeBigqueryDataset(BigQueryDataset value)

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Parameter
Name Description
value BigQueryDataset
Returns
Type Description
Link.Builder
public Link.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of the link.

.google.protobuf.Timestamp create_time = 3 [(.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 final Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setBigqueryDataset(BigQueryDataset value)

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

Parameter
Name Description
value BigQueryDataset
Returns
Type Description
Link.Builder
public Link.Builder setBigqueryDataset(BigQueryDataset.Builder builderForValue)

The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket.

.google.logging.v2.BigQueryDataset bigquery_dataset = 5;

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

Output only. The creation timestamp of the link.

.google.protobuf.Timestamp create_time = 3 [(.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. The creation timestamp of the link.

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

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

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setDescriptionBytes(ByteString value)

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setLifecycleState(LifecycleState value)

Output only. The resource lifecycle state.

.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value LifecycleState

The lifecycleState to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setLifecycleStateValue(int value)

Output only. The resource lifecycle state.

.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for lifecycleState to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setName(String value)

The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

For example:

`projects/my-project/locations/global/buckets/my-bucket/links/my_link

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setNameBytes(ByteString value)

The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it.

 "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
 "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"

For example:

`projects/my-project/locations/global/buckets/my-bucket/links/my_link

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Link.Builder

This builder for chaining.

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