Package com.google.cloud.compute.v1
Class BackendServiceLogConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackendServiceLogConfig.Builder>
com.google.cloud.compute.v1.BackendServiceLogConfig.Builder
- All Implemented Interfaces:
BackendServiceLogConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BackendServiceLogConfig
public static final class BackendServiceLogConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptionalFields(Iterable<String> values) This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.addOptionalFields(String value) This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.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.build()clear()Denotes whether to enable logging for the load balancer traffic served by this backend service.This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.This field can only be specified if logging is enabled for this backend service.This field can only be specified if logging is enabled for this backend service.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDenotes whether to enable logging for the load balancer traffic served by this backend service.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.ByteStringgetOptionalFieldsBytes(int index) This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.intThis field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.com.google.protobuf.ProtocolStringListThis field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.This field can only be specified if logging is enabled for this backend service.com.google.protobuf.ByteStringThis field can only be specified if logging is enabled for this backend service.floatThis field can only be specified if logging is enabled for this backend service.booleanDenotes whether to enable logging for the load balancer traffic served by this backend service.booleanThis field can only be specified if logging is enabled for this backend service.booleanThis field can only be specified if logging is enabled for this backend service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(BackendServiceLogConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnable(boolean value) Denotes whether to enable logging for the load balancer traffic served by this backend service.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.setOptionalMode(String value) This field can only be specified if logging is enabled for this backend service.setOptionalModeBytes(com.google.protobuf.ByteString value) This field can only be specified if logging is enabled for this backend service.setSampleRate(float value) This field can only be specified if logging is enabled for this backend 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<BackendServiceLogConfig.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<BackendServiceLogConfig.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<BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BackendServiceLogConfig.Builder>
-
mergeFrom
public BackendServiceLogConfig.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<BackendServiceLogConfig.Builder>- Throws:
IOException
-
hasEnable
public 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;- Specified by:
hasEnablein interfaceBackendServiceLogConfigOrBuilder- Returns:
- Whether the enable field is set.
-
getEnable
public 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;- Specified by:
getEnablein interfaceBackendServiceLogConfigOrBuilder- Returns:
- The enable.
-
setEnable
Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
optional bool enable = 311764355;- Parameters:
value- The enable to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getOptionalFieldsList
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;- Specified by:
getOptionalFieldsListin interfaceBackendServiceLogConfigOrBuilder- Returns:
- A list containing the optionalFields.
-
getOptionalFieldsCount
public 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;- Specified by:
getOptionalFieldsCountin interfaceBackendServiceLogConfigOrBuilder- Returns:
- The count of optionalFields.
-
getOptionalFields
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;- Specified by:
getOptionalFieldsin interfaceBackendServiceLogConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The optionalFields at the given index.
-
getOptionalFieldsBytes
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;- Specified by:
getOptionalFieldsBytesin interfaceBackendServiceLogConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the optionalFields at the given index.
-
setOptionalFields
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;- Parameters:
index- The index to set the value at.value- The optionalFields to set.- Returns:
- This builder for chaining.
-
addOptionalFields
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;- Parameters:
value- The optionalFields to add.- Returns:
- This builder for chaining.
-
addAllOptionalFields
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;- Parameters:
values- The optionalFields to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addOptionalFieldsBytes
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;- Parameters:
value- The bytes of the optionalFields to add.- Returns:
- This builder for chaining.
-
hasOptionalMode
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;- Specified by:
hasOptionalModein interfaceBackendServiceLogConfigOrBuilder- Returns:
- Whether the optionalMode field is set.
-
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;- Specified by:
getOptionalModein interfaceBackendServiceLogConfigOrBuilder- Returns:
- The optionalMode.
-
getOptionalModeBytes
public 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;- Specified by:
getOptionalModeBytesin interfaceBackendServiceLogConfigOrBuilder- Returns:
- The bytes for optionalMode.
-
setOptionalMode
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;- Parameters:
value- The optionalMode to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setOptionalModeBytes
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;- Parameters:
value- The bytes for optionalMode to set.- Returns:
- This builder for chaining.
-
hasSampleRate
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;- Specified by:
hasSampleRatein interfaceBackendServiceLogConfigOrBuilder- Returns:
- Whether the sampleRate field is set.
-
getSampleRate
public 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;- Specified by:
getSampleRatein interfaceBackendServiceLogConfigOrBuilder- Returns:
- The sampleRate.
-
setSampleRate
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;- Parameters:
value- The sampleRate to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-