Class ListEventsResponse.Builder (0.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.servicehealth.v1.Event>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueEvent
Returns
TypeDescription
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
NameDescription
builderForValueEvent.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEvent.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Event.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListEventsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListEventsResponse.Builder

This builder for chaining.

build()

public ListEventsResponse build()
Returns
TypeDescription
ListEventsResponse

buildPartial()

public ListEventsResponse buildPartial()
Returns
TypeDescription
ListEventsResponse

clear()

public ListEventsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListEventsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListEventsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListEventsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListEventsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListEventsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListEventsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListEventsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListEventsResponse other)

public ListEventsResponse.Builder mergeFrom(ListEventsResponse other)
Parameter
NameDescription
otherListEventsResponse
Returns
TypeDescription
ListEventsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEvent.Builder
Returns
TypeDescription
ListEventsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListEventsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListEventsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListEventsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListEventsResponse.Builder

This builder for chaining.