Class 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 type google.logging.v2.Link
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • clear

        public Link.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • getDefaultInstanceForType

        public Link getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Link build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Link buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Link.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • setField

        public Link.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • clearField

        public Link.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • clearOneof

        public Link.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • setRepeatedField

        public Link.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             int index,
                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • addRepeatedField

        public Link.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • mergeFrom

        public Link.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Link.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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_link
         
        string name = 1;
        Specified by:
        getName in interface LinkOrBuilder
        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_link
         
        string name = 1;
        Specified by:
        getNameBytes in interface LinkOrBuilder
        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_link
         
        string 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_link
         
        string 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_link
         
        string 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:
        getDescription in interface LinkOrBuilder
        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:
        getDescriptionBytes in interface LinkOrBuilder
        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:
        hasCreateTime in interface LinkOrBuilder
        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:
        getCreateTime in interface LinkOrBuilder
        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:
        getCreateTimeOrBuilder in interface LinkOrBuilder
      • 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:
        getLifecycleStateValue in interface LinkOrBuilder
        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:
        getLifecycleState in interface LinkOrBuilder
        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:
        hasBigqueryDataset in interface LinkOrBuilder
        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:
        getBigqueryDataset in interface LinkOrBuilder
        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:
        getBigqueryDatasetOrBuilder in interface LinkOrBuilder
      • setUnknownFields

        public final Link.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>
      • mergeUnknownFields

        public final Link.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Link.Builder>