Package com.google.cloud.compute.v1
Class BackendServiceLogConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class BackendServiceLogConfig
extends com.google.protobuf.GeneratedMessage
implements BackendServiceLogConfigOrBuilder
The available logging options for the load balancer traffic served by this backend service.Protobuf type
google.cloud.compute.v1.BackendServiceLogConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe available logging options for the load balancer traffic served by this backend service.static enumThis field can only be specified if logging is enabled for this backend service.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BackendServiceLogConfigstatic final com.google.protobuf.Descriptors.DescriptorbooleanDenotes whether to enable logging for the load balancer traffic served by this backend service.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.ByteStringgetOptionalFieldsBytes(int index) This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.intThis field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.com.google.protobuf.ProtocolStringListThis field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.This field can only be specified if logging is enabled for this backend service.com.google.protobuf.ByteStringThis field can only be specified if logging is enabled for this backend service.com.google.protobuf.Parser<BackendServiceLogConfig>floatThis field can only be specified if logging is enabled for this backend service.intbooleanDenotes whether to enable logging for the load balancer traffic served by this backend service.inthashCode()booleanThis field can only be specified if logging is enabled for this backend service.booleanThis field can only be specified if logging is enabled for this backend service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(BackendServiceLogConfig prototype) protected BackendServiceLogConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENABLE_FIELD_NUMBER
public static final int ENABLE_FIELD_NUMBER- See Also:
-
OPTIONAL_FIELDS_FIELD_NUMBER
public static final int OPTIONAL_FIELDS_FIELD_NUMBER- See Also:
-
OPTIONAL_MODE_FIELD_NUMBER
public static final int OPTIONAL_MODE_FIELD_NUMBER- See Also:
-
SAMPLE_RATE_FIELD_NUMBER
public static final int SAMPLE_RATE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static BackendServiceLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BackendServiceLogConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-