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 type
google.logging.v2.LogBucket-
Method Summary
Modifier and TypeMethodDescriptionaddAllIndexConfigs(Iterable<? extends IndexConfig> values) A list of indexed fields and related configuration data.addAllRestrictedFields(Iterable<String> values) Log entry field paths that are denied access in this bucket.addIndexConfigs(int index, IndexConfig value) A list of indexed fields and related configuration data.addIndexConfigs(int index, IndexConfig.Builder builderForValue) A list of indexed fields and related configuration data.addIndexConfigs(IndexConfig value) A list of indexed fields and related configuration data.addIndexConfigs(IndexConfig.Builder builderForValue) A list of indexed fields and related configuration data.A list of indexed fields and related configuration data.addIndexConfigsBuilder(int index) A list of indexed fields and related configuration data.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRestrictedFields(String value) Log entry field paths that are denied access in this bucket.addRestrictedFieldsBytes(com.google.protobuf.ByteString value) Log entry field paths that are denied access in this bucket.build()clear()Whether log analytics is enabled for this bucket.The CMEK settings of the log bucket.Output only.Describes this bucket.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A list of indexed fields and related configuration data.Output only.Whether the bucket is locked.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Log entry field paths that are denied access in this bucket.Logs will be retained by default for this amount of time, after which they will automatically be deleted.Output only.clone()booleanWhether log analytics is enabled for this bucket.The CMEK settings of the log bucket.The CMEK settings of the log bucket.The CMEK settings of the log bucket.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Describes this bucket.com.google.protobuf.ByteStringDescribes this bucket.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIndexConfigs(int index) A list of indexed fields and related configuration data.getIndexConfigsBuilder(int index) A list of indexed fields and related configuration data.A list of indexed fields and related configuration data.intA list of indexed fields and related configuration data.A list of indexed fields and related configuration data.getIndexConfigsOrBuilder(int index) A list of indexed fields and related configuration data.List<? extends IndexConfigOrBuilder>A list of indexed fields and related configuration data.Output only.intOutput only.booleanWhether the bucket is locked.getName()Output only.com.google.protobuf.ByteStringOutput only.getRestrictedFields(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.intLog entry field paths that are denied access in this bucket.com.google.protobuf.ProtocolStringListLog entry field paths that are denied access in this bucket.intLogs will be retained by default for this amount of time, after which they will automatically be deleted.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanThe CMEK settings of the log bucket.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCmekSettings(CmekSettings value) The CMEK settings of the log bucket.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final LogBucket.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.removeIndexConfigs(int index) A list of indexed fields and related configuration data.setAnalyticsEnabled(boolean value) Whether log analytics is enabled for this bucket.setCmekSettings(CmekSettings value) The CMEK settings of the log bucket.setCmekSettings(CmekSettings.Builder builderForValue) The CMEK settings of the log bucket.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Describes this bucket.setDescriptionBytes(com.google.protobuf.ByteString value) Describes this bucket.setIndexConfigs(int index, IndexConfig value) A list of indexed fields and related configuration data.setIndexConfigs(int index, IndexConfig.Builder builderForValue) A list of indexed fields and related configuration data.setLifecycleState(LifecycleState value) Output only.setLifecycleStateValue(int value) Output only.setLocked(boolean value) Whether the bucket is locked.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRestrictedFields(int index, String value) Log entry field paths that are denied access in this bucket.setRetentionDays(int value) Logs will be retained by default for this amount of time, after which they will automatically be deleted.final LogBucket.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime(com.google.protobuf.Timestamp value) Output only.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogBucket.Builder>
-
mergeFrom
-
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
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
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
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
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
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
Describes this bucket.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Describes this bucket.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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
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
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
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
Output only. The last update timestamp of the bucket.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last update timestamp of the bucket.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last update timestamp of the bucket.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsin interfaceLogBucketOrBuilder
-
setIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
setIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addAllIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
clearIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
removeIndexConfigs
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
getIndexConfigsBuilder
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
getIndexConfigsOrBuilder
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderin interfaceLogBucketOrBuilder
-
getIndexConfigsOrBuilderList
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderListin interfaceLogBucketOrBuilder
-
addIndexConfigsBuilder
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
addIndexConfigsBuilder
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17; -
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
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
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
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
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
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
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
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
- 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>
-