Interface IncidentListOrBuilder (2.42.0)

public interface IncidentListOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMonitoredResources(int index)

public abstract 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];

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.MonitoredResource

getMonitoredResourcesCount()

public abstract 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];

Returns
TypeDescription
int

getMonitoredResourcesList()

public abstract 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];

Returns
TypeDescription
List<com.google.api.MonitoredResource>

getMonitoredResourcesOrBuilder(int index)

public abstract 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];

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.api.MonitoredResourceOrBuilder

getMonitoredResourcesOrBuilderList()

public abstract 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];

Returns
TypeDescription
List<? extends com.google.api.MonitoredResourceOrBuilder>

getPolicyNames(int index)

public abstract 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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The policyNames at the given index.

getPolicyNamesBytes(int index)

public abstract 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];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the policyNames at the given index.

getPolicyNamesCount()

public abstract 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];

Returns
TypeDescription
int

The count of policyNames.

getPolicyNamesList()

public abstract List<String> 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];

Returns
TypeDescription
List<String>

A list containing the policyNames.