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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Link.BuilderImplements
LinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Link.Builder |
build()
public Link build()
Returns | |
---|---|
Type | Description |
Link |
buildPartial()
public Link buildPartial()
Returns | |
---|---|
Type | Description |
Link |
clear()
public Link.Builder clear()
Returns | |
---|---|
Type | Description |
Link.Builder |
clearBigqueryDataset()
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 |
clearCreateTime()
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 |
clearDescription()
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. |
clearField(Descriptors.FieldDescriptor field)
public Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Link.Builder |
clearLifecycleState()
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. |
clearName()
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Link.Builder |
clone()
public Link.Builder clone()
Returns | |
---|---|
Type | Description |
Link.Builder |
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;
Returns | |
---|---|
Type | Description |
BigQueryDataset | The bigqueryDataset. |
getBigqueryDatasetBuilder()
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 |
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;
Returns | |
---|---|
Type | Description |
BigQueryDatasetOrBuilder |
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. |
getCreateTimeBuilder()
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 |
getCreateTimeOrBuilder()
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 |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLifecycleState()
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. |
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()
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBigqueryDataset(BigQueryDataset value)
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 |
mergeCreateTime(Timestamp value)
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 |
mergeFrom(Link other)
public Link.Builder mergeFrom(Link other)
Parameter | |
---|---|
Name | Description |
other | Link |
Returns | |
---|---|
Type | Description |
Link.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Link.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Link.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Link.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Link.Builder |
setBigqueryDataset(BigQueryDataset value)
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 |
setBigqueryDataset(BigQueryDataset.Builder builderForValue)
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 |
setCreateTime(Timestamp value)
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 |
setCreateTime(Timestamp.Builder builderForValue)
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 |
setDescription(String value)
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. |
setDescriptionBytes(ByteString value)
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. |
setField(Descriptors.FieldDescriptor field, Object value)
public Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Link.Builder |
setLifecycleState(LifecycleState value)
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. |
setLifecycleStateValue(int value)
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. |
setName(String value)
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. |
setNameBytes(ByteString value)
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Link.Builder |