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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    The available logging options for the load balancer traffic served by this backend service.
    static enum 
    This 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Denotes 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.ByteString
    This field can only be specified if logging is enabled for this backend service and "logConfig.optionalMode" was set to CUSTOM.
    int
    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
    This 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.ByteString
    This field can only be specified if logging is enabled for this backend service.
    com.google.protobuf.Parser<BackendServiceLogConfig>
     
    float
    This field can only be specified if logging is enabled for this backend service.
    int
     
    boolean
    Denotes whether to enable logging for the load balancer traffic served by this backend service.
    int
     
    boolean
    This field can only be specified if logging is enabled for this backend service.
    boolean
    This field can only be specified if logging is enabled for this backend service.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<BackendServiceLogConfig>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetFieldAccessorTable in class com.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:
      hasEnable in interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      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 interface BackendServiceLogConfigOrBuilder
      Returns:
      The sampleRate.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BackendServiceLogConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public BackendServiceLogConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder