Class ListOrganizationEventsResponse.Builder (0.8.0)

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

Protobuf type google.cloud.servicehealth.v1.ListOrganizationEventsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.servicehealth.v1.OrganizationEvent>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueOrganizationEvent
Returns
TypeDescription
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
NameDescription
builderForValueOrganizationEvent.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueOrganizationEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOrganizationEvent.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
OrganizationEvent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListOrganizationEventsResponse.Builder

This builder for chaining.

build()

public ListOrganizationEventsResponse build()
Returns
TypeDescription
ListOrganizationEventsResponse

buildPartial()

public ListOrganizationEventsResponse buildPartial()
Returns
TypeDescription
ListOrganizationEventsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListOrganizationEventsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListOrganizationEventsResponse

getDescriptorForType()

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

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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(ListOrganizationEventsResponse other)

public ListOrganizationEventsResponse.Builder mergeFrom(ListOrganizationEventsResponse other)
Parameter
NameDescription
otherListOrganizationEventsResponse
Returns
TypeDescription
ListOrganizationEventsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueOrganizationEvent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueOrganizationEvent.Builder
Returns
TypeDescription
ListOrganizationEventsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListOrganizationEventsResponse.Builder

This builder for chaining.