Class Event.Builder (0.6.0)

public static final class Event.Builder extends GeneratedMessageV3.Builder<Event.Builder> 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 Methods

getDescriptor()

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

Methods

addAllEventImpacts(Iterable<? extends EventImpact> values)

public Event.Builder addAllEventImpacts(Iterable<? extends EventImpact> values)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.servicehealth.v1.EventImpact>
Returns
TypeDescription
Event.Builder

addAllUpdates(Iterable<? extends EventUpdate> values)

public Event.Builder addAllUpdates(Iterable<? extends EventUpdate> values)

Output only. Event updates are correspondence from Google.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.servicehealth.v1.EventUpdate>
Returns
TypeDescription
Event.Builder

addEventImpacts(EventImpact value)

public Event.Builder addEventImpacts(EventImpact value)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
valueEventImpact
Returns
TypeDescription
Event.Builder

addEventImpacts(EventImpact.Builder builderForValue)

public Event.Builder addEventImpacts(EventImpact.Builder builderForValue)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
builderForValueEventImpact.Builder
Returns
TypeDescription
Event.Builder

addEventImpacts(int index, EventImpact value)

public Event.Builder addEventImpacts(int index, EventImpact value)

Google Cloud products and locations impacted by the event.

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

Parameters
NameDescription
indexint
valueEventImpact
Returns
TypeDescription
Event.Builder

addEventImpacts(int index, EventImpact.Builder builderForValue)

public Event.Builder addEventImpacts(int index, EventImpact.Builder builderForValue)

Google Cloud products and locations impacted by the event.

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

Parameters
NameDescription
indexint
builderForValueEventImpact.Builder
Returns
TypeDescription
Event.Builder

addEventImpactsBuilder()

public EventImpact.Builder addEventImpactsBuilder()

Google Cloud products and locations impacted by the event.

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

Returns
TypeDescription
EventImpact.Builder

addEventImpactsBuilder(int index)

public EventImpact.Builder addEventImpactsBuilder(int index)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EventImpact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUpdates(EventUpdate value)

public Event.Builder addUpdates(EventUpdate value)

Output only. Event updates are correspondence from Google.

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

Parameter
NameDescription
valueEventUpdate
Returns
TypeDescription
Event.Builder

addUpdates(EventUpdate.Builder builderForValue)

public Event.Builder addUpdates(EventUpdate.Builder builderForValue)

Output only. Event updates are correspondence from Google.

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

Parameter
NameDescription
builderForValueEventUpdate.Builder
Returns
TypeDescription
Event.Builder

addUpdates(int index, EventUpdate value)

public Event.Builder addUpdates(int index, EventUpdate value)

Output only. Event updates are correspondence from Google.

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

Parameters
NameDescription
indexint
valueEventUpdate
Returns
TypeDescription
Event.Builder

addUpdates(int index, EventUpdate.Builder builderForValue)

public Event.Builder addUpdates(int index, EventUpdate.Builder builderForValue)

Output only. Event updates are correspondence from Google.

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

Parameters
NameDescription
indexint
builderForValueEventUpdate.Builder
Returns
TypeDescription
Event.Builder

addUpdatesBuilder()

public EventUpdate.Builder addUpdatesBuilder()

Output only. Event updates are correspondence from Google.

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

Returns
TypeDescription
EventUpdate.Builder

addUpdatesBuilder(int index)

public EventUpdate.Builder addUpdatesBuilder(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
NameDescription
indexint
Returns
TypeDescription
EventUpdate.Builder

build()

public Event build()
Returns
TypeDescription
Event

buildPartial()

public Event buildPartial()
Returns
TypeDescription
Event

clear()

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

clearCategory()

public Event.Builder clearCategory()

Output only. The category of the event.

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

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearDescription()

public Event.Builder clearDescription()

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

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

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearDetailedCategory()

public Event.Builder clearDetailedCategory()

Output only. The detailed category of the event.

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

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearDetailedState()

public Event.Builder clearDetailedState()

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
TypeDescription
Event.Builder

This builder for chaining.

clearEndTime()

public Event.Builder clearEndTime()

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

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

Returns
TypeDescription
Event.Builder

clearEventImpacts()

public Event.Builder clearEventImpacts()

Google Cloud products and locations impacted by the event.

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

Returns
TypeDescription
Event.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Event.Builder clearName()

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
TypeDescription
Event.Builder

This builder for chaining.

clearNextUpdateTime()

public Event.Builder clearNextUpdateTime()

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
TypeDescription
Event.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParentEvent()

public Event.Builder clearParentEvent()

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
TypeDescription
Event.Builder

This builder for chaining.

clearRelevance()

public Event.Builder clearRelevance()

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
TypeDescription
Event.Builder

This builder for chaining.

clearStartTime()

public Event.Builder clearStartTime()

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

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

Returns
TypeDescription
Event.Builder

clearState()

public Event.Builder clearState()

Output only. The current state of the event.

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

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearTitle()

public Event.Builder clearTitle()

Output only. Brief description for the event.

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

Returns
TypeDescription
Event.Builder

This builder for chaining.

clearUpdateTime()

public Event.Builder clearUpdateTime()

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

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

Returns
TypeDescription
Event.Builder

clearUpdates()

public Event.Builder clearUpdates()

Output only. Event updates are correspondence from Google.

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

Returns
TypeDescription
Event.Builder

clone()

public Event.Builder clone()
Returns
TypeDescription
Event.Builder
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for category.

getDefaultInstanceForType()

public Event getDefaultInstanceForType()
Returns
TypeDescription
Event

getDescription()

public String getDescription()

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

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

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

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

Returns
TypeDescription
Builder

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

getEventImpactsBuilder(int index)

public EventImpact.Builder getEventImpactsBuilder(int index)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EventImpact.Builder

getEventImpactsBuilderList()

public List<EventImpact.Builder> getEventImpactsBuilderList()

Google Cloud products and locations impacted by the event.

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

Returns
TypeDescription
List<Builder>

getEventImpactsCount()

public int getEventImpactsCount()

Google Cloud products and locations impacted by the event.

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

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

The nextUpdateTime.

getNextUpdateTimeBuilder()

public Timestamp.Builder getNextUpdateTimeBuilder()

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
TypeDescription
Builder

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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parentEvent.

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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for relevance.

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
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

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

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

Returns
TypeDescription
Builder

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. Brief description for the event.

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

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

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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

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

Returns
TypeDescription
Builder

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

getUpdatesBuilder(int index)

public EventUpdate.Builder getUpdatesBuilder(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
NameDescription
indexint
Returns
TypeDescription
EventUpdate.Builder

getUpdatesBuilderList()

public List<EventUpdate.Builder> getUpdatesBuilderList()

Output only. Event updates are correspondence from Google.

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

Returns
TypeDescription
List<Builder>

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

mergeEndTime(Timestamp value)

public Event.Builder mergeEndTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

mergeFrom(Event other)

public Event.Builder mergeFrom(Event other)
Parameter
NameDescription
otherEvent
Returns
TypeDescription
Event.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNextUpdateTime(Timestamp value)

public Event.Builder mergeNextUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

mergeStartTime(Timestamp value)

public Event.Builder mergeStartTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Event.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

removeEventImpacts(int index)

public Event.Builder removeEventImpacts(int index)

Google Cloud products and locations impacted by the event.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Event.Builder

removeUpdates(int index)

public Event.Builder removeUpdates(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
NameDescription
indexint
Returns
TypeDescription
Event.Builder

setCategory(Event.EventCategory value)

public Event.Builder setCategory(Event.EventCategory value)

Output only. The category of the event.

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

Parameter
NameDescription
valueEvent.EventCategory

The category to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setCategoryValue(int value)

public Event.Builder setCategoryValue(int value)

Output only. The category of the event.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for category to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDescription(String value)

public Event.Builder setDescription(String value)

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

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Event.Builder setDescriptionBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDetailedCategory(Event.DetailedCategory value)

public Event.Builder setDetailedCategory(Event.DetailedCategory value)

Output only. The detailed category of the event.

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

Parameter
NameDescription
valueEvent.DetailedCategory

The detailedCategory to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDetailedCategoryValue(int value)

public Event.Builder setDetailedCategoryValue(int value)

Output only. The detailed category of the event.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for detailedCategory to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDetailedState(Event.DetailedState value)

public Event.Builder setDetailedState(Event.DetailedState value)

Output only. The current detailed state of the incident.

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

Parameter
NameDescription
valueEvent.DetailedState

The detailedState to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setDetailedStateValue(int value)

public Event.Builder setDetailedStateValue(int value)

Output only. The current detailed state of the incident.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for detailedState to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setEndTime(Timestamp value)

public Event.Builder setEndTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setEndTime(Timestamp.Builder builderForValue)

public Event.Builder setEndTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setEventImpacts(int index, EventImpact value)

public Event.Builder setEventImpacts(int index, EventImpact value)

Google Cloud products and locations impacted by the event.

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

Parameters
NameDescription
indexint
valueEventImpact
Returns
TypeDescription
Event.Builder

setEventImpacts(int index, EventImpact.Builder builderForValue)

public Event.Builder setEventImpacts(int index, EventImpact.Builder builderForValue)

Google Cloud products and locations impacted by the event.

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

Parameters
NameDescription
indexint
builderForValueEventImpact.Builder
Returns
TypeDescription
Event.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Event.Builder setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Event.Builder setNameBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setNextUpdateTime(Timestamp value)

public Event.Builder setNextUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setNextUpdateTime(Timestamp.Builder builderForValue)

public Event.Builder setNextUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setParentEvent(String value)

public Event.Builder setParentEvent(String value)

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];

Parameter
NameDescription
valueString

The parentEvent to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setParentEventBytes(ByteString value)

public Event.Builder setParentEventBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for parentEvent to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setRelevance(Event.Relevance value)

public Event.Builder setRelevance(Event.Relevance value)

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];

Parameter
NameDescription
valueEvent.Relevance

The relevance to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setRelevanceValue(int value)

public Event.Builder setRelevanceValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for relevance to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public Event.Builder setStartTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setStartTime(Timestamp.Builder builderForValue)

public Event.Builder setStartTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setState(Event.State value)

public Event.Builder setState(Event.State value)

Output only. The current state of the event.

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

Parameter
NameDescription
valueEvent.State

The state to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setStateValue(int value)

public Event.Builder setStateValue(int value)

Output only. The current state of the event.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setTitle(String value)

public Event.Builder setTitle(String value)

Output only. Brief description for the event.

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

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Event.Builder setTitleBytes(ByteString value)

Output only. Brief description for the event.

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

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Event.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Event.Builder setUpdateTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Event.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Event.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Event.Builder

setUpdates(int index, EventUpdate value)

public Event.Builder setUpdates(int index, EventUpdate value)

Output only. Event updates are correspondence from Google.

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

Parameters
NameDescription
indexint
valueEventUpdate
Returns
TypeDescription
Event.Builder

setUpdates(int index, EventUpdate.Builder builderForValue)

public Event.Builder setUpdates(int index, EventUpdate.Builder builderForValue)

Output only. Event updates are correspondence from Google.

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

Parameters
NameDescription
indexint
builderForValueEventUpdate.Builder
Returns
TypeDescription
Event.Builder