Class LogBucket.Builder

  • All Implemented Interfaces:
    LogBucketOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LogBucket

    public static final class LogBucket.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
    implements LogBucketOrBuilder
     Describes a repository in which log entries are stored.
     
    Protobuf type google.logging.v2.LogBucket
    • 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<LogBucket.Builder>
      • clear

        public LogBucket.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<LogBucket.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<LogBucket.Builder>
      • getDefaultInstanceForType

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

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

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

        public LogBucket.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<LogBucket.Builder>
      • setField

        public LogBucket.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<LogBucket.Builder>
      • clearField

        public LogBucket.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<LogBucket.Builder>
      • clearOneof

        public LogBucket.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<LogBucket.Builder>
      • setRepeatedField

        public LogBucket.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<LogBucket.Builder>
      • addRepeatedField

        public LogBucket.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<LogBucket.Builder>
      • mergeFrom

        public LogBucket.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<LogBucket.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
      • mergeFrom

        public LogBucket.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<LogBucket.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource name of the bucket.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket`
        
         For a list of supported locations, see [Supported
         Regions](https://cloud.google.com/logging/docs/region-support)
        
         For the location of `global` it is unspecified where log entries are
         actually stored.
        
         After a bucket has been created, the location cannot be changed.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface LogBucketOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the bucket.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket`
        
         For a list of supported locations, see [Supported
         Regions](https://cloud.google.com/logging/docs/region-support)
        
         For the location of `global` it is unspecified where log entries are
         actually stored.
        
         After a bucket has been created, the location cannot be changed.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface LogBucketOrBuilder
        Returns:
        The bytes for name.
      • setName

        public LogBucket.Builder setName​(String value)
         Output only. The resource name of the bucket.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket`
        
         For a list of supported locations, see [Supported
         Regions](https://cloud.google.com/logging/docs/region-support)
        
         For the location of `global` it is unspecified where log entries are
         actually stored.
        
         After a bucket has been created, the location cannot be changed.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public LogBucket.Builder clearName()
         Output only. The resource name of the bucket.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket`
        
         For a list of supported locations, see [Supported
         Regions](https://cloud.google.com/logging/docs/region-support)
        
         For the location of `global` it is unspecified where log entries are
         actually stored.
        
         After a bucket has been created, the location cannot be changed.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public LogBucket.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the bucket.
        
         For example:
        
           `projects/my-project/locations/global/buckets/my-bucket`
        
         For a list of supported locations, see [Supported
         Regions](https://cloud.google.com/logging/docs/region-support)
        
         For the location of `global` it is unspecified where log entries are
         actually stored.
        
         After a bucket has been created, the location cannot be changed.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Describes this bucket.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface LogBucketOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public LogBucket.Builder setDescription​(String value)
         Describes this bucket.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public LogBucket.Builder clearDescription()
         Describes this bucket.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public LogBucket.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Describes this bucket.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface LogBucketOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface LogBucketOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public LogBucket.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public LogBucket.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public LogBucket.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public LogBucket.Builder clearCreateTime()
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The creation timestamp of the bucket. This is not set for any
         of the default buckets.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface LogBucketOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface LogBucketOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface LogBucketOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public LogBucket.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public LogBucket.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public LogBucket.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public LogBucket.Builder clearUpdateTime()
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last update timestamp of the bucket.
         
        .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface LogBucketOrBuilder
      • getRetentionDays

        public int getRetentionDays()
         Logs will be retained by default for this amount of time, after which they
         will automatically be deleted. The minimum retention period is 1 day. If
         this value is set to zero at bucket creation time, the default time of 30
         days will be used.
         
        int32 retention_days = 11;
        Specified by:
        getRetentionDays in interface LogBucketOrBuilder
        Returns:
        The retentionDays.
      • setRetentionDays

        public LogBucket.Builder setRetentionDays​(int value)
         Logs will be retained by default for this amount of time, after which they
         will automatically be deleted. The minimum retention period is 1 day. If
         this value is set to zero at bucket creation time, the default time of 30
         days will be used.
         
        int32 retention_days = 11;
        Parameters:
        value - The retentionDays to set.
        Returns:
        This builder for chaining.
      • clearRetentionDays

        public LogBucket.Builder clearRetentionDays()
         Logs will be retained by default for this amount of time, after which they
         will automatically be deleted. The minimum retention period is 1 day. If
         this value is set to zero at bucket creation time, the default time of 30
         days will be used.
         
        int32 retention_days = 11;
        Returns:
        This builder for chaining.
      • getLocked

        public boolean getLocked()
         Whether the bucket is locked.
        
         The retention period on a locked bucket cannot be changed. Locked buckets
         may only be deleted if they are empty.
         
        bool locked = 9;
        Specified by:
        getLocked in interface LogBucketOrBuilder
        Returns:
        The locked.
      • setLocked

        public LogBucket.Builder setLocked​(boolean value)
         Whether the bucket is locked.
        
         The retention period on a locked bucket cannot be changed. Locked buckets
         may only be deleted if they are empty.
         
        bool locked = 9;
        Parameters:
        value - The locked to set.
        Returns:
        This builder for chaining.
      • clearLocked

        public LogBucket.Builder clearLocked()
         Whether the bucket is locked.
        
         The retention period on a locked bucket cannot be changed. Locked buckets
         may only be deleted if they are empty.
         
        bool locked = 9;
        Returns:
        This builder for chaining.
      • getLifecycleStateValue

        public int getLifecycleStateValue()
         Output only. The bucket lifecycle state.
         
        .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLifecycleStateValue in interface LogBucketOrBuilder
        Returns:
        The enum numeric value on the wire for lifecycleState.
      • setLifecycleStateValue

        public LogBucket.Builder setLifecycleStateValue​(int value)
         Output only. The bucket lifecycle state.
         
        .google.logging.v2.LifecycleState lifecycle_state = 12 [(.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 bucket lifecycle state.
         
        .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLifecycleState in interface LogBucketOrBuilder
        Returns:
        The lifecycleState.
      • setLifecycleState

        public LogBucket.Builder setLifecycleState​(LifecycleState value)
         Output only. The bucket lifecycle state.
         
        .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The lifecycleState to set.
        Returns:
        This builder for chaining.
      • clearLifecycleState

        public LogBucket.Builder clearLifecycleState()
         Output only. The bucket lifecycle state.
         
        .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getAnalyticsEnabled

        public boolean getAnalyticsEnabled()
         Whether log analytics is enabled for this bucket.
        
         Once enabled, log analytics features cannot be disabled.
         
        bool analytics_enabled = 14;
        Specified by:
        getAnalyticsEnabled in interface LogBucketOrBuilder
        Returns:
        The analyticsEnabled.
      • setAnalyticsEnabled

        public LogBucket.Builder setAnalyticsEnabled​(boolean value)
         Whether log analytics is enabled for this bucket.
        
         Once enabled, log analytics features cannot be disabled.
         
        bool analytics_enabled = 14;
        Parameters:
        value - The analyticsEnabled to set.
        Returns:
        This builder for chaining.
      • clearAnalyticsEnabled

        public LogBucket.Builder clearAnalyticsEnabled()
         Whether log analytics is enabled for this bucket.
        
         Once enabled, log analytics features cannot be disabled.
         
        bool analytics_enabled = 14;
        Returns:
        This builder for chaining.
      • getRestrictedFieldsList

        public com.google.protobuf.ProtocolStringList getRestrictedFieldsList()
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Specified by:
        getRestrictedFieldsList in interface LogBucketOrBuilder
        Returns:
        A list containing the restrictedFields.
      • getRestrictedFieldsCount

        public int getRestrictedFieldsCount()
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Specified by:
        getRestrictedFieldsCount in interface LogBucketOrBuilder
        Returns:
        The count of restrictedFields.
      • getRestrictedFields

        public String getRestrictedFields​(int index)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Specified by:
        getRestrictedFields in interface LogBucketOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The restrictedFields at the given index.
      • getRestrictedFieldsBytes

        public com.google.protobuf.ByteString getRestrictedFieldsBytes​(int index)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Specified by:
        getRestrictedFieldsBytes in interface LogBucketOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the restrictedFields at the given index.
      • setRestrictedFields

        public LogBucket.Builder setRestrictedFields​(int index,
                                                     String value)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Parameters:
        index - The index to set the value at.
        value - The restrictedFields to set.
        Returns:
        This builder for chaining.
      • addRestrictedFields

        public LogBucket.Builder addRestrictedFields​(String value)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Parameters:
        value - The restrictedFields to add.
        Returns:
        This builder for chaining.
      • addAllRestrictedFields

        public LogBucket.Builder addAllRestrictedFields​(Iterable<String> values)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Parameters:
        values - The restrictedFields to add.
        Returns:
        This builder for chaining.
      • clearRestrictedFields

        public LogBucket.Builder clearRestrictedFields()
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Returns:
        This builder for chaining.
      • addRestrictedFieldsBytes

        public LogBucket.Builder addRestrictedFieldsBytes​(com.google.protobuf.ByteString value)
         Log entry field paths that are denied access in this bucket.
        
         The following fields and their children are eligible: `textPayload`,
         `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
        
         Restricting a repeated field will restrict all values. Adding a parent will
         block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
         
        repeated string restricted_fields = 15;
        Parameters:
        value - The bytes of the restrictedFields to add.
        Returns:
        This builder for chaining.
      • getIndexConfigsCount

        public int getIndexConfigsCount()
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
        Specified by:
        getIndexConfigsCount in interface LogBucketOrBuilder
      • getIndexConfigs

        public IndexConfig getIndexConfigs​(int index)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
        Specified by:
        getIndexConfigs in interface LogBucketOrBuilder
      • setIndexConfigs

        public LogBucket.Builder setIndexConfigs​(int index,
                                                 IndexConfig value)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • setIndexConfigs

        public LogBucket.Builder setIndexConfigs​(int index,
                                                 IndexConfig.Builder builderForValue)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigs

        public LogBucket.Builder addIndexConfigs​(IndexConfig value)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigs

        public LogBucket.Builder addIndexConfigs​(int index,
                                                 IndexConfig value)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigs

        public LogBucket.Builder addIndexConfigs​(IndexConfig.Builder builderForValue)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigs

        public LogBucket.Builder addIndexConfigs​(int index,
                                                 IndexConfig.Builder builderForValue)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addAllIndexConfigs

        public LogBucket.Builder addAllIndexConfigs​(Iterable<? extends IndexConfig> values)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • clearIndexConfigs

        public LogBucket.Builder clearIndexConfigs()
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • removeIndexConfigs

        public LogBucket.Builder removeIndexConfigs​(int index)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • getIndexConfigsBuilder

        public IndexConfig.Builder getIndexConfigsBuilder​(int index)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigsBuilder

        public IndexConfig.Builder addIndexConfigsBuilder()
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • addIndexConfigsBuilder

        public IndexConfig.Builder addIndexConfigsBuilder​(int index)
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • getIndexConfigsBuilderList

        public List<IndexConfig.Builder> getIndexConfigsBuilderList()
         A list of indexed fields and related configuration data.
         
        repeated .google.logging.v2.IndexConfig index_configs = 17;
      • hasCmekSettings

        public boolean hasCmekSettings()
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
        Specified by:
        hasCmekSettings in interface LogBucketOrBuilder
        Returns:
        Whether the cmekSettings field is set.
      • getCmekSettings

        public CmekSettings getCmekSettings()
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
        Specified by:
        getCmekSettings in interface LogBucketOrBuilder
        Returns:
        The cmekSettings.
      • setCmekSettings

        public LogBucket.Builder setCmekSettings​(CmekSettings value)
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
      • setCmekSettings

        public LogBucket.Builder setCmekSettings​(CmekSettings.Builder builderForValue)
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
      • mergeCmekSettings

        public LogBucket.Builder mergeCmekSettings​(CmekSettings value)
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
      • clearCmekSettings

        public LogBucket.Builder clearCmekSettings()
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
      • getCmekSettingsBuilder

        public CmekSettings.Builder getCmekSettingsBuilder()
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
      • getCmekSettingsOrBuilder

        public CmekSettingsOrBuilder getCmekSettingsOrBuilder()
         The CMEK settings of the log bucket. If present, new log entries written to
         this log bucket are encrypted using the CMEK key provided in this
         configuration. If a log bucket has CMEK settings, the CMEK settings cannot
         be disabled later by updating the log bucket. Changing the KMS key is
         allowed.
         
        .google.logging.v2.CmekSettings cmek_settings = 19;
        Specified by:
        getCmekSettingsOrBuilder in interface LogBucketOrBuilder
      • setUnknownFields

        public final LogBucket.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<LogBucket.Builder>
      • mergeUnknownFields

        public final LogBucket.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<LogBucket.Builder>