Class OrganizationImpact.Builder (0.6.0)

public static final class OrganizationImpact.Builder extends GeneratedMessageV3.Builder<OrganizationImpact.Builder> implements OrganizationImpactOrBuilder

Represents impact to assets at organizational level. It is a read-only view and does not allow any modifications.

Protobuf type google.cloud.servicehealth.v1.OrganizationImpact

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllEvents(Iterable<String> values)

public OrganizationImpact.Builder addAllEvents(Iterable<String> values)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The events to add.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

addEvents(String value)

public OrganizationImpact.Builder addEvents(String value)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The events to add.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

addEventsBytes(ByteString value)

public OrganizationImpact.Builder addEventsBytes(ByteString value)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the events to add.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrganizationImpact build()
Returns
TypeDescription
OrganizationImpact

buildPartial()

public OrganizationImpact buildPartial()
Returns
TypeDescription
OrganizationImpact

clear()

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

clearAsset()

public OrganizationImpact.Builder clearAsset()

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
OrganizationImpact.Builder

clearEvents()

public OrganizationImpact.Builder clearEvents()

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OrganizationImpact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OrganizationImpact.Builder
Overrides

clearName()

public OrganizationImpact.Builder clearName()

Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}.

organization_id - ID (number) of the organization that contains the event. To get your organization_id, see Getting your organization resource ID.<br> organization_impact_id - ID of the OrganizationImpact resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OrganizationImpact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OrganizationImpact.Builder
Overrides

clearUpdateTime()

public OrganizationImpact.Builder clearUpdateTime()

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
OrganizationImpact.Builder

clone()

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

getAsset()

public Asset getAsset()

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset

The asset.

getAssetBuilder()

public Asset.Builder getAssetBuilder()

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Asset.Builder

getAssetOrBuilder()

public AssetOrBuilder getAssetOrBuilder()

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AssetOrBuilder

getDefaultInstanceForType()

public OrganizationImpact getDefaultInstanceForType()
Returns
TypeDescription
OrganizationImpact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEvents(int index)

public String getEvents(int index)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The events at the given index.

getEventsBytes(int index)

public ByteString getEventsBytes(int index)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the events at the given index.

getEventsCount()

public int getEventsCount()

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of events.

getEventsList()

public ProtocolStringList getEventsList()

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the events.

getName()

public String getName()

Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}.

organization_id - ID (number) of the organization that contains the event. To get your organization_id, see Getting your organization resource ID.<br> organization_impact_id - ID of the OrganizationImpact resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}.

organization_id - ID (number) of the organization that contains the event. To get your organization_id, see Getting your organization resource ID.<br> organization_impact_id - ID of the OrganizationImpact resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAsset()

public boolean hasAsset()

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the asset field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAsset(Asset value)

public OrganizationImpact.Builder mergeAsset(Asset value)

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset
Returns
TypeDescription
OrganizationImpact.Builder

mergeFrom(OrganizationImpact other)

public OrganizationImpact.Builder mergeFrom(OrganizationImpact other)
Parameter
NameDescription
otherOrganizationImpact
Returns
TypeDescription
OrganizationImpact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrganizationImpact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrganizationImpact.Builder
Overrides

mergeUpdateTime(Timestamp value)

public OrganizationImpact.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OrganizationImpact.Builder

setAsset(Asset value)

public OrganizationImpact.Builder setAsset(Asset value)

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueAsset
Returns
TypeDescription
OrganizationImpact.Builder

setAsset(Asset.Builder builderForValue)

public OrganizationImpact.Builder setAsset(Asset.Builder builderForValue)

Output only. Google Cloud asset possibly impacted by the specified events.

.google.cloud.servicehealth.v1.Asset asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueAsset.Builder
Returns
TypeDescription
OrganizationImpact.Builder

setEvents(int index, String value)

public OrganizationImpact.Builder setEvents(int index, String value)

Output only. A list of event names impacting the asset.

repeated string events = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The events to set.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public OrganizationImpact.Builder setName(String value)

Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}.

organization_id - ID (number) of the organization that contains the event. To get your organization_id, see Getting your organization resource ID.<br> organization_impact_id - ID of the OrganizationImpact resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OrganizationImpact.Builder setNameBytes(ByteString value)

Output only. Identifier. Unique name of the organization impact in this scope including organization and location using the form organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}.

organization_id - ID (number) of the organization that contains the event. To get your organization_id, see Getting your organization resource ID.<br> organization_impact_id - ID of the OrganizationImpact resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
OrganizationImpact.Builder

This builder for chaining.

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

public OrganizationImpact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrganizationImpact.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public OrganizationImpact.Builder setUpdateTime(Timestamp value)

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OrganizationImpact.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public OrganizationImpact.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the affected project was last modified.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OrganizationImpact.Builder