Send feedback
Class Link (3.21.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.21.1 keyboard_arrow_down
public final class Link extends GeneratedMessageV3 implements LinkOrBuilder
Describes a link connected to an analytics enabled bucket.
Protobuf type google.logging.v2.Link
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BIGQUERY_DATASET_FIELD_NUMBER
public static final int BIGQUERY_DATASET_FIELD_NUMBER
Field Value
Type
Description
int
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type
Description
int
LIFECYCLE_STATE_FIELD_NUMBER
public static final int LIFECYCLE_STATE_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Link getDefaultInstance ()
Returns
Type
Description
Link
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Link . Builder newBuilder ()
newBuilder(Link prototype)
public static Link . Builder newBuilder ( Link prototype )
Parameter
Name
Description
prototype
Link
public static Link parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Link
public static Link parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
parseFrom(byte[] data)
public static Link parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Link
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Link parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
parseFrom(ByteString data)
public static Link parseFrom ( ByteString data )
Returns
Type
Description
Link
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Link parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
public static Link parseFrom ( CodedInputStream input )
Returns
Type
Description
Link
public static Link parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
public static Link parseFrom ( InputStream input )
Returns
Type
Description
Link
public static Link parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
parseFrom(ByteBuffer data)
public static Link parseFrom ( ByteBuffer data )
Returns
Type
Description
Link
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Link parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Link
parser()
public static Parser<Link> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getBigqueryDataset()
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;
getBigqueryDatasetOrBuilder()
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;
getCreateTime()
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.
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder ()
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Link getDefaultInstanceForType ()
Returns
Type
Description
Link
getDescription()
public String getDescription ()
Describes this link.
The maximum length of the description is 8000 characters.
string description = 2;
Returns
Type
Description
String
The description.
getDescriptionBytes()
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.
getLifecycleState()
public LifecycleState getLifecycleState ()
Output only. The resource lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLifecycleStateValue()
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.
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.
getNameBytes()
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.
getParserForType()
public Parser<Link> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hasBigqueryDataset()
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.
hasCreateTime()
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Link . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Link . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Link . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]