Class OrganizationImpact (0.20.0)

public final class OrganizationImpact extends GeneratedMessageV3 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 Fields

ASSET_FIELD_NUMBER

public static final int ASSET_FIELD_NUMBER
Field Value
Type Description
int

EVENTS_FIELD_NUMBER

public static final int EVENTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrganizationImpact getDefaultInstance()
Returns
Type Description
OrganizationImpact

getDescriptor()

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

newBuilder()

public static OrganizationImpact.Builder newBuilder()
Returns
Type Description
OrganizationImpact.Builder

newBuilder(OrganizationImpact prototype)

public static OrganizationImpact.Builder newBuilder(OrganizationImpact prototype)
Parameter
Name Description
prototype OrganizationImpact
Returns
Type Description
OrganizationImpact.Builder

parseDelimitedFrom(InputStream input)

public static OrganizationImpact parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OrganizationImpact parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OrganizationImpact parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OrganizationImpact parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OrganizationImpact parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OrganizationImpact parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OrganizationImpact parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OrganizationImpact
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OrganizationImpact> parser()
Returns
Type Description
Parser<OrganizationImpact>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
Asset

The asset.

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
Type Description
AssetOrBuilder

getDefaultInstanceForType()

public OrganizationImpact getDefaultInstanceForType()
Returns
Type Description
OrganizationImpact

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

The index of the element to return.

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

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<OrganizationImpact> getParserForType()
Returns
Type Description
Parser<OrganizationImpact>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
Timestamp

The updateTime.

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrganizationImpact.Builder newBuilderForType()
Returns
Type Description
OrganizationImpact.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OrganizationImpact.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OrganizationImpact.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OrganizationImpact.Builder toBuilder()
Returns
Type Description
OrganizationImpact.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException