Class BackendServiceLogConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • clear

        public BackendServiceLogConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • getDefaultInstanceForType

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

        public BackendServiceLogConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public BackendServiceLogConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public BackendServiceLogConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • clearField

        public BackendServiceLogConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • clearOneof

        public BackendServiceLogConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • setRepeatedField

        public BackendServiceLogConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • addRepeatedField

        public BackendServiceLogConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • mergeFrom

        public BackendServiceLogConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendServiceLogConfig.Builder>
        Throws:
        IOException
      • 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.
      • setEnable

        public BackendServiceLogConfig.Builder setEnable​(boolean value)
         Denotes whether to enable logging for the load balancer traffic served by this backend service. The default value is false.
         
        optional bool enable = 311764355;
        Parameters:
        value - The enable to set.
        Returns:
        This builder for chaining.
      • clearEnable

        public BackendServiceLogConfig.Builder clearEnable()
         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:
        This builder for chaining.
      • 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.
      • setOptionalFields

        public BackendServiceLogConfig.Builder setOptionalFields​(int index,
                                                                 String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The optionalFields to set.
        Returns:
        This builder for chaining.
      • addOptionalFields

        public BackendServiceLogConfig.Builder addOptionalFields​(String value)
         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;
        Parameters:
        value - The optionalFields to add.
        Returns:
        This builder for chaining.
      • addAllOptionalFields

        public BackendServiceLogConfig.Builder addAllOptionalFields​(Iterable<String> values)
         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;
        Parameters:
        values - The optionalFields to add.
        Returns:
        This builder for chaining.
      • clearOptionalFields

        public BackendServiceLogConfig.Builder clearOptionalFields()
         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:
        This builder for chaining.
      • addOptionalFieldsBytes

        public BackendServiceLogConfig.Builder addOptionalFieldsBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the optionalFields to add.
        Returns:
        This builder for chaining.
      • 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.
      • setOptionalMode

        public BackendServiceLogConfig.Builder setOptionalMode​(String value)
         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;
        Parameters:
        value - The optionalMode to set.
        Returns:
        This builder for chaining.
      • clearOptionalMode

        public BackendServiceLogConfig.Builder clearOptionalMode()
         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:
        This builder for chaining.
      • setOptionalModeBytes

        public BackendServiceLogConfig.Builder setOptionalModeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for optionalMode to set.
        Returns:
        This builder for chaining.
      • 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.
      • setSampleRate

        public BackendServiceLogConfig.Builder setSampleRate​(float value)
         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;
        Parameters:
        value - The sampleRate to set.
        Returns:
        This builder for chaining.
      • clearSampleRate

        public BackendServiceLogConfig.Builder clearSampleRate()
         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:
        This builder for chaining.
      • setUnknownFields

        public final BackendServiceLogConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>
      • mergeUnknownFields

        public final BackendServiceLogConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendServiceLogConfig.Builder>