Package com.google.logging.v2
Class LogBucket.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
- com.google.logging.v2.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 typegoogle.logging.v2.LogBucket
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogBucket.BuilderaddAllIndexConfigs(Iterable<? extends IndexConfig> values)A list of indexed fields and related configuration data.LogBucket.BuilderaddAllRestrictedFields(Iterable<String> values)Log entry field paths that are denied access in this bucket.LogBucket.BuilderaddIndexConfigs(int index, IndexConfig value)A list of indexed fields and related configuration data.LogBucket.BuilderaddIndexConfigs(int index, IndexConfig.Builder builderForValue)A list of indexed fields and related configuration data.LogBucket.BuilderaddIndexConfigs(IndexConfig value)A list of indexed fields and related configuration data.LogBucket.BuilderaddIndexConfigs(IndexConfig.Builder builderForValue)A list of indexed fields and related configuration data.IndexConfig.BuilderaddIndexConfigsBuilder()A list of indexed fields and related configuration data.IndexConfig.BuilderaddIndexConfigsBuilder(int index)A list of indexed fields and related configuration data.LogBucket.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogBucket.BuilderaddRestrictedFields(String value)Log entry field paths that are denied access in this bucket.LogBucket.BuilderaddRestrictedFieldsBytes(com.google.protobuf.ByteString value)Log entry field paths that are denied access in this bucket.LogBucketbuild()LogBucketbuildPartial()LogBucket.Builderclear()LogBucket.BuilderclearAnalyticsEnabled()Whether log analytics is enabled for this bucket.LogBucket.BuilderclearCmekSettings()The CMEK settings of the log bucket.LogBucket.BuilderclearCreateTime()Output only.LogBucket.BuilderclearDescription()Describes this bucket.LogBucket.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogBucket.BuilderclearIndexConfigs()A list of indexed fields and related configuration data.LogBucket.BuilderclearLifecycleState()Output only.LogBucket.BuilderclearLocked()Whether the bucket is locked.LogBucket.BuilderclearName()Output only.LogBucket.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogBucket.BuilderclearRestrictedFields()Log entry field paths that are denied access in this bucket.LogBucket.BuilderclearRetentionDays()Logs will be retained by default for this amount of time, after which they will automatically be deleted.LogBucket.BuilderclearUpdateTime()Output only.LogBucket.Builderclone()booleangetAnalyticsEnabled()Whether log analytics is enabled for this bucket.CmekSettingsgetCmekSettings()The CMEK settings of the log bucket.CmekSettings.BuildergetCmekSettingsBuilder()The CMEK settings of the log bucket.CmekSettingsOrBuildergetCmekSettingsOrBuilder()The CMEK settings of the log bucket.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.LogBucketgetDefaultInstanceForType()StringgetDescription()Describes this bucket.com.google.protobuf.ByteStringgetDescriptionBytes()Describes this bucket.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()IndexConfiggetIndexConfigs(int index)A list of indexed fields and related configuration data.IndexConfig.BuildergetIndexConfigsBuilder(int index)A list of indexed fields and related configuration data.List<IndexConfig.Builder>getIndexConfigsBuilderList()A list of indexed fields and related configuration data.intgetIndexConfigsCount()A list of indexed fields and related configuration data.List<IndexConfig>getIndexConfigsList()A list of indexed fields and related configuration data.IndexConfigOrBuildergetIndexConfigsOrBuilder(int index)A list of indexed fields and related configuration data.List<? extends IndexConfigOrBuilder>getIndexConfigsOrBuilderList()A list of indexed fields and related configuration data.LifecycleStategetLifecycleState()Output only.intgetLifecycleStateValue()Output only.booleangetLocked()Whether the bucket is locked.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetRestrictedFields(int index)Log entry field paths that are denied access in this bucket.com.google.protobuf.ByteStringgetRestrictedFieldsBytes(int index)Log entry field paths that are denied access in this bucket.intgetRestrictedFieldsCount()Log entry field paths that are denied access in this bucket.com.google.protobuf.ProtocolStringListgetRestrictedFieldsList()Log entry field paths that are denied access in this bucket.intgetRetentionDays()Logs will be retained by default for this amount of time, after which they will automatically be deleted.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCmekSettings()The CMEK settings of the log bucket.booleanhasCreateTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogBucket.BuildermergeCmekSettings(CmekSettings value)The CMEK settings of the log bucket.LogBucket.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.LogBucket.BuildermergeFrom(LogBucket other)LogBucket.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogBucket.BuildermergeFrom(com.google.protobuf.Message other)LogBucket.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogBucket.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.LogBucket.BuilderremoveIndexConfigs(int index)A list of indexed fields and related configuration data.LogBucket.BuildersetAnalyticsEnabled(boolean value)Whether log analytics is enabled for this bucket.LogBucket.BuildersetCmekSettings(CmekSettings value)The CMEK settings of the log bucket.LogBucket.BuildersetCmekSettings(CmekSettings.Builder builderForValue)The CMEK settings of the log bucket.LogBucket.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.LogBucket.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.LogBucket.BuildersetDescription(String value)Describes this bucket.LogBucket.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Describes this bucket.LogBucket.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogBucket.BuildersetIndexConfigs(int index, IndexConfig value)A list of indexed fields and related configuration data.LogBucket.BuildersetIndexConfigs(int index, IndexConfig.Builder builderForValue)A list of indexed fields and related configuration data.LogBucket.BuildersetLifecycleState(LifecycleState value)Output only.LogBucket.BuildersetLifecycleStateValue(int value)Output only.LogBucket.BuildersetLocked(boolean value)Whether the bucket is locked.LogBucket.BuildersetName(String value)Output only.LogBucket.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.LogBucket.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LogBucket.BuildersetRestrictedFields(int index, String value)Log entry field paths that are denied access in this bucket.LogBucket.BuildersetRetentionDays(int value)Logs will be retained by default for this amount of time, after which they will automatically be deleted.LogBucket.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogBucket.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.LogBucket.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
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<LogBucket.Builder>
-
clear
public LogBucket.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<LogBucket.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<LogBucket.Builder>
-
getDefaultInstanceForType
public LogBucket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogBucket build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogBucket buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogBucket.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<LogBucket.Builder>
-
setField
public LogBucket.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<LogBucket.Builder>
-
clearField
public LogBucket.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
clearOneof
public LogBucket.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
setRepeatedField
public LogBucket.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<LogBucket.Builder>
-
addRepeatedField
public LogBucket.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<LogBucket.Builder>
-
mergeFrom
public LogBucket.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogBucket.Builder>
-
mergeFrom
public LogBucket.Builder mergeFrom(LogBucket other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getNamein interfaceLogBucketOrBuilder- 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:
getNameBytesin interfaceLogBucketOrBuilder- 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.
-
getDescription
public String getDescription()
Describes this bucket.
string description = 3;- Specified by:
getDescriptionin interfaceLogBucketOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Describes this bucket.
string description = 3;- Specified by:
getDescriptionBytesin interfaceLogBucketOrBuilder- 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:
hasCreateTimein interfaceLogBucketOrBuilder- 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:
getCreateTimein interfaceLogBucketOrBuilder- 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:
getCreateTimeOrBuilderin interfaceLogBucketOrBuilder
-
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:
hasUpdateTimein interfaceLogBucketOrBuilder- 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:
getUpdateTimein interfaceLogBucketOrBuilder- 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:
getUpdateTimeOrBuilderin interfaceLogBucketOrBuilder
-
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:
getRetentionDaysin interfaceLogBucketOrBuilder- 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:
getLockedin interfaceLogBucketOrBuilder- 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:
getLifecycleStateValuein interfaceLogBucketOrBuilder- 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:
getLifecycleStatein interfaceLogBucketOrBuilder- 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:
getAnalyticsEnabledin interfaceLogBucketOrBuilder- 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:
getRestrictedFieldsListin interfaceLogBucketOrBuilder- 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:
getRestrictedFieldsCountin interfaceLogBucketOrBuilder- 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:
getRestrictedFieldsin interfaceLogBucketOrBuilder- 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:
getRestrictedFieldsBytesin interfaceLogBucketOrBuilder- 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.
-
getIndexConfigsList
public List<IndexConfig> getIndexConfigsList()
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsListin interfaceLogBucketOrBuilder
-
getIndexConfigsCount
public int getIndexConfigsCount()
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsCountin interfaceLogBucketOrBuilder
-
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:
getIndexConfigsin interfaceLogBucketOrBuilder
-
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;
-
getIndexConfigsOrBuilder
public IndexConfigOrBuilder getIndexConfigsOrBuilder(int index)
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderin interfaceLogBucketOrBuilder
-
getIndexConfigsOrBuilderList
public List<? extends IndexConfigOrBuilder> getIndexConfigsOrBuilderList()
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderListin interfaceLogBucketOrBuilder
-
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:
hasCmekSettingsin interfaceLogBucketOrBuilder- 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:
getCmekSettingsin interfaceLogBucketOrBuilder- 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:
getCmekSettingsOrBuilderin interfaceLogBucketOrBuilder
-
setUnknownFields
public final LogBucket.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
mergeUnknownFields
public final LogBucket.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
-