public static final class LogBucket.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder> implements LogBucketOrBuilder
Describes a repository of logs.Protobuf type
google.logging.v2.LogBucket| Modifier and Type | Method and Description |
|---|---|
LogBucket.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LogBucket |
build() |
LogBucket |
buildPartial() |
LogBucket.Builder |
clear() |
LogBucket.Builder |
clearCreateTime()
Output only.
|
LogBucket.Builder |
clearDescription()
Describes this bucket.
|
LogBucket.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LogBucket.Builder |
clearLifecycleState()
Output only.
|
LogBucket.Builder |
clearLocked()
Whether the bucket has been locked.
|
LogBucket.Builder |
clearName()
The resource name of the bucket.
|
LogBucket.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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() |
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() |
LifecycleState |
getLifecycleState()
Output only.
|
int |
getLifecycleStateValue()
Output only.
|
boolean |
getLocked()
Whether the bucket has been locked.
|
String |
getName()
The resource name of the bucket.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the 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 |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LogBucket.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
LogBucket.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LogBucket.Builder |
mergeFrom(LogBucket other) |
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 |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
LogBucket.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
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 |
setLifecycleState(LifecycleState value)
Output only.
|
LogBucket.Builder |
setLifecycleStateValue(int value)
Output only.
|
LogBucket.Builder |
setLocked(boolean value)
Whether the bucket has been locked.
|
LogBucket.Builder |
setName(String value)
The resource name of the bucket.
|
LogBucket.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the bucket.
|
LogBucket.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.Builder builderForValue)
Output only.
|
LogBucket.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogBucket build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogBucket buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogBucket.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogBucket.Builder>public LogBucket.Builder mergeFrom(LogBucket other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public LogBucket.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogBucket.Builder>IOExceptionpublic String getName()
The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" For the location of `global` it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
string name = 1;getName in interface LogBucketOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" For the location of `global` it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
string name = 1;getNameBytes in interface LogBucketOrBuilderpublic LogBucket.Builder setName(String value)
The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" For the location of `global` it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
string name = 1;value - The name to set.public LogBucket.Builder clearName()
The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" For the location of `global` it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
string name = 1;public LogBucket.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" For the location of `global` it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
string name = 1;value - The bytes for name to set.public String getDescription()
Describes this bucket.
string description = 3;getDescription in interface LogBucketOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Describes this bucket.
string description = 3;getDescriptionBytes in interface LogBucketOrBuilderpublic LogBucket.Builder setDescription(String value)
Describes this bucket.
string description = 3;value - The description to set.public LogBucket.Builder clearDescription()
Describes this bucket.
string description = 3;public LogBucket.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Describes this bucket.
string description = 3;value - The bytes for description to set.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];
hasCreateTime in interface LogBucketOrBuilderpublic 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];
getCreateTime in interface LogBucketOrBuilderpublic 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];
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];
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];
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];
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];
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];
getCreateTimeOrBuilder in interface LogBucketOrBuilderpublic boolean hasUpdateTime()
Output only. The last update timestamp of the bucket.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface LogBucketOrBuilderpublic 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];
getUpdateTime in interface LogBucketOrBuilderpublic 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];
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];
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];
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];
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];
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];
getUpdateTimeOrBuilder in interface LogBucketOrBuilderpublic 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;getRetentionDays in interface LogBucketOrBuilderpublic 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;value - The retentionDays to set.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;public boolean getLocked()
Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.
bool locked = 9;getLocked in interface LogBucketOrBuilderpublic LogBucket.Builder setLocked(boolean value)
Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.
bool locked = 9;value - The locked to set.public LogBucket.Builder clearLocked()
Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.
bool locked = 9;public int getLifecycleStateValue()
Output only. The bucket lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLifecycleStateValue in interface LogBucketOrBuilderpublic LogBucket.Builder setLifecycleStateValue(int value)
Output only. The bucket lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for lifecycleState to set.public LifecycleState getLifecycleState()
Output only. The bucket lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLifecycleState in interface LogBucketOrBuilderpublic LogBucket.Builder setLifecycleState(LifecycleState value)
Output only. The bucket lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The lifecycleState to set.public LogBucket.Builder clearLifecycleState()
Output only. The bucket lifecycle state.
.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final LogBucket.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>public final LogBucket.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogBucket.Builder>Copyright © 2021 Google LLC. All rights reserved.