Class SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • clear

        public SubnetworkLogConfig.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<SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • setField

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

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • clearOneof

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • setRepeatedField

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • addRepeatedField

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • mergeFrom

        public SubnetworkLogConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SubnetworkLogConfig.Builder>
      • isInitialized

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

        public SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
        Throws:
        IOException
      • hasAggregationInterval

        public boolean hasAggregationInterval()
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Specified by:
        hasAggregationInterval in interface SubnetworkLogConfigOrBuilder
        Returns:
        Whether the aggregationInterval field is set.
      • getAggregationInterval

        public String getAggregationInterval()
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Specified by:
        getAggregationInterval in interface SubnetworkLogConfigOrBuilder
        Returns:
        The aggregationInterval.
      • getAggregationIntervalBytes

        public com.google.protobuf.ByteString getAggregationIntervalBytes()
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Specified by:
        getAggregationIntervalBytes in interface SubnetworkLogConfigOrBuilder
        Returns:
        The bytes for aggregationInterval.
      • setAggregationInterval

        public SubnetworkLogConfig.Builder setAggregationInterval​(String value)
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Parameters:
        value - The aggregationInterval to set.
        Returns:
        This builder for chaining.
      • clearAggregationInterval

        public SubnetworkLogConfig.Builder clearAggregationInterval()
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Returns:
        This builder for chaining.
      • setAggregationIntervalBytes

        public SubnetworkLogConfig.Builder setAggregationIntervalBytes​(com.google.protobuf.ByteString value)
         Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
         Check the AggregationInterval enum for the list of possible values.
         
        optional string aggregation_interval = 174919042;
        Parameters:
        value - The bytes for aggregationInterval to set.
        Returns:
        This builder for chaining.
      • hasEnable

        public boolean hasEnable()
         Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         
        optional bool enable = 311764355;
        Specified by:
        hasEnable in interface SubnetworkLogConfigOrBuilder
        Returns:
        Whether the enable field is set.
      • getEnable

        public boolean getEnable()
         Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         
        optional bool enable = 311764355;
        Specified by:
        getEnable in interface SubnetworkLogConfigOrBuilder
        Returns:
        The enable.
      • setEnable

        public SubnetworkLogConfig.Builder setEnable​(boolean value)
         Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         
        optional bool enable = 311764355;
        Parameters:
        value - The enable to set.
        Returns:
        This builder for chaining.
      • clearEnable

        public SubnetworkLogConfig.Builder clearEnable()
         Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. Flow logging isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
         
        optional bool enable = 311764355;
        Returns:
        This builder for chaining.
      • hasFilterExpr

        public boolean hasFilterExpr()
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Specified by:
        hasFilterExpr in interface SubnetworkLogConfigOrBuilder
        Returns:
        Whether the filterExpr field is set.
      • getFilterExpr

        public String getFilterExpr()
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Specified by:
        getFilterExpr in interface SubnetworkLogConfigOrBuilder
        Returns:
        The filterExpr.
      • getFilterExprBytes

        public com.google.protobuf.ByteString getFilterExprBytes()
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Specified by:
        getFilterExprBytes in interface SubnetworkLogConfigOrBuilder
        Returns:
        The bytes for filterExpr.
      • setFilterExpr

        public SubnetworkLogConfig.Builder setFilterExpr​(String value)
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Parameters:
        value - The filterExpr to set.
        Returns:
        This builder for chaining.
      • clearFilterExpr

        public SubnetworkLogConfig.Builder clearFilterExpr()
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Returns:
        This builder for chaining.
      • setFilterExprBytes

        public SubnetworkLogConfig.Builder setFilterExprBytes​(com.google.protobuf.ByteString value)
         Can only be specified if VPC flow logs for this subnetwork is enabled. The filter expression is used to define which VPC flow logs should be exported to Cloud Logging.
         
        optional string filter_expr = 183374428;
        Parameters:
        value - The bytes for filterExpr to set.
        Returns:
        This builder for chaining.
      • hasFlowSampling

        public boolean hasFlowSampling()
         Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
         
        optional float flow_sampling = 530150360;
        Specified by:
        hasFlowSampling in interface SubnetworkLogConfigOrBuilder
        Returns:
        Whether the flowSampling field is set.
      • getFlowSampling

        public float getFlowSampling()
         Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
         
        optional float flow_sampling = 530150360;
        Specified by:
        getFlowSampling in interface SubnetworkLogConfigOrBuilder
        Returns:
        The flowSampling.
      • setFlowSampling

        public SubnetworkLogConfig.Builder setFlowSampling​(float value)
         Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
         
        optional float flow_sampling = 530150360;
        Parameters:
        value - The flowSampling to set.
        Returns:
        This builder for chaining.
      • clearFlowSampling

        public SubnetworkLogConfig.Builder clearFlowSampling()
         Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
         
        optional float flow_sampling = 530150360;
        Returns:
        This builder for chaining.
      • hasMetadata

        public boolean hasMetadata()
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Specified by:
        hasMetadata in interface SubnetworkLogConfigOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public String getMetadata()
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Specified by:
        getMetadata in interface SubnetworkLogConfigOrBuilder
        Returns:
        The metadata.
      • getMetadataBytes

        public com.google.protobuf.ByteString getMetadataBytes()
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Specified by:
        getMetadataBytes in interface SubnetworkLogConfigOrBuilder
        Returns:
        The bytes for metadata.
      • setMetadata

        public SubnetworkLogConfig.Builder setMetadata​(String value)
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Parameters:
        value - The metadata to set.
        Returns:
        This builder for chaining.
      • clearMetadata

        public SubnetworkLogConfig.Builder clearMetadata()
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Returns:
        This builder for chaining.
      • setMetadataBytes

        public SubnetworkLogConfig.Builder setMetadataBytes​(com.google.protobuf.ByteString value)
         Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
         Check the Metadata enum for the list of possible values.
         
        optional string metadata = 86866735;
        Parameters:
        value - The bytes for metadata to set.
        Returns:
        This builder for chaining.
      • getMetadataFieldsList

        public com.google.protobuf.ProtocolStringList getMetadataFieldsList()
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Specified by:
        getMetadataFieldsList in interface SubnetworkLogConfigOrBuilder
        Returns:
        A list containing the metadataFields.
      • getMetadataFieldsCount

        public int getMetadataFieldsCount()
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Specified by:
        getMetadataFieldsCount in interface SubnetworkLogConfigOrBuilder
        Returns:
        The count of metadataFields.
      • getMetadataFields

        public String getMetadataFields​(int index)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Specified by:
        getMetadataFields in interface SubnetworkLogConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The metadataFields at the given index.
      • getMetadataFieldsBytes

        public com.google.protobuf.ByteString getMetadataFieldsBytes​(int index)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Specified by:
        getMetadataFieldsBytes in interface SubnetworkLogConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the metadataFields at the given index.
      • setMetadataFields

        public SubnetworkLogConfig.Builder setMetadataFields​(int index,
                                                             String value)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Parameters:
        index - The index to set the value at.
        value - The metadataFields to set.
        Returns:
        This builder for chaining.
      • addMetadataFields

        public SubnetworkLogConfig.Builder addMetadataFields​(String value)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Parameters:
        value - The metadataFields to add.
        Returns:
        This builder for chaining.
      • addAllMetadataFields

        public SubnetworkLogConfig.Builder addAllMetadataFields​(Iterable<String> values)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Parameters:
        values - The metadataFields to add.
        Returns:
        This builder for chaining.
      • clearMetadataFields

        public SubnetworkLogConfig.Builder clearMetadataFields()
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Returns:
        This builder for chaining.
      • addMetadataFieldsBytes

        public SubnetworkLogConfig.Builder addMetadataFieldsBytes​(com.google.protobuf.ByteString value)
         Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
         
        repeated string metadata_fields = 378461641;
        Parameters:
        value - The bytes of the metadataFields to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>
      • mergeUnknownFields

        public final SubnetworkLogConfig.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<SubnetworkLogConfig.Builder>