Class ListOrganizationEventsResponse.Builder (0.21.0)

public static final class ListOrganizationEventsResponse.Builder extends GeneratedMessageV3.Builder<ListOrganizationEventsResponse.Builder> implements ListOrganizationEventsResponseOrBuilder

Message for response to listing organization events.

Protobuf type google.cloud.servicehealth.v1.ListOrganizationEventsResponse

Static Methods

getDescriptor()

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

Methods

addAllOrganizationEvents(Iterable<? extends OrganizationEvent> values)

public ListOrganizationEventsResponse.Builder addAllOrganizationEvents(Iterable<? extends OrganizationEvent> values)

Output only. List of organization events affecting an organization.

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

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

addAllUnreachable(Iterable<String> values)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

addOrganizationEvents(OrganizationEvent value)

public ListOrganizationEventsResponse.Builder addOrganizationEvents(OrganizationEvent value)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
value OrganizationEvent
Returns
Type Description
ListOrganizationEventsResponse.Builder

addOrganizationEvents(OrganizationEvent.Builder builderForValue)

public ListOrganizationEventsResponse.Builder addOrganizationEvents(OrganizationEvent.Builder builderForValue)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
builderForValue OrganizationEvent.Builder
Returns
Type Description
ListOrganizationEventsResponse.Builder

addOrganizationEvents(int index, OrganizationEvent value)

public ListOrganizationEventsResponse.Builder addOrganizationEvents(int index, OrganizationEvent value)

Output only. List of organization events affecting an organization.

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

Parameters
Name Description
index int
value OrganizationEvent
Returns
Type Description
ListOrganizationEventsResponse.Builder

addOrganizationEvents(int index, OrganizationEvent.Builder builderForValue)

public ListOrganizationEventsResponse.Builder addOrganizationEvents(int index, OrganizationEvent.Builder builderForValue)

Output only. List of organization events affecting an organization.

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

Parameters
Name Description
index int
builderForValue OrganizationEvent.Builder
Returns
Type Description
ListOrganizationEventsResponse.Builder

addOrganizationEventsBuilder()

public OrganizationEvent.Builder addOrganizationEventsBuilder()

Output only. List of organization events affecting an organization.

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

Returns
Type Description
OrganizationEvent.Builder

addOrganizationEventsBuilder(int index)

public OrganizationEvent.Builder addOrganizationEventsBuilder(int index)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
index int
Returns
Type Description
OrganizationEvent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

build()

public ListOrganizationEventsResponse build()
Returns
Type Description
ListOrganizationEventsResponse

buildPartial()

public ListOrganizationEventsResponse buildPartial()
Returns
Type Description
ListOrganizationEventsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrganizationEvents()

public ListOrganizationEventsResponse.Builder clearOrganizationEvents()

Output only. List of organization events affecting an organization.

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

Returns
Type Description
ListOrganizationEventsResponse.Builder

clearUnreachable()

public ListOrganizationEventsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

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

Returns
Type Description
ListOrganizationEventsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListOrganizationEventsResponse getDefaultInstanceForType()
Returns
Type Description
ListOrganizationEventsResponse

getDescriptorForType()

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

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.

getOrganizationEvents(int index)

public OrganizationEvent getOrganizationEvents(int index)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
index int
Returns
Type Description
OrganizationEvent

getOrganizationEventsBuilder(int index)

public OrganizationEvent.Builder getOrganizationEventsBuilder(int index)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
index int
Returns
Type Description
OrganizationEvent.Builder

getOrganizationEventsBuilderList()

public List<OrganizationEvent.Builder> getOrganizationEventsBuilderList()

Output only. List of organization events affecting an organization.

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

Returns
Type Description
List<Builder>

getOrganizationEventsCount()

public int getOrganizationEventsCount()

Output only. List of organization events affecting an organization.

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

Returns
Type Description
int

getOrganizationEventsList()

public List<OrganizationEvent> getOrganizationEventsList()

Output only. List of organization events affecting an organization.

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

Returns
Type Description
List<OrganizationEvent>

getOrganizationEventsOrBuilder(int index)

public OrganizationEventOrBuilder getOrganizationEventsOrBuilder(int index)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
index int
Returns
Type Description
OrganizationEventOrBuilder

getOrganizationEventsOrBuilderList()

public List<? extends OrganizationEventOrBuilder> getOrganizationEventsOrBuilderList()

Output only. List of organization events affecting an organization.

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

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

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(ListOrganizationEventsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOrganizationEvents(int index)

public ListOrganizationEventsResponse.Builder removeOrganizationEvents(int index)

Output only. List of organization events affecting an organization.

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

Parameter
Name Description
index int
Returns
Type Description
ListOrganizationEventsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.

setOrganizationEvents(int index, OrganizationEvent value)

public ListOrganizationEventsResponse.Builder setOrganizationEvents(int index, OrganizationEvent value)

Output only. List of organization events affecting an organization.

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

Parameters
Name Description
index int
value OrganizationEvent
Returns
Type Description
ListOrganizationEventsResponse.Builder

setOrganizationEvents(int index, OrganizationEvent.Builder builderForValue)

public ListOrganizationEventsResponse.Builder setOrganizationEvents(int index, OrganizationEvent.Builder builderForValue)

Output only. List of organization events affecting an organization.

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

Parameters
Name Description
index int
builderForValue OrganizationEvent.Builder
Returns
Type Description
ListOrganizationEventsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListOrganizationEventsResponse.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
ListOrganizationEventsResponse.Builder

This builder for chaining.