Package com.google.monitoring.v3
Class AlertPolicy.Condition.LogMatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
- com.google.monitoring.v3.AlertPolicy.Condition.LogMatch.Builder
-
- All Implemented Interfaces:
AlertPolicy.Condition.LogMatchOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AlertPolicy.Condition.LogMatch
public static final class AlertPolicy.Condition.LogMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder> implements AlertPolicy.Condition.LogMatchOrBuilder
A condition type that checks whether a log message in the [scoping project](https://cloud.google.com/monitoring/api/v3#project_name) satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.
Protobuf typegoogle.monitoring.v3.AlertPolicy.Condition.LogMatch
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
clear
public AlertPolicy.Condition.LogMatch.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
getDefaultInstanceForType
public AlertPolicy.Condition.LogMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AlertPolicy.Condition.LogMatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AlertPolicy.Condition.LogMatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AlertPolicy.Condition.LogMatch.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
setField
public AlertPolicy.Condition.LogMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
clearField
public AlertPolicy.Condition.LogMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
clearOneof
public AlertPolicy.Condition.LogMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
setRepeatedField
public AlertPolicy.Condition.LogMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
addRepeatedField
public AlertPolicy.Condition.LogMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
mergeFrom
public AlertPolicy.Condition.LogMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
mergeFrom
public AlertPolicy.Condition.LogMatch.Builder mergeFrom(AlertPolicy.Condition.LogMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
mergeFrom
public AlertPolicy.Condition.LogMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlertPolicy.Condition.LogMatch.Builder>
- Throws:
IOException
-
getFilter
public String getFilter()
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFilter
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getFilterBytes
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
- Returns:
- The bytes for filter.
-
setFilter
public AlertPolicy.Condition.LogMatch.Builder setFilter(String value)
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
public AlertPolicy.Condition.LogMatch.Builder clearFilter()
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setFilterBytes
public AlertPolicy.Condition.LogMatch.Builder setFilterBytes(com.google.protobuf.ByteString value)
Required. A logs-based filter. See [Advanced Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries) for how this filter should be constructed.
string filter = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for filter to set.- Returns:
- This builder for chaining.
-
getLabelExtractorsCount
public int getLabelExtractorsCount()
Description copied from interface:AlertPolicy.Condition.LogMatchOrBuilder
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
- Specified by:
getLabelExtractorsCount
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
containsLabelExtractors
public boolean containsLabelExtractors(String key)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
- Specified by:
containsLabelExtractors
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractors
@Deprecated public Map<String,String> getLabelExtractors()
Deprecated.UsegetLabelExtractorsMap()
instead.- Specified by:
getLabelExtractors
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsMap
public Map<String,String> getLabelExtractorsMap()
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
- Specified by:
getLabelExtractorsMap
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsOrDefault
public String getLabelExtractorsOrDefault(String key, String defaultValue)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
- Specified by:
getLabelExtractorsOrDefault
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
getLabelExtractorsOrThrow
public String getLabelExtractorsOrThrow(String key)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
- Specified by:
getLabelExtractorsOrThrow
in interfaceAlertPolicy.Condition.LogMatchOrBuilder
-
clearLabelExtractors
public AlertPolicy.Condition.LogMatch.Builder clearLabelExtractors()
-
removeLabelExtractors
public AlertPolicy.Condition.LogMatch.Builder removeLabelExtractors(String key)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
-
getMutableLabelExtractors
@Deprecated public Map<String,String> getMutableLabelExtractors()
Deprecated.Use alternate mutation accessors instead.
-
putLabelExtractors
public AlertPolicy.Condition.LogMatch.Builder putLabelExtractors(String key, String value)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
-
putAllLabelExtractors
public AlertPolicy.Condition.LogMatch.Builder putAllLabelExtractors(Map<String,String> values)
Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match `filter`. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition. Please see [the documentation on logs-based metric `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor) for syntax and examples.
map<string, string> label_extractors = 2;
-
setUnknownFields
public final AlertPolicy.Condition.LogMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
mergeUnknownFields
public final AlertPolicy.Condition.LogMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlertPolicy.Condition.LogMatch.Builder>
-
-