Package com.google.logging.v2
Class Link.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
- com.google.logging.v2.Link.Builder
-
- All Implemented Interfaces:
LinkOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Link
public static final class Link.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder> implements LinkOrBuilder
Describes a link connected to an analytics enabled bucket.
Protobuf typegoogle.logging.v2.Link
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Link.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Linkbuild()LinkbuildPartial()Link.Builderclear()Link.BuilderclearBigqueryDataset()The information of a BigQuery Dataset.Link.BuilderclearCreateTime()Output only.Link.BuilderclearDescription()Describes this link.Link.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Link.BuilderclearLifecycleState()Output only.Link.BuilderclearName()The resource name of the link.Link.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Link.Builderclone()BigQueryDatasetgetBigqueryDataset()The information of a BigQuery Dataset.BigQueryDataset.BuildergetBigqueryDatasetBuilder()The information of a BigQuery Dataset.BigQueryDatasetOrBuildergetBigqueryDatasetOrBuilder()The information of a BigQuery Dataset.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.LinkgetDefaultInstanceForType()StringgetDescription()Describes this link.com.google.protobuf.ByteStringgetDescriptionBytes()Describes this link.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LifecycleStategetLifecycleState()Output only.intgetLifecycleStateValue()Output only.StringgetName()The resource name of the link.com.google.protobuf.ByteStringgetNameBytes()The resource name of the link.booleanhasBigqueryDataset()The information of a BigQuery Dataset.booleanhasCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Link.BuildermergeBigqueryDataset(BigQueryDataset value)The information of a BigQuery Dataset.Link.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Link.BuildermergeFrom(Link other)Link.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Link.BuildermergeFrom(com.google.protobuf.Message other)Link.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Link.BuildersetBigqueryDataset(BigQueryDataset value)The information of a BigQuery Dataset.Link.BuildersetBigqueryDataset(BigQueryDataset.Builder builderForValue)The information of a BigQuery Dataset.Link.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Link.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Link.BuildersetDescription(String value)Describes this link.Link.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Describes this link.Link.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Link.BuildersetLifecycleState(LifecycleState value)Output only.Link.BuildersetLifecycleStateValue(int value)Output only.Link.BuildersetName(String value)The resource name of the link.Link.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the link.Link.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Link.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
clear
public Link.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
getDefaultInstanceForType
public Link getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Link build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Link buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Link.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
setField
public Link.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
clearField
public Link.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
clearOneof
public Link.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
setRepeatedField
public Link.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
addRepeatedField
public Link.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
mergeFrom
public Link.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Link.Builder>
-
mergeFrom
public Link.Builder mergeFrom(Link other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
mergeFrom
public Link.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Link.Builder>- Throws:
IOException
-
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_linkstring name = 1;- Specified by:
getNamein interfaceLinkOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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_linkstring name = 1;- Specified by:
getNameBytesin interfaceLinkOrBuilder- Returns:
- The bytes for name.
-
setName
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_linkstring name = 1;- Parameters:
value- The name to set.- Returns:
- 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_linkstring name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Link.Builder setNameBytes(com.google.protobuf.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_linkstring name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Describes this link. The maximum length of the description is 8000 characters.
string description = 2;- Specified by:
getDescriptionin interfaceLinkOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Describes this link. The maximum length of the description is 8000 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfaceLinkOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Link.Builder setDescription(String value)
Describes this link. The maximum length of the description is 8000 characters.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Link.Builder clearDescription()
Describes this link. The maximum length of the description is 8000 characters.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Link.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Describes this link. The maximum length of the description is 8000 characters.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceLinkOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceLinkOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Link.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Link.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Link.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation timestamp of the link.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceLinkOrBuilder
-
getLifecycleStateValue
public int getLifecycleStateValue()
Output only. The resource lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLifecycleStateValuein interfaceLinkOrBuilder- Returns:
- The enum numeric value on the wire for lifecycleState.
-
setLifecycleStateValue
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];- Parameters:
value- The enum numeric value on the wire for lifecycleState to set.- Returns:
- This builder for chaining.
-
getLifecycleState
public LifecycleState getLifecycleState()
Output only. The resource lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLifecycleStatein interfaceLinkOrBuilder- Returns:
- The lifecycleState.
-
setLifecycleState
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];- Parameters:
value- The lifecycleState to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasBigqueryDatasetin interfaceLinkOrBuilder- Returns:
- Whether the bigqueryDataset field is set.
-
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;- Specified by:
getBigqueryDatasetin interfaceLinkOrBuilder- Returns:
- The bigqueryDataset.
-
setBigqueryDataset
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;
-
setBigqueryDataset
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;
-
mergeBigqueryDataset
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;
-
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;
-
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;
-
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;- Specified by:
getBigqueryDatasetOrBuilderin interfaceLinkOrBuilder
-
setUnknownFields
public final Link.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
mergeUnknownFields
public final Link.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
-
-