public static final class BackendServiceLogConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder> implements BackendServiceLogConfigOrBuilder
The available logging options for the load balancer traffic served by this backend service.Protobuf type
google.cloud.compute.v1.BackendServiceLogConfig| Modifier and Type | Method and Description |
|---|---|
BackendServiceLogConfig.Builder |
addAllOptionalFields(Iterable<String> values)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig.Builder |
addOptionalFields(String value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig.Builder |
addOptionalFieldsBytes(com.google.protobuf.ByteString value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackendServiceLogConfig |
build() |
BackendServiceLogConfig |
buildPartial() |
BackendServiceLogConfig.Builder |
clear() |
BackendServiceLogConfig.Builder |
clearEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
BackendServiceLogConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BackendServiceLogConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BackendServiceLogConfig.Builder |
clearOptionalFields()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig.Builder |
clearOptionalMode()
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig.Builder |
clearSampleRate()
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig.Builder |
clone() |
BackendServiceLogConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
String |
getOptionalFields(int index)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
com.google.protobuf.ByteString |
getOptionalFieldsBytes(int index)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
int |
getOptionalFieldsCount()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
com.google.protobuf.ProtocolStringList |
getOptionalFieldsList()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
String |
getOptionalMode()
This field can only be specified if logging is enabled for this backend service.
|
com.google.protobuf.ByteString |
getOptionalModeBytes()
This field can only be specified if logging is enabled for this backend service.
|
float |
getSampleRate()
This field can only be specified if logging is enabled for this backend service.
|
boolean |
hasEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
boolean |
hasOptionalMode()
This field can only be specified if logging is enabled for this backend service.
|
boolean |
hasSampleRate()
This field can only be specified if logging is enabled for this backend service.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BackendServiceLogConfig.Builder |
mergeFrom(BackendServiceLogConfig other) |
BackendServiceLogConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BackendServiceLogConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
BackendServiceLogConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackendServiceLogConfig.Builder |
setEnable(boolean value)
Denotes whether to enable logging for the load balancer traffic served by this backend service.
|
BackendServiceLogConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackendServiceLogConfig.Builder |
setOptionalFields(int index,
String value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
|
BackendServiceLogConfig.Builder |
setOptionalMode(String value)
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig.Builder |
setOptionalModeBytes(com.google.protobuf.ByteString value)
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BackendServiceLogConfig.Builder |
setSampleRate(float value)
This field can only be specified if logging is enabled for this backend service.
|
BackendServiceLogConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>public BackendServiceLogConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BackendServiceLogConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BackendServiceLogConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BackendServiceLogConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.Builder mergeFrom(BackendServiceLogConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>public BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>IOExceptionpublic boolean hasEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional bool enable = 311764355;hasEnable in interface BackendServiceLogConfigOrBuilderpublic boolean getEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional bool enable = 311764355;getEnable in interface BackendServiceLogConfigOrBuilderpublic BackendServiceLogConfig.Builder setEnable(boolean value)
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional bool enable = 311764355;value - The enable to set.public BackendServiceLogConfig.Builder clearEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional bool enable = 311764355;public com.google.protobuf.ProtocolStringList getOptionalFieldsList()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;getOptionalFieldsList in interface BackendServiceLogConfigOrBuilderpublic int getOptionalFieldsCount()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;getOptionalFieldsCount in interface BackendServiceLogConfigOrBuilderpublic String getOptionalFields(int index)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;getOptionalFields in interface BackendServiceLogConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getOptionalFieldsBytes(int index)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;getOptionalFieldsBytes in interface BackendServiceLogConfigOrBuilderindex - The index of the value to return.public BackendServiceLogConfig.Builder setOptionalFields(int index, String value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;index - The index to set the value at.value - The optionalFields to set.public BackendServiceLogConfig.Builder addOptionalFields(String value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;value - The optionalFields to add.public BackendServiceLogConfig.Builder addAllOptionalFields(Iterable<String> values)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;values - The optionalFields to add.public BackendServiceLogConfig.Builder clearOptionalFields()
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;public BackendServiceLogConfig.Builder addOptionalFieldsBytes(com.google.protobuf.ByteString value)
This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to include in the logs. For example: serverInstance, serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
repeated string optional_fields = 528589944;value - The bytes of the optionalFields to add.public boolean hasOptionalMode()
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;hasOptionalMode in interface BackendServiceLogConfigOrBuilderpublic String getOptionalMode()
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;getOptionalMode in interface BackendServiceLogConfigOrBuilderpublic com.google.protobuf.ByteString getOptionalModeBytes()
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;getOptionalModeBytes in interface BackendServiceLogConfigOrBuilderpublic BackendServiceLogConfig.Builder setOptionalMode(String value)
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;value - The optionalMode to set.public BackendServiceLogConfig.Builder clearOptionalMode()
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;public BackendServiceLogConfig.Builder setOptionalModeBytes(com.google.protobuf.ByteString value)
This field can only be specified if logging is enabled for this backend service. Configures whether all, none or a subset of optional fields should be added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL, CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL. Check the OptionalMode enum for the list of possible values.
optional string optional_mode = 128697122;value - The bytes for optionalMode to set.public boolean hasSampleRate()
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
optional float sample_rate = 153193045;hasSampleRate in interface BackendServiceLogConfigOrBuilderpublic float getSampleRate()
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
optional float sample_rate = 153193045;getSampleRate in interface BackendServiceLogConfigOrBuilderpublic BackendServiceLogConfig.Builder setSampleRate(float value)
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
optional float sample_rate = 153193045;value - The sampleRate to set.public BackendServiceLogConfig.Builder clearSampleRate()
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
optional float sample_rate = 153193045;public final BackendServiceLogConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>public final BackendServiceLogConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.