Class Link (3.18.0)

public final class Link extends GeneratedMessageV3 implements LinkOrBuilder

Describes a link connected to an analytics enabled bucket.

Protobuf type google.logging.v2.Link

Implements

LinkOrBuilder

Static Fields

public static final int BIGQUERY_DATASET_FIELD_NUMBER
Field Value
Type Description
int
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int
public static final int LIFECYCLE_STATE_FIELD_NUMBER
Field Value
Type Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static Link getDefaultInstance()
Returns
Type Description
Link
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static Link.Builder newBuilder()
Returns
Type Description
Link.Builder
public static Link.Builder newBuilder(Link prototype)
Parameter
Name Description
prototype Link
Returns
Type Description
Link.Builder
public static Link parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<Link> parser()
Returns
Type Description
Parser<Link>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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 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 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 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 Parser<Link> getParserForType()
Returns
Type Description
Parser<Link>
Overrides
public int getSerializedSize()
Returns
Type Description
int
Overrides
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.

public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Link.Builder newBuilderForType()
Returns
Type Description
Link.Builder
protected Link.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Link.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public Link.Builder toBuilder()
Returns
Type Description
Link.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException