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 classBackendServiceLogConfig.BuilderThe available logging options for the load balancer traffic served by this backend service.static classBackendServiceLogConfig.OptionalModeThis 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 intENABLE_FIELD_NUMBERstatic intOPTIONAL_FIELDS_FIELD_NUMBERstatic intOPTIONAL_MODE_FIELD_NUMBERstatic intSAMPLE_RATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static BackendServiceLogConfiggetDefaultInstance()BackendServiceLogConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnable()Denotes whether to enable logging for the load balancer traffic served by this backend service.StringgetOptionalFields(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.intgetOptionalFieldsCount()This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.com.google.protobuf.ProtocolStringListgetOptionalFieldsList()This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.StringgetOptionalMode()This field can only be specified if logging is enabled for this backend service.com.google.protobuf.ByteStringgetOptionalModeBytes()This field can only be specified if logging is enabled for this backend service.com.google.protobuf.Parser<BackendServiceLogConfig>getParserForType()floatgetSampleRate()This field can only be specified if logging is enabled for this backend service.intgetSerializedSize()booleanhasEnable()Denotes whether to enable logging for the load balancer traffic served by this backend service.inthashCode()booleanhasOptionalMode()This field can only be specified if logging is enabled for this backend service.booleanhasSampleRate()This field can only be specified if logging is enabled for this backend service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static BackendServiceLogConfig.BuildernewBuilder()static BackendServiceLogConfig.BuildernewBuilder(BackendServiceLogConfig prototype)BackendServiceLogConfig.BuildernewBuilderForType()protected BackendServiceLogConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static BackendServiceLogConfigparseDelimitedFrom(InputStream input)static BackendServiceLogConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceLogConfigparseFrom(byte[] data)static BackendServiceLogConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceLogConfigparseFrom(com.google.protobuf.ByteString data)static BackendServiceLogConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceLogConfigparseFrom(com.google.protobuf.CodedInputStream input)static BackendServiceLogConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceLogConfigparseFrom(InputStream input)static BackendServiceLogConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static BackendServiceLogConfigparseFrom(ByteBuffer data)static BackendServiceLogConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<BackendServiceLogConfig>parser()BackendServiceLogConfig.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
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.
-
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
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:
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.
-
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
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:
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendServiceLogConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BackendServiceLogConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-