public final class SearchIncidentsRequest extends GeneratedMessageV3 implements SearchIncidentsRequestOrBuilder
Request for the SearchIncidents method.Protobuf type
google.cloud.irm.v1alpha2.SearchIncidentsRequest| Modifier and Type | Class and Description |
|---|---|
static class |
SearchIncidentsRequest.Builder
Request for the SearchIncidents method.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
PAGE_TOKEN_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
TIME_ZONE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PARENT_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public String getParent()
Required. The resource name of the hosting Stackdriver project which requested incidents belong to.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface SearchIncidentsRequestOrBuilderpublic ByteString getParentBytes()
Required. The resource name of the hosting Stackdriver project which requested incidents belong to.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface SearchIncidentsRequestOrBuilderpublic String getQuery()
An expression that defines which incidents to return.
Search atoms can be used to match certain specific fields. Otherwise,
plain text will match text fields in the incident.
Search atoms:
* `start` - (timestamp) The time the incident started.
* `stage` - The stage of the incident, one of detected, triaged, mitigated,
resolved, documented, or duplicate (which correspond to values in the
Incident.Stage enum). These are ordered, so `stage<resolved` is
equivalent to `stage:detected OR stage:triaged OR stage:mitigated`.
* `severity` - (Incident.Severity) The severity of the incident.
+ Supports matching on a specific severity (for example,
`severity:major`) or on a range (for example, `severity>medium`,
`severity<=minor`, etc.).
Timestamp formats:
* yyyy-MM-dd - an absolute date, treated as a calendar-day-wide window.
In other words, the "<" operator will match dates before that date, the
">" operator will match dates after that date, and the ":" or "="
operators will match the entire day.
* Nd (for example, 7d) - a relative number of days ago, treated as a moment
in time (as opposed to a day-wide span). A multiple of 24 hours ago (as
opposed to calendar days). In the case of daylight savings time, it will
apply the current timezone to both ends of the range. Note that exact
matching (for example, `start:7d`) is unlikely to be useful because that
would only match incidents created precisely at a particular instant in
time.
Examples:
* `foo` - matches incidents containing the word "foo"
* `"foo bar"` - matches incidents containing the phrase "foo bar"
* `foo bar` or `foo AND bar` - matches incidents containing the words "foo"
and "bar"
* `foo -bar` or `foo AND NOT bar` - matches incidents containing the word
"foo" but not the word "bar"
* `foo OR bar` - matches incidents containing the word "foo" or the word
"bar"
* `start>2018-11-28` - matches incidents which started after November 11,
2018.
* `start<=2018-11-28` - matches incidents which started on or before
November 11, 2018.
* `start:2018-11-28` - matches incidents which started on November 11,
2018.
* `start>7d` - matches incidents which started after the point in time 7*24
hours ago
* `start>180d` - similar to 7d, but likely to cross the daylight savings
time boundary, so the end time will be 1 hour different from "now."
* `foo AND start>90d AND stage<resolved` - unresolved incidents from the
past 90 days containing the word "foo"
string query = 2;getQuery in interface SearchIncidentsRequestOrBuilderpublic ByteString getQueryBytes()
An expression that defines which incidents to return.
Search atoms can be used to match certain specific fields. Otherwise,
plain text will match text fields in the incident.
Search atoms:
* `start` - (timestamp) The time the incident started.
* `stage` - The stage of the incident, one of detected, triaged, mitigated,
resolved, documented, or duplicate (which correspond to values in the
Incident.Stage enum). These are ordered, so `stage<resolved` is
equivalent to `stage:detected OR stage:triaged OR stage:mitigated`.
* `severity` - (Incident.Severity) The severity of the incident.
+ Supports matching on a specific severity (for example,
`severity:major`) or on a range (for example, `severity>medium`,
`severity<=minor`, etc.).
Timestamp formats:
* yyyy-MM-dd - an absolute date, treated as a calendar-day-wide window.
In other words, the "<" operator will match dates before that date, the
">" operator will match dates after that date, and the ":" or "="
operators will match the entire day.
* Nd (for example, 7d) - a relative number of days ago, treated as a moment
in time (as opposed to a day-wide span). A multiple of 24 hours ago (as
opposed to calendar days). In the case of daylight savings time, it will
apply the current timezone to both ends of the range. Note that exact
matching (for example, `start:7d`) is unlikely to be useful because that
would only match incidents created precisely at a particular instant in
time.
Examples:
* `foo` - matches incidents containing the word "foo"
* `"foo bar"` - matches incidents containing the phrase "foo bar"
* `foo bar` or `foo AND bar` - matches incidents containing the words "foo"
and "bar"
* `foo -bar` or `foo AND NOT bar` - matches incidents containing the word
"foo" but not the word "bar"
* `foo OR bar` - matches incidents containing the word "foo" or the word
"bar"
* `start>2018-11-28` - matches incidents which started after November 11,
2018.
* `start<=2018-11-28` - matches incidents which started on or before
November 11, 2018.
* `start:2018-11-28` - matches incidents which started on November 11,
2018.
* `start>7d` - matches incidents which started after the point in time 7*24
hours ago
* `start>180d` - similar to 7d, but likely to cross the daylight savings
time boundary, so the end time will be 1 hour different from "now."
* `foo AND start>90d AND stage<resolved` - unresolved incidents from the
past 90 days containing the word "foo"
string query = 2;getQueryBytes in interface SearchIncidentsRequestOrBuilderpublic int getPageSize()
Number of incidents to return.
int32 page_size = 3;getPageSize in interface SearchIncidentsRequestOrBuilderpublic String getPageToken()
Page token from an earlier query, as returned in `next_page_token`.
string page_token = 4;getPageToken in interface SearchIncidentsRequestOrBuilderpublic ByteString getPageTokenBytes()
Page token from an earlier query, as returned in `next_page_token`.
string page_token = 4;getPageTokenBytes in interface SearchIncidentsRequestOrBuilderpublic String getTimeZone()
The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles". For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If no time zone is specified, the default is UTC.
string time_zone = 5;getTimeZone in interface SearchIncidentsRequestOrBuilderpublic ByteString getTimeZoneBytes()
The time zone name. It should be an IANA TZ name, such as "America/Los_Angeles". For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If no time zone is specified, the default is UTC.
string time_zone = 5;getTimeZoneBytes in interface SearchIncidentsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SearchIncidentsRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SearchIncidentsRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchIncidentsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchIncidentsRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchIncidentsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchIncidentsRequest parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static SearchIncidentsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchIncidentsRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SearchIncidentsRequest.Builder newBuilder()
public static SearchIncidentsRequest.Builder newBuilder(SearchIncidentsRequest prototype)
public SearchIncidentsRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SearchIncidentsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SearchIncidentsRequest getDefaultInstance()
public static Parser<SearchIncidentsRequest> parser()
public Parser<SearchIncidentsRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SearchIncidentsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.