Class IncidentList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder>
com.google.monitoring.dashboard.v1.IncidentList.Builder
All Implemented Interfaces:
IncidentListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IncidentList

public static final class IncidentList.Builder extends com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder> implements IncidentListOrBuilder
 A widget that displays a list of incidents
 
Protobuf type google.monitoring.dashboard.v1.IncidentList
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder>
    • clear

      public IncidentList.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder>
    • getDefaultInstanceForType

      public IncidentList getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public IncidentList build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public IncidentList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public IncidentList.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IncidentList.Builder>
    • mergeFrom

      public IncidentList.Builder mergeFrom(IncidentList other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<IncidentList.Builder>
    • mergeFrom

      public IncidentList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IncidentList.Builder>
      Throws:
      IOException
    • getMonitoredResourcesList

      public List<MonitoredResource> getMonitoredResourcesList()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoredResourcesList in interface IncidentListOrBuilder
    • getMonitoredResourcesCount

      public int getMonitoredResourcesCount()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoredResourcesCount in interface IncidentListOrBuilder
    • getMonitoredResources

      public MonitoredResource getMonitoredResources(int index)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoredResources in interface IncidentListOrBuilder
    • setMonitoredResources

      public IncidentList.Builder setMonitoredResources(int index, MonitoredResource value)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setMonitoredResources

      public IncidentList.Builder setMonitoredResources(int index, MonitoredResource.Builder builderForValue)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addMonitoredResources

      public IncidentList.Builder addMonitoredResources(MonitoredResource value)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addMonitoredResources

      public IncidentList.Builder addMonitoredResources(int index, MonitoredResource value)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addMonitoredResources

      public IncidentList.Builder addMonitoredResources(MonitoredResource.Builder builderForValue)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addMonitoredResources

      public IncidentList.Builder addMonitoredResources(int index, MonitoredResource.Builder builderForValue)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllMonitoredResources

      public IncidentList.Builder addAllMonitoredResources(Iterable<? extends MonitoredResource> values)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearMonitoredResources

      public IncidentList.Builder clearMonitoredResources()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeMonitoredResources

      public IncidentList.Builder removeMonitoredResources(int index)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMonitoredResourcesBuilder

      public MonitoredResource.Builder getMonitoredResourcesBuilder(int index)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMonitoredResourcesOrBuilder

      public MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(int index)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoredResourcesOrBuilder in interface IncidentListOrBuilder
    • getMonitoredResourcesOrBuilderList

      public List<? extends MonitoredResourceOrBuilder> getMonitoredResourcesOrBuilderList()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMonitoredResourcesOrBuilderList in interface IncidentListOrBuilder
    • addMonitoredResourcesBuilder

      public MonitoredResource.Builder addMonitoredResourcesBuilder()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addMonitoredResourcesBuilder

      public MonitoredResource.Builder addMonitoredResourcesBuilder(int index)
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMonitoredResourcesBuilderList

      public List<MonitoredResource.Builder> getMonitoredResourcesBuilderList()
       Optional. The monitored resource for which incidents are listed.
       The resource doesn't need to be fully specified. That is, you can specify
       the resource type but not the values of the resource labels.
       The resource type and labels are used for filtering.
       
      repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getPolicyNamesList

      public com.google.protobuf.ProtocolStringList getPolicyNamesList()
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyNamesList in interface IncidentListOrBuilder
      Returns:
      A list containing the policyNames.
    • getPolicyNamesCount

      public int getPolicyNamesCount()
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyNamesCount in interface IncidentListOrBuilder
      Returns:
      The count of policyNames.
    • getPolicyNames

      public String getPolicyNames(int index)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyNames in interface IncidentListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The policyNames at the given index.
    • getPolicyNamesBytes

      public com.google.protobuf.ByteString getPolicyNamesBytes(int index)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPolicyNamesBytes in interface IncidentListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the policyNames at the given index.
    • setPolicyNames

      public IncidentList.Builder setPolicyNames(int index, String value)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The policyNames to set.
      Returns:
      This builder for chaining.
    • addPolicyNames

      public IncidentList.Builder addPolicyNames(String value)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The policyNames to add.
      Returns:
      This builder for chaining.
    • addAllPolicyNames

      public IncidentList.Builder addAllPolicyNames(Iterable<String> values)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The policyNames to add.
      Returns:
      This builder for chaining.
    • clearPolicyNames

      public IncidentList.Builder clearPolicyNames()
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addPolicyNamesBytes

      public IncidentList.Builder addPolicyNamesBytes(com.google.protobuf.ByteString value)
       Optional. A list of alert policy names to filter the incident list by.
       Don't include the project ID prefix in the policy name. For
       example, use `alertPolicies/utilization`.
       
      repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the policyNames to add.
      Returns:
      This builder for chaining.