Class IncidentList.Builder (2.38.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.MonitoredResource>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The policyNames to add.

Returns
TypeDescription
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
NameDescription
valuecom.google.api.MonitoredResource
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.api.MonitoredResource.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.api.MonitoredResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.api.MonitoredResource.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The policyNames to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the policyNames to add.

Returns
TypeDescription
IncidentList.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IncidentList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IncidentList.Builder
Overrides

build()

public IncidentList build()
Returns
TypeDescription
IncidentList

buildPartial()

public IncidentList buildPartial()
Returns
TypeDescription
IncidentList

clear()

public IncidentList.Builder clear()
Returns
TypeDescription
IncidentList.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IncidentList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
IncidentList.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IncidentList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
IncidentList.Builder

This builder for chaining.

clone()

public IncidentList.Builder clone()
Returns
TypeDescription
IncidentList.Builder
Overrides

getDefaultInstanceForType()

public IncidentList getDefaultInstanceForType()
Returns
TypeDescription
IncidentList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the policyNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IncidentList other)

public IncidentList.Builder mergeFrom(IncidentList other)
Parameter
NameDescription
otherIncidentList
Returns
TypeDescription
IncidentList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IncidentList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IncidentList.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IncidentList.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IncidentList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IncidentList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
IncidentList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IncidentList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.api.MonitoredResource
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.api.MonitoredResource.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The policyNames to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IncidentList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IncidentList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IncidentList.Builder
Overrides