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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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
|
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
|
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
|
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
|
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.
|
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public IncidentList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public IncidentList build()
buildPartial()
public IncidentList buildPartial()
clear()
public IncidentList.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public IncidentList.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public IncidentList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public IncidentList.Builder clone()
Overrides
getDefaultInstanceForType()
public IncidentList getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(IncidentList other)
public IncidentList.Builder mergeFrom(IncidentList other)
public IncidentList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public IncidentList.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final IncidentList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public IncidentList.Builder setField(Descriptors.FieldDescriptor field, Object value)
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
|
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
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public IncidentList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final IncidentList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides