Interface BackendServiceLogConfigOrBuilder (1.7.2)

public interface BackendServiceLogConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnable()

public abstract boolean getEnable()

This field denotes whether to enable logging for the load balancer traffic served by this backend service.

optional bool enable = 311764355;

Returns
TypeDescription
boolean

The enable.

getSampleRate()

public abstract 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
TypeDescription
float

The sampleRate.

hasEnable()

public abstract boolean hasEnable()

This field denotes whether to enable logging for the load balancer traffic served by this backend service.

optional bool enable = 311764355;

Returns
TypeDescription
boolean

Whether the enable field is set.

hasSampleRate()

public abstract 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
TypeDescription
boolean

Whether the sampleRate field is set.