Class ListEventsResponse.Builder (0.13.0)

public static final class ListEventsResponse.Builder extends GeneratedMessageV3.Builder<ListEventsResponse.Builder> implements ListEventsResponseOrBuilder

Protobuf type google.cloud.servicehealth.v1.ListEventsResponse

Static Methods

getDescriptor()

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

Methods

addAllEvents(Iterable<? extends Event> values)

public ListEventsResponse.Builder addAllEvents(Iterable<? extends Event> values)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.servicehealth.v1.Event>
Returns
Type Description
ListEventsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListEventsResponse.Builder addAllUnreachable(Iterable<String> values)

Output only. Locations that could not be reached.

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

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

addEvents(Event value)

public ListEventsResponse.Builder addEvents(Event value)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Event
Returns
Type Description
ListEventsResponse.Builder

addEvents(Event.Builder builderForValue)

public ListEventsResponse.Builder addEvents(Event.Builder builderForValue)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Event.Builder
Returns
Type Description
ListEventsResponse.Builder

addEvents(int index, Event value)

public ListEventsResponse.Builder addEvents(int index, Event value)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Event
Returns
Type Description
ListEventsResponse.Builder

addEvents(int index, Event.Builder builderForValue)

public ListEventsResponse.Builder addEvents(int index, Event.Builder builderForValue)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
ListEventsResponse.Builder

addEventsBuilder()

public Event.Builder addEventsBuilder()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Event.Builder

addEventsBuilder(int index)

public Event.Builder addEventsBuilder(int index)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListEventsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListEventsResponse.Builder
Overrides

addUnreachable(String value)

public ListEventsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

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

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListEventsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

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

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

build()

public ListEventsResponse build()
Returns
Type Description
ListEventsResponse

buildPartial()

public ListEventsResponse buildPartial()
Returns
Type Description
ListEventsResponse

clear()

public ListEventsResponse.Builder clear()
Returns
Type Description
ListEventsResponse.Builder
Overrides

clearEvents()

public ListEventsResponse.Builder clearEvents()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListEventsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListEventsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListEventsResponse.Builder
Overrides

clearNextPageToken()

public ListEventsResponse.Builder clearNextPageToken()

Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page.

If this field is not present, there are no subsequent results.

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

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListEventsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListEventsResponse.Builder
Overrides

clearUnreachable()

public ListEventsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

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

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

clone()

public ListEventsResponse.Builder clone()
Returns
Type Description
ListEventsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListEventsResponse getDefaultInstanceForType()
Returns
Type Description
ListEventsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEvents(int index)

public Event getEvents(int index)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Event

getEventsBuilder(int index)

public Event.Builder getEventsBuilder(int index)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Event.Builder

getEventsBuilderList()

public List<Event.Builder> getEventsBuilderList()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getEventsCount()

public int getEventsCount()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getEventsList()

public List<Event> getEventsList()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Event>

getEventsOrBuilder(int index)

public EventOrBuilder getEventsOrBuilder(int index)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EventOrBuilder

getEventsOrBuilderList()

public List<? extends EventOrBuilder> getEventsOrBuilderList()

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getNextPageToken()

public String getNextPageToken()

Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page.

If this field is not present, there are no subsequent results.

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

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page.

If this field is not present, there are no subsequent results.

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

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Output only. Locations that could not be reached.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Output only. Locations that could not be reached.

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

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

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

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListEventsResponse other)

public ListEventsResponse.Builder mergeFrom(ListEventsResponse other)
Parameter
Name Description
other ListEventsResponse
Returns
Type Description
ListEventsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListEventsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListEventsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListEventsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListEventsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListEventsResponse.Builder
Overrides

removeEvents(int index)

public ListEventsResponse.Builder removeEvents(int index)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListEventsResponse.Builder

setEvents(int index, Event value)

public ListEventsResponse.Builder setEvents(int index, Event value)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Event
Returns
Type Description
ListEventsResponse.Builder

setEvents(int index, Event.Builder builderForValue)

public ListEventsResponse.Builder setEvents(int index, Event.Builder builderForValue)

Output only. List of events.

repeated .google.cloud.servicehealth.v1.Event events = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Event.Builder
Returns
Type Description
ListEventsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListEventsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListEventsResponse.Builder
Overrides

setNextPageToken(String value)

public ListEventsResponse.Builder setNextPageToken(String value)

Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page.

If this field is not present, there are no subsequent results.

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

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListEventsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token to retrieve the next page.

If this field is not present, there are no subsequent results.

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

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.

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

public ListEventsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListEventsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListEventsResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListEventsResponse.Builder setUnreachable(int index, String value)

Output only. Locations that could not be reached.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListEventsResponse.Builder

This builder for chaining.