Class Link (3.15.10)

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
TypeDescription
int
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int LIFECYCLE_STATE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static Link getDefaultInstance()
Returns
TypeDescription
Link
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static Link.Builder newBuilder()
Returns
TypeDescription
Link.Builder
public static Link.Builder newBuilder(Link prototype)
Parameter
NameDescription
prototypeLink
Returns
TypeDescription
Link.Builder
public static Link parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<Link> parser()
Returns
TypeDescription
Parser<Link>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder
public Link getDefaultInstanceForType()
Returns
TypeDescription
Link
public String getDescription()

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Returns
TypeDescription
String

The description.

public ByteString getDescriptionBytes()

Describes this link.

The maximum length of the description is 8000 characters.

string description = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

public Parser<Link> getParserForType()
Returns
TypeDescription
Parser<Link>
Overrides
public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

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