Package com.google.cloud.retail.v2alpha
Class LoggingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder>
com.google.cloud.retail.v2alpha.LoggingConfig.Builder
- All Implemented Interfaces:
LoggingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LoggingConfig
public static final class LoggingConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder>
implements LoggingConfigOrBuilder
Project level logging config to control what level of log will be generated and written to Cloud Logging.Protobuf type
google.cloud.retail.v2alpha.LoggingConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllServiceLogGenerationRules(Iterable<? extends LoggingConfig.ServiceLogGenerationRule> values) Controls logging configurations more granularly for each supported service.addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value) Controls logging configurations more granularly for each supported service.addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue) Controls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.addServiceLogGenerationRulesBuilder(int index) Controls logging configurations more granularly for each supported service.build()clear()The log generation rule that applies by default to all services supporting log generation.Required.Controls logging configurations more granularly for each supported service.The log generation rule that applies by default to all services supporting log generation.The log generation rule that applies by default to all services supporting log generation.The log generation rule that applies by default to all services supporting log generation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getServiceLogGenerationRules(int index) Controls logging configurations more granularly for each supported service.getServiceLogGenerationRulesBuilder(int index) Controls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.intControls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.getServiceLogGenerationRulesOrBuilder(int index) Controls logging configurations more granularly for each supported service.Controls logging configurations more granularly for each supported service.booleanThe log generation rule that applies by default to all services supporting log generation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe log generation rule that applies by default to all services supporting log generation.mergeFrom(LoggingConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeServiceLogGenerationRules(int index) Controls logging configurations more granularly for each supported service.The log generation rule that applies by default to all services supporting log generation.setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue) The log generation rule that applies by default to all services supporting log generation.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value) Controls logging configurations more granularly for each supported service.setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue) Controls logging configurations more granularly for each supported service.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LoggingConfig.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.GeneratedMessage.Builder<LoggingConfig.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoggingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LoggingConfig.Builder>
-
mergeFrom
public LoggingConfig.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<LoggingConfig.Builder>- Throws:
IOException
-
getName
Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceLoggingConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceLoggingConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setNameBytes
Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasDefaultLogGenerationRule
public boolean hasDefaultLogGenerationRule()The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;- Specified by:
hasDefaultLogGenerationRulein interfaceLoggingConfigOrBuilder- Returns:
- Whether the defaultLogGenerationRule field is set.
-
getDefaultLogGenerationRule
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;- Specified by:
getDefaultLogGenerationRulein interfaceLoggingConfigOrBuilder- Returns:
- The defaultLogGenerationRule.
-
setDefaultLogGenerationRule
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; -
setDefaultLogGenerationRule
public LoggingConfig.Builder setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.Builder builderForValue) The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; -
mergeDefaultLogGenerationRule
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; -
clearDefaultLogGenerationRule
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; -
getDefaultLogGenerationRuleBuilder
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; -
getDefaultLogGenerationRuleOrBuilder
The log generation rule that applies by default to all services supporting log generation. It can be overridden by [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] for service level control.
.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2;- Specified by:
getDefaultLogGenerationRuleOrBuilderin interfaceLoggingConfigOrBuilder
-
getServiceLogGenerationRulesList
Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;- Specified by:
getServiceLogGenerationRulesListin interfaceLoggingConfigOrBuilder
-
getServiceLogGenerationRulesCount
public int getServiceLogGenerationRulesCount()Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;- Specified by:
getServiceLogGenerationRulesCountin interfaceLoggingConfigOrBuilder
-
getServiceLogGenerationRules
Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;- Specified by:
getServiceLogGenerationRulesin interfaceLoggingConfigOrBuilder
-
setServiceLogGenerationRules
public LoggingConfig.Builder setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
setServiceLogGenerationRules
public LoggingConfig.Builder setServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addServiceLogGenerationRules
public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule value) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addServiceLogGenerationRules
public LoggingConfig.Builder addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule value) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addServiceLogGenerationRules
public LoggingConfig.Builder addServiceLogGenerationRules(LoggingConfig.ServiceLogGenerationRule.Builder builderForValue) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addServiceLogGenerationRules
public LoggingConfig.Builder addServiceLogGenerationRules(int index, LoggingConfig.ServiceLogGenerationRule.Builder builderForValue) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addAllServiceLogGenerationRules
public LoggingConfig.Builder addAllServiceLogGenerationRules(Iterable<? extends LoggingConfig.ServiceLogGenerationRule> values) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
clearServiceLogGenerationRules
Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
removeServiceLogGenerationRules
Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
getServiceLogGenerationRulesBuilder
public LoggingConfig.ServiceLogGenerationRule.Builder getServiceLogGenerationRulesBuilder(int index) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
getServiceLogGenerationRulesOrBuilder
public LoggingConfig.ServiceLogGenerationRuleOrBuilder getServiceLogGenerationRulesOrBuilder(int index) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;- Specified by:
getServiceLogGenerationRulesOrBuilderin interfaceLoggingConfigOrBuilder
-
getServiceLogGenerationRulesOrBuilderList
public List<? extends LoggingConfig.ServiceLogGenerationRuleOrBuilder> getServiceLogGenerationRulesOrBuilderList()Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;- Specified by:
getServiceLogGenerationRulesOrBuilderListin interfaceLoggingConfigOrBuilder
-
addServiceLogGenerationRulesBuilder
Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
addServiceLogGenerationRulesBuilder
public LoggingConfig.ServiceLogGenerationRule.Builder addServiceLogGenerationRulesBuilder(int index) Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; -
getServiceLogGenerationRulesBuilderList
public List<LoggingConfig.ServiceLogGenerationRule.Builder> getServiceLogGenerationRulesBuilderList()Controls logging configurations more granularly for each supported service. This overrides the [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] for the services specified. For those not mentioned, they will fallback to the default log generation rule.
repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4;
-