Interface SnoozeOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Snooze, Snooze.Builder

@Generated public interface SnoozeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Required. Identifier. 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) = IDENTIFIER];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Required. Identifier. 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) = IDENTIFIER];
      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.