Class Event (0.13.0)

public final class Event extends GeneratedMessageV3 implements EventOrBuilder

Represents service health events that may affect Google Cloud products. Event resource is a read-only view and does not allow any modifications. All fields are output only.

Protobuf type google.cloud.servicehealth.v1.Event

Implements

EventOrBuilder

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DETAILED_CATEGORY_FIELD_NUMBER

public static final int DETAILED_CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

DETAILED_STATE_FIELD_NUMBER

public static final int DETAILED_STATE_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

EVENT_IMPACTS_FIELD_NUMBER

public static final int EVENT_IMPACTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NEXT_UPDATE_TIME_FIELD_NUMBER

public static final int NEXT_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PARENT_EVENT_FIELD_NUMBER

public static final int PARENT_EVENT_FIELD_NUMBER
Field Value
Type Description
int

RELEVANCE_FIELD_NUMBER

public static final int RELEVANCE_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

UPDATES_FIELD_NUMBER

public static final int UPDATES_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 Event getDefaultInstance()
Returns
Type Description
Event

getDescriptor()

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

newBuilder()

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

newBuilder(Event prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCategory()

public Event.EventCategory getCategory()

Output only. The category of the event.

.google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.EventCategory

The category.

getCategoryValue()

public int getCategoryValue()

Output only. The category of the event.

.google.cloud.servicehealth.v1.Event.EventCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for category.

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
Type Description
Event

getDescription()

public String getDescription()

Output only. Free-form, human-readable description.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Free-form, human-readable description.

string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDetailedCategory()

public Event.DetailedCategory getDetailedCategory()

Output only. The detailed category of the event.

.google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.DetailedCategory

The detailedCategory.

getDetailedCategoryValue()

public int getDetailedCategoryValue()

Output only. The detailed category of the event.

.google.cloud.servicehealth.v1.Event.DetailedCategory detailed_category = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for detailedCategory.

getDetailedState()

public Event.DetailedState getDetailedState()

Output only. The current detailed state of the incident.

.google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.DetailedState

The detailedState.

getDetailedStateValue()

public int getDetailedStateValue()

Output only. The current detailed state of the incident.

.google.cloud.servicehealth.v1.Event.DetailedState detailed_state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for detailedState.

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the event, if applicable.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the event, if applicable.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEventImpacts(int index)

public EventImpact getEventImpacts(int index)

Google Cloud products and locations impacted by the event.

repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20;

Parameter
Name Description
index int
Returns
Type Description
EventImpact

getEventImpactsCount()

public int getEventImpactsCount()

Google Cloud products and locations impacted by the event.

repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20;

Returns
Type Description
int

getEventImpactsList()

public List<EventImpact> getEventImpactsList()

Google Cloud products and locations impacted by the event.

repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20;

Returns
Type Description
List<EventImpact>

getEventImpactsOrBuilder(int index)

public EventImpactOrBuilder getEventImpactsOrBuilder(int index)

Google Cloud products and locations impacted by the event.

repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20;

Parameter
Name Description
index int
Returns
Type Description
EventImpactOrBuilder

getEventImpactsOrBuilderList()

public List<? extends EventImpactOrBuilder> getEventImpactsOrBuilderList()

Google Cloud products and locations impacted by the event.

repeated .google.cloud.servicehealth.v1.EventImpact event_impacts = 20;

Returns
Type Description
List<? extends com.google.cloud.servicehealth.v1.EventImpactOrBuilder>

getName()

public String getName()

Output only. Identifier. Name of the event. Unique name of the event in this scope including project and location using the form projects/{project_id}/locations/{location}/events/{event_id}.

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. Name of the event. Unique name of the event in this scope including project and location using the form projects/{project_id}/locations/{location}/events/{event_id}.

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

Returns
Type Description
ByteString

The bytes for name.

getNextUpdateTime()

public Timestamp getNextUpdateTime()

Output only. The time when the next update can be expected.

.google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The nextUpdateTime.

getNextUpdateTimeOrBuilder()

public TimestampOrBuilder getNextUpdateTimeOrBuilder()

Output only. The time when the next update can be expected.

.google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParentEvent()

public String getParentEvent()

Output only. When detailed_state=MERGED, parent_event contains the name of the parent event. All further updates will be published to the parent event.

string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The parentEvent.

getParentEventBytes()

public ByteString getParentEventBytes()

Output only. When detailed_state=MERGED, parent_event contains the name of the parent event. All further updates will be published to the parent event.

string parent_event = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for parentEvent.

getParserForType()

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

getRelevance()

public Event.Relevance getRelevance()

Output only. Communicates why a given event is deemed relevant in the context of a given project.

.google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.Relevance

The relevance.

getRelevanceValue()

public int getRelevanceValue()

Output only. Communicates why a given event is deemed relevant in the context of a given project.

.google.cloud.servicehealth.v1.Event.Relevance relevance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for relevance.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the event, if applicable.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the event, if applicable.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public Event.State getState()

Output only. The current state of the event.

.google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the event.

.google.cloud.servicehealth.v1.Event.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTitle()

public String getTitle()

Output only. Brief description for the event.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. Brief description for the event.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for title.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the event was last modified.

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

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the event was last modified.

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

Returns
Type Description
TimestampOrBuilder

getUpdates(int index)

public EventUpdate getUpdates(int index)

Output only. Event updates are correspondence from Google.

repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EventUpdate

getUpdatesCount()

public int getUpdatesCount()

Output only. Event updates are correspondence from Google.

repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getUpdatesList()

public List<EventUpdate> getUpdatesList()

Output only. Event updates are correspondence from Google.

repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<EventUpdate>

getUpdatesOrBuilder(int index)

public EventUpdateOrBuilder getUpdatesOrBuilder(int index)

Output only. Event updates are correspondence from Google.

repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EventUpdateOrBuilder

getUpdatesOrBuilderList()

public List<? extends EventUpdateOrBuilder> getUpdatesOrBuilderList()

Output only. Event updates are correspondence from Google.

repeated .google.cloud.servicehealth.v1.EventUpdate updates = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.servicehealth.v1.EventUpdateOrBuilder>

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the event, if applicable.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasNextUpdateTime()

public boolean hasNextUpdateTime()

Output only. The time when the next update can be expected.

.google.protobuf.Timestamp next_update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the nextUpdateTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the event, if applicable.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the event was last modified.

.google.protobuf.Timestamp update_time = 12 [(.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 Event.Builder newBuilderForType()
Returns
Type Description
Event.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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