Class IncidentList.Builder (2.44.0)

public static final class IncidentList.Builder extends GeneratedMessageV3.Builder<IncidentList.Builder> implements IncidentListOrBuilder

A widget that displays a list of incidents

Protobuf type google.monitoring.dashboard.v1.IncidentList

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMonitoredResources(Iterable<? extends MonitoredResource> values)

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

Parameter
Name Description
values Iterable<? extends com.google.api.MonitoredResource>
Returns
Type Description
IncidentList.Builder

addAllPolicyNames(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The policyNames to add.

Returns
Type Description
IncidentList.Builder

This builder for chaining.

addMonitoredResources(MonitoredResource value)

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

Parameter
Name Description
value com.google.api.MonitoredResource
Returns
Type Description
IncidentList.Builder

addMonitoredResources(MonitoredResource.Builder builderForValue)

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

Parameter
Name Description
builderForValue com.google.api.MonitoredResource.Builder
Returns
Type Description
IncidentList.Builder

addMonitoredResources(int index, MonitoredResource value)

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

Parameters
Name Description
index int
value com.google.api.MonitoredResource
Returns
Type Description
IncidentList.Builder

addMonitoredResources(int index, MonitoredResource.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue com.google.api.MonitoredResource.Builder
Returns
Type Description
IncidentList.Builder

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

Returns
Type Description
com.google.api.MonitoredResource.Builder

addMonitoredResourcesBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResource.Builder

addPolicyNames(String value)

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

Parameter
Name Description
value String

The policyNames to add.

Returns
Type Description
IncidentList.Builder

This builder for chaining.

addPolicyNamesBytes(ByteString value)

public IncidentList.Builder addPolicyNamesBytes(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];

Parameter
Name Description
value ByteString

The bytes of the policyNames to add.

Returns
Type Description
IncidentList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IncidentList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IncidentList.Builder
Overrides

build()

public IncidentList build()
Returns
Type Description
IncidentList

buildPartial()

public IncidentList buildPartial()
Returns
Type Description
IncidentList

clear()

public IncidentList.Builder clear()
Returns
Type Description
IncidentList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IncidentList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IncidentList.Builder
Overrides

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

Returns
Type Description
IncidentList.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IncidentList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IncidentList.Builder
Overrides

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
Type Description
IncidentList.Builder

This builder for chaining.

clone()

public IncidentList.Builder clone()
Returns
Type Description
IncidentList.Builder
Overrides

getDefaultInstanceForType()

public IncidentList getDefaultInstanceForType()
Returns
Type Description
IncidentList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMonitoredResources(int index)

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

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResource

getMonitoredResourcesBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResource.Builder

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

Returns
Type Description
List<com.google.api.MonitoredResource.Builder>

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

Returns
Type Description
int

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

Returns
Type Description
List<com.google.api.MonitoredResource>

getMonitoredResourcesOrBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceOrBuilder

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

Returns
Type Description
List<? extends com.google.api.MonitoredResourceOrBuilder>

getPolicyNames(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The policyNames at the given index.

getPolicyNamesBytes(int index)

public 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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the policyNames at the given index.

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

Returns
Type Description
int

The count of policyNames.

getPolicyNamesList()

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

Returns
Type Description
ProtocolStringList

A list containing the policyNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IncidentList other)

public IncidentList.Builder mergeFrom(IncidentList other)
Parameter
Name Description
other IncidentList
Returns
Type Description
IncidentList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IncidentList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IncidentList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IncidentList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IncidentList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IncidentList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IncidentList.Builder
Overrides

removeMonitoredResources(int index)

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

Parameter
Name Description
index int
Returns
Type Description
IncidentList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IncidentList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IncidentList.Builder
Overrides

setMonitoredResources(int index, MonitoredResource value)

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

Parameters
Name Description
index int
value com.google.api.MonitoredResource
Returns
Type Description
IncidentList.Builder

setMonitoredResources(int index, MonitoredResource.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue com.google.api.MonitoredResource.Builder
Returns
Type Description
IncidentList.Builder

setPolicyNames(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The policyNames to set.

Returns
Type Description
IncidentList.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IncidentList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IncidentList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IncidentList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IncidentList.Builder
Overrides