Package com.google.cloud.compute.v1
Class BackendServiceLogConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.BackendServiceLogConfig
-
- All Implemented Interfaces:
BackendServiceLogConfigOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class BackendServiceLogConfig extends com.google.protobuf.GeneratedMessageV3 implements BackendServiceLogConfigOrBuilder
The available logging options for the load balancer traffic served by this backend service.
Protobuf typegoogle.cloud.compute.v1.BackendServiceLogConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackendServiceLogConfig.Builder
The available logging options for the load balancer traffic served by this backend service.static class
BackendServiceLogConfig.OptionalMode
This field can only be specified if logging is enabled for this backend service.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ENABLE_FIELD_NUMBER
static int
OPTIONAL_FIELDS_FIELD_NUMBER
static int
OPTIONAL_MODE_FIELD_NUMBER
static int
SAMPLE_RATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static BackendServiceLogConfig
getDefaultInstance()
BackendServiceLogConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<BackendServiceLogConfig>
getParserForType()
float
getSampleRate()
This field can only be specified if logging is enabled for this backend service.int
getSerializedSize()
boolean
hasEnable()
Denotes whether to enable logging for the load balancer traffic served by this backend service.int
hashCode()
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()
static BackendServiceLogConfig.Builder
newBuilder()
static BackendServiceLogConfig.Builder
newBuilder(BackendServiceLogConfig prototype)
BackendServiceLogConfig.Builder
newBuilderForType()
protected BackendServiceLogConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static BackendServiceLogConfig
parseDelimitedFrom(InputStream input)
static BackendServiceLogConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackendServiceLogConfig
parseFrom(byte[] data)
static BackendServiceLogConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackendServiceLogConfig
parseFrom(com.google.protobuf.ByteString data)
static BackendServiceLogConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackendServiceLogConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static BackendServiceLogConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackendServiceLogConfig
parseFrom(InputStream input)
static BackendServiceLogConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BackendServiceLogConfig
parseFrom(ByteBuffer data)
static BackendServiceLogConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<BackendServiceLogConfig>
parser()
BackendServiceLogConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONAL_FIELDS_FIELD_NUMBER
public static final int OPTIONAL_FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONAL_MODE_FIELD_NUMBER
public static final int OPTIONAL_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SAMPLE_RATE_FIELD_NUMBER
public static final int SAMPLE_RATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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:
hasEnable
in 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:
getEnable
in interfaceBackendServiceLogConfigOrBuilder
- Returns:
- The enable.
-
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:
getOptionalFieldsList
in 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:
getOptionalFieldsCount
in interfaceBackendServiceLogConfigOrBuilder
- Returns:
- The count of optionalFields.
-
getOptionalFields
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;
- Specified by:
getOptionalFields
in 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:
getOptionalFieldsBytes
in interfaceBackendServiceLogConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the optionalFields at the given index.
-
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:
hasOptionalMode
in interfaceBackendServiceLogConfigOrBuilder
- Returns:
- Whether the optionalMode field is set.
-
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;
- Specified by:
getOptionalMode
in 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:
getOptionalModeBytes
in interfaceBackendServiceLogConfigOrBuilder
- Returns:
- The bytes for optionalMode.
-
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:
hasSampleRate
in 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:
getSampleRate
in interfaceBackendServiceLogConfigOrBuilder
- Returns:
- The sampleRate.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BackendServiceLogConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BackendServiceLogConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendServiceLogConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BackendServiceLogConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceLogConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BackendServiceLogConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BackendServiceLogConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BackendServiceLogConfig.Builder newBuilder()
-
newBuilder
public static BackendServiceLogConfig.Builder newBuilder(BackendServiceLogConfig prototype)
-
toBuilder
public BackendServiceLogConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendServiceLogConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BackendServiceLogConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BackendServiceLogConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<BackendServiceLogConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackendServiceLogConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-