Package com.google.monitoring.v3
Interface SnoozeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Snooze,Snooze.Builder
public interface SnoozeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Snooze.CriteriagetCriteria()Required.Snooze.CriteriaOrBuildergetCriteriaOrBuilder()Required.StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.TimeIntervalgetInterval()Required.TimeIntervalOrBuildergetIntervalOrBuilder()Required.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.booleanhasCriteria()Required.booleanhasInterval()Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Required. The name of the `Snooze`. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the `Snooze` will be generated by the system.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Required. The name of the `Snooze`. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the `Snooze` will be generated by the system.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for name.
-
hasCriteria
boolean hasCriteria()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the criteria field is set.
-
getCriteria
Snooze.Criteria getCriteria()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The criteria.
-
getCriteriaOrBuilder
Snooze.CriteriaOrBuilder getCriteriaOrBuilder()
Required. This defines the criteria for applying the `Snooze`. See `Criteria` for more information.
.google.monitoring.v3.Snooze.Criteria criteria = 3 [(.google.api.field_behavior) = REQUIRED];
-
hasInterval
boolean hasInterval()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the interval field is set.
-
getInterval
TimeInterval getInterval()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The interval.
-
getIntervalOrBuilder
TimeIntervalOrBuilder getIntervalOrBuilder()
Required. The `Snooze` will be active from `interval.start_time` through `interval.end_time`. `interval.start_time` cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.
.google.monitoring.v3.TimeInterval interval = 4 [(.google.api.field_behavior) = REQUIRED];
-
getDisplayName
String getDisplayName()
Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.
string display_name = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()
Required. A display name for the `Snooze`. This can be, at most, 512 unicode characters.
string display_name = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for displayName.
-
-