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.Builder
addAllIndexConfigs(Iterable<? extends IndexConfig> values)
A list of indexed fields and related configuration data.LogBucket.Builder
addAllRestrictedFields(Iterable<String> values)
Log entry field paths that are denied access in this bucket.LogBucket.Builder
addIndexConfigs(int index, IndexConfig value)
A list of indexed fields and related configuration data.LogBucket.Builder
addIndexConfigs(int index, IndexConfig.Builder builderForValue)
A list of indexed fields and related configuration data.LogBucket.Builder
addIndexConfigs(IndexConfig value)
A list of indexed fields and related configuration data.LogBucket.Builder
addIndexConfigs(IndexConfig.Builder builderForValue)
A list of indexed fields and related configuration data.IndexConfig.Builder
addIndexConfigsBuilder()
A list of indexed fields and related configuration data.IndexConfig.Builder
addIndexConfigsBuilder(int index)
A list of indexed fields and related configuration data.LogBucket.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LogBucket.Builder
addRestrictedFields(String value)
Log entry field paths that are denied access in this bucket.LogBucket.Builder
addRestrictedFieldsBytes(com.google.protobuf.ByteString value)
Log entry field paths that are denied access in this bucket.LogBucket
build()
LogBucket
buildPartial()
LogBucket.Builder
clear()
LogBucket.Builder
clearAnalyticsEnabled()
Whether log analytics is enabled for this bucket.LogBucket.Builder
clearCmekSettings()
The CMEK settings of the log bucket.LogBucket.Builder
clearCreateTime()
Output only.LogBucket.Builder
clearDescription()
Describes this bucket.LogBucket.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
LogBucket.Builder
clearIndexConfigs()
A list of indexed fields and related configuration data.LogBucket.Builder
clearLifecycleState()
Output only.LogBucket.Builder
clearLocked()
Whether the bucket is locked.LogBucket.Builder
clearName()
Output only.LogBucket.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
LogBucket.Builder
clearRestrictedFields()
Log entry field paths that are denied access in this bucket.LogBucket.Builder
clearRetentionDays()
Logs will be retained by default for this amount of time, after which they will automatically be deleted.LogBucket.Builder
clearUpdateTime()
Output only.LogBucket.Builder
clone()
boolean
getAnalyticsEnabled()
Whether log analytics is enabled for this bucket.CmekSettings
getCmekSettings()
The CMEK settings of the log bucket.CmekSettings.Builder
getCmekSettingsBuilder()
The CMEK settings of the log bucket.CmekSettingsOrBuilder
getCmekSettingsOrBuilder()
The CMEK settings of the log bucket.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.LogBucket
getDefaultInstanceForType()
String
getDescription()
Describes this bucket.com.google.protobuf.ByteString
getDescriptionBytes()
Describes this bucket.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
IndexConfig
getIndexConfigs(int index)
A list of indexed fields and related configuration data.IndexConfig.Builder
getIndexConfigsBuilder(int index)
A list of indexed fields and related configuration data.List<IndexConfig.Builder>
getIndexConfigsBuilderList()
A list of indexed fields and related configuration data.int
getIndexConfigsCount()
A list of indexed fields and related configuration data.List<IndexConfig>
getIndexConfigsList()
A list of indexed fields and related configuration data.IndexConfigOrBuilder
getIndexConfigsOrBuilder(int index)
A list of indexed fields and related configuration data.List<? extends IndexConfigOrBuilder>
getIndexConfigsOrBuilderList()
A list of indexed fields and related configuration data.LifecycleState
getLifecycleState()
Output only.int
getLifecycleStateValue()
Output only.boolean
getLocked()
Whether the bucket is locked.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getRestrictedFields(int index)
Log entry field paths that are denied access in this bucket.com.google.protobuf.ByteString
getRestrictedFieldsBytes(int index)
Log entry field paths that are denied access in this bucket.int
getRestrictedFieldsCount()
Log entry field paths that are denied access in this bucket.com.google.protobuf.ProtocolStringList
getRestrictedFieldsList()
Log entry field paths that are denied access in this bucket.int
getRetentionDays()
Logs will be retained by default for this amount of time, after which they will automatically be deleted.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCmekSettings()
The CMEK settings of the log bucket.boolean
hasCreateTime()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
LogBucket.Builder
mergeCmekSettings(CmekSettings value)
The CMEK settings of the log bucket.LogBucket.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.LogBucket.Builder
mergeFrom(LogBucket other)
LogBucket.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LogBucket.Builder
mergeFrom(com.google.protobuf.Message other)
LogBucket.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LogBucket.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.LogBucket.Builder
removeIndexConfigs(int index)
A list of indexed fields and related configuration data.LogBucket.Builder
setAnalyticsEnabled(boolean value)
Whether log analytics is enabled for this bucket.LogBucket.Builder
setCmekSettings(CmekSettings value)
The CMEK settings of the log bucket.LogBucket.Builder
setCmekSettings(CmekSettings.Builder builderForValue)
The CMEK settings of the log bucket.LogBucket.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.LogBucket.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.LogBucket.Builder
setDescription(String value)
Describes this bucket.LogBucket.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Describes this bucket.LogBucket.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
LogBucket.Builder
setIndexConfigs(int index, IndexConfig value)
A list of indexed fields and related configuration data.LogBucket.Builder
setIndexConfigs(int index, IndexConfig.Builder builderForValue)
A list of indexed fields and related configuration data.LogBucket.Builder
setLifecycleState(LifecycleState value)
Output only.LogBucket.Builder
setLifecycleStateValue(int value)
Output only.LogBucket.Builder
setLocked(boolean value)
Whether the bucket is locked.LogBucket.Builder
setName(String value)
Output only.LogBucket.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.LogBucket.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
LogBucket.Builder
setRestrictedFields(int index, String value)
Log entry field paths that are denied access in this bucket.LogBucket.Builder
setRetentionDays(int value)
Logs will be retained by default for this amount of time, after which they will automatically be deleted.LogBucket.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
LogBucket.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.LogBucket.Builder
setUpdateTime(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
clear
public LogBucket.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
getDefaultInstanceForType
public LogBucket getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogBucket build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogBucket buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogBucket.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
setField
public LogBucket.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
clearField
public LogBucket.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
clearOneof
public LogBucket.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
addRepeatedField
public LogBucket.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
mergeFrom
public LogBucket.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LogBucket.Builder>
-
mergeFrom
public LogBucket.Builder mergeFrom(LogBucket other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDescription
in interfaceLogBucketOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Describes this bucket.
string description = 3;
- Specified by:
getDescriptionBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
getRetentionDays
in 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:
getLocked
in 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:
getLifecycleStateValue
in 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:
getLifecycleState
in 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:
getAnalyticsEnabled
in 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:
getRestrictedFieldsList
in 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:
getRestrictedFieldsCount
in 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:
getRestrictedFields
in 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:
getRestrictedFieldsBytes
in 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:
getIndexConfigsList
in interfaceLogBucketOrBuilder
-
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 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:
getIndexConfigs
in 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:
getIndexConfigsOrBuilder
in 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:
getIndexConfigsOrBuilderList
in 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:
hasCmekSettings
in 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:
getCmekSettings
in 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:
getCmekSettingsOrBuilder
in interfaceLogBucketOrBuilder
-
setUnknownFields
public final LogBucket.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
mergeUnknownFields
public final LogBucket.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
-