public static final class SearchIncidentsRequest.Builder extends GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder> implements SearchIncidentsRequestOrBuilder
Request for the SearchIncidents method.Protobuf type
google.cloud.irm.v1alpha2.SearchIncidentsRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic SearchIncidentsRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic SearchIncidentsRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic SearchIncidentsRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder mergeFrom(SearchIncidentsRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public SearchIncidentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<SearchIncidentsRequest.Builder>IOExceptionpublic 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 SearchIncidentsRequest.Builder setParent(String value)
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) = { ... }
value - The parent to set.public SearchIncidentsRequest.Builder clearParent()
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) = { ... }
public SearchIncidentsRequest.Builder setParentBytes(ByteString value)
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) = { ... }
value - The bytes for parent to set.public 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 SearchIncidentsRequest.Builder setQuery(String value)
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;value - The query to set.public SearchIncidentsRequest.Builder clearQuery()
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;public SearchIncidentsRequest.Builder setQueryBytes(ByteString value)
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;value - The bytes for query to set.public int getPageSize()
Number of incidents to return.
int32 page_size = 3;getPageSize in interface SearchIncidentsRequestOrBuilderpublic SearchIncidentsRequest.Builder setPageSize(int value)
Number of incidents to return.
int32 page_size = 3;value - The pageSize to set.public SearchIncidentsRequest.Builder clearPageSize()
Number of incidents to return.
int32 page_size = 3;public 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 SearchIncidentsRequest.Builder setPageToken(String value)
Page token from an earlier query, as returned in `next_page_token`.
string page_token = 4;value - The pageToken to set.public SearchIncidentsRequest.Builder clearPageToken()
Page token from an earlier query, as returned in `next_page_token`.
string page_token = 4;public SearchIncidentsRequest.Builder setPageTokenBytes(ByteString value)
Page token from an earlier query, as returned in `next_page_token`.
string page_token = 4;value - The bytes for pageToken to set.public 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 SearchIncidentsRequest.Builder setTimeZone(String value)
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;value - The timeZone to set.public SearchIncidentsRequest.Builder clearTimeZone()
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;public SearchIncidentsRequest.Builder setTimeZoneBytes(ByteString value)
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;value - The bytes for timeZone to set.public final SearchIncidentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>public final SearchIncidentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<SearchIncidentsRequest.Builder>Copyright © 2020 Google LLC. All rights reserved.