public static final class LoggingConfig.LogGenerationRule extends com.google.protobuf.GeneratedMessageV3 implements LoggingConfig.LogGenerationRuleOrBuilder
The logging configurations for services supporting log generation.Protobuf type
google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingConfig.LogGenerationRule.Builder
The logging configurations for services supporting log generation.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
INFO_LOG_SAMPLE_RATE_FIELD_NUMBER |
static int |
LOGGING_LEVEL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static LoggingConfig.LogGenerationRule |
getDefaultInstance() |
LoggingConfig.LogGenerationRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getInfoLogSampleRate()
The log sample rate for INFO level log entries.
|
LoggingConfig.LoggingLevel |
getLoggingLevel()
The logging level.
|
int |
getLoggingLevelValue()
The logging level.
|
com.google.protobuf.Parser<LoggingConfig.LogGenerationRule> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasInfoLogSampleRate()
The log sample rate for INFO level log entries.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LoggingConfig.LogGenerationRule.Builder |
newBuilder() |
static LoggingConfig.LogGenerationRule.Builder |
newBuilder(LoggingConfig.LogGenerationRule prototype) |
LoggingConfig.LogGenerationRule.Builder |
newBuilderForType() |
protected LoggingConfig.LogGenerationRule.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static LoggingConfig.LogGenerationRule |
parseDelimitedFrom(InputStream input) |
static LoggingConfig.LogGenerationRule |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LoggingConfig.LogGenerationRule |
parseFrom(byte[] data) |
static LoggingConfig.LogGenerationRule |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LoggingConfig.LogGenerationRule |
parseFrom(ByteBuffer data) |
static LoggingConfig.LogGenerationRule |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LoggingConfig.LogGenerationRule |
parseFrom(com.google.protobuf.ByteString data) |
static LoggingConfig.LogGenerationRule |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LoggingConfig.LogGenerationRule |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LoggingConfig.LogGenerationRule |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LoggingConfig.LogGenerationRule |
parseFrom(InputStream input) |
static LoggingConfig.LogGenerationRule |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LoggingConfig.LogGenerationRule> |
parser() |
LoggingConfig.LogGenerationRule.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LOGGING_LEVEL_FIELD_NUMBER
public static final int INFO_LOG_SAMPLE_RATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getLoggingLevelValue()
The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1;getLoggingLevelValue in interface LoggingConfig.LogGenerationRuleOrBuilderpublic LoggingConfig.LoggingLevel getLoggingLevel()
The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1;getLoggingLevel in interface LoggingConfig.LogGenerationRuleOrBuilderpublic boolean hasInfoLogSampleRate()
The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level] is not [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL]. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
optional float info_log_sample_rate = 2;hasInfoLogSampleRate in interface LoggingConfig.LogGenerationRuleOrBuilderpublic float getInfoLogSampleRate()
The log sample rate for INFO level log entries. You can use this to reduce the number of entries generated for INFO level logs. DO NOT set this field if the [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level] is not [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL]. Otherwise, an INVALID_ARGUMENT error is returned. Sample rate for INFO logs defaults to 1 when unset (generate and send all INFO logs to Cloud Logging). Its value must be greater than 0 and less than or equal to 1.
optional float info_log_sample_rate = 2;getInfoLogSampleRate in interface LoggingConfig.LogGenerationRuleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static LoggingConfig.LogGenerationRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(InputStream input) throws IOException
IOExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LoggingConfig.LogGenerationRule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static LoggingConfig.LogGenerationRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static LoggingConfig.LogGenerationRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic LoggingConfig.LogGenerationRule.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LoggingConfig.LogGenerationRule.Builder newBuilder()
public static LoggingConfig.LogGenerationRule.Builder newBuilder(LoggingConfig.LogGenerationRule prototype)
public LoggingConfig.LogGenerationRule.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LoggingConfig.LogGenerationRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static LoggingConfig.LogGenerationRule getDefaultInstance()
public static com.google.protobuf.Parser<LoggingConfig.LogGenerationRule> parser()
public com.google.protobuf.Parser<LoggingConfig.LogGenerationRule> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public LoggingConfig.LogGenerationRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.