public final class BackendServiceLogConfig extends GeneratedMessageV3 implements BackendServiceLogConfigOrBuilder
The available logging options for the load balancer traffic served by this backend service.
Protobuf type google.cloud.compute.v1.BackendServiceLogConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
OPTIONAL_FIELDS_FIELD_NUMBER
public static final int OPTIONAL_FIELDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
OPTIONAL_MODE_FIELD_NUMBER
public static final int OPTIONAL_MODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SAMPLE_RATE_FIELD_NUMBER
public static final int SAMPLE_RATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static BackendServiceLogConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BackendServiceLogConfig.Builder newBuilder()
newBuilder(BackendServiceLogConfig prototype)
public static BackendServiceLogConfig.Builder newBuilder(BackendServiceLogConfig prototype)
public static BackendServiceLogConfig parseDelimitedFrom(InputStream input)
public static BackendServiceLogConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BackendServiceLogConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLogConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BackendServiceLogConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLogConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLogConfig parseFrom(CodedInputStream input)
public static BackendServiceLogConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLogConfig parseFrom(InputStream input)
public static BackendServiceLogConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BackendServiceLogConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BackendServiceLogConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BackendServiceLogConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public BackendServiceLogConfig getDefaultInstanceForType()
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;
Returns |
---|
Type | Description |
boolean | The enable.
|
getOptionalFields(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The optionalFields at the given index.
|
getOptionalFieldsBytes(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the optionalFields at the given index.
|
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;
Returns |
---|
Type | Description |
int | The count of optionalFields.
|
getOptionalFieldsList()
public 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;
getOptionalMode()
public 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 |
---|
Type | Description |
String | The optionalMode.
|
getOptionalModeBytes()
public 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 |
---|
Type | Description |
ByteString | The bytes for optionalMode.
|
getParserForType()
public Parser<BackendServiceLogConfig> getParserForType()
Overrides
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;
Returns |
---|
Type | Description |
float | The sampleRate.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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;
Returns |
---|
Type | Description |
boolean | Whether the enable field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the optionalMode field is set.
|
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;
Returns |
---|
Type | Description |
boolean | Whether the sampleRate field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BackendServiceLogConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected BackendServiceLogConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public BackendServiceLogConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides