Package com.google.logging.v2
Class LogBucket
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.logging.v2.LogBucket
- All Implemented Interfaces:
LogBucketOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class LogBucket
extends com.google.protobuf.GeneratedMessageV3
implements LogBucketOrBuilder
Describes a repository in which log entries are stored.Protobuf type
google.logging.v2.LogBucket- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes a repository in which log entries are stored.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether log analytics is enabled for this bucket.The CMEK settings of the log bucket.The CMEK settings of the log bucket.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static LogBucketDescribes this bucket.com.google.protobuf.ByteStringDescribes this bucket.static final com.google.protobuf.Descriptors.DescriptorgetIndexConfigs(int index) 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.com.google.protobuf.Parser<LogBucket>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.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanThe CMEK settings of the log bucket.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic LogBucket.Builderstatic LogBucket.BuildernewBuilder(LogBucket prototype) protected LogBucket.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static LogBucketparseDelimitedFrom(InputStream input) static LogBucketparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogBucketparseFrom(byte[] data) static LogBucketparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogBucketparseFrom(com.google.protobuf.ByteString data) static LogBucketparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogBucketparseFrom(com.google.protobuf.CodedInputStream input) static LogBucketparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogBucketparseFrom(InputStream input) static LogBucketparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LogBucketparseFrom(ByteBuffer data) static LogBucketparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LogBucket>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
RETENTION_DAYS_FIELD_NUMBER
public static final int RETENTION_DAYS_FIELD_NUMBER- See Also:
-
LOCKED_FIELD_NUMBER
public static final int LOCKED_FIELD_NUMBER- See Also:
-
LIFECYCLE_STATE_FIELD_NUMBER
public static final int LIFECYCLE_STATE_FIELD_NUMBER- See Also:
-
ANALYTICS_ENABLED_FIELD_NUMBER
public static final int ANALYTICS_ENABLED_FIELD_NUMBER- See Also:
-
RESTRICTED_FIELDS_FIELD_NUMBER
public static final int RESTRICTED_FIELDS_FIELD_NUMBER- See Also:
-
INDEX_CONFIGS_FIELD_NUMBER
public static final int INDEX_CONFIGS_FIELD_NUMBER- See Also:
-
CMEK_SETTINGS_FIELD_NUMBER
public static final int CMEK_SETTINGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getIndexConfigsList
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsListin interfaceLogBucketOrBuilder
-
getIndexConfigsOrBuilderList
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderListin 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
-
getIndexConfigsOrBuilder
A list of indexed fields and related configuration data.
repeated .google.logging.v2.IndexConfig index_configs = 17;- Specified by:
getIndexConfigsOrBuilderin interfaceLogBucketOrBuilder
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LogBucket parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogBucket parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogBucket parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogBucket parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogBucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LogBucket parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LogBucket parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LogBucket parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LogBucket parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LogBucket.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-