Package com.google.cloud.compute.v1
Interface BackendServiceLogConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
BackendServiceLogConfig
,BackendServiceLogConfig.Builder
public interface BackendServiceLogConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.List<String>
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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasEnable
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;
- Returns:
- Whether the enable field is set.
-
getEnable
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;
- Returns:
- The enable.
-
getOptionalFieldsList
List<String> 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;
- Returns:
- A list containing the optionalFields.
-
getOptionalFieldsCount
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;
- Returns:
- The count of optionalFields.
-
getOptionalFields
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The optionalFields at the given index.
-
getOptionalFieldsBytes
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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the optionalFields at the given index.
-
hasOptionalMode
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;
- Returns:
- Whether the optionalMode field is set.
-
getOptionalMode
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;
- Returns:
- The optionalMode.
-
getOptionalModeBytes
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;
- Returns:
- The bytes for optionalMode.
-
hasSampleRate
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;
- Returns:
- Whether the sampleRate field is set.
-
getSampleRate
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;
- Returns:
- The sampleRate.
-
-