Class ListMessageBusEnrollmentsResponse.Builder (1.54.0)

public static final class ListMessageBusEnrollmentsResponse.Builder extends GeneratedMessageV3.Builder<ListMessageBusEnrollmentsResponse.Builder> implements ListMessageBusEnrollmentsResponseOrBuilder

The response message for the ListMessageBusEnrollments method.`

Protobuf type google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse

Static Methods

getDescriptor()

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

Methods

addAllEnrollments(Iterable<String> values)

public ListMessageBusEnrollmentsResponse.Builder addAllEnrollments(Iterable<String> values)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameter
Name Description
values Iterable<String>

The enrollments to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

addAllUnreachable(Iterable<String> values)

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

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

addEnrollments(String value)

public ListMessageBusEnrollmentsResponse.Builder addEnrollments(String value)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameter
Name Description
value String

The enrollments to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

addEnrollmentsBytes(ByteString value)

public ListMessageBusEnrollmentsResponse.Builder addEnrollmentsBytes(ByteString value)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameter
Name Description
value ByteString

The bytes of the enrollments to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListMessageBusEnrollmentsResponse.Builder addUnreachable(String value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListMessageBusEnrollmentsResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

build()

public ListMessageBusEnrollmentsResponse build()
Returns
Type Description
ListMessageBusEnrollmentsResponse

buildPartial()

public ListMessageBusEnrollmentsResponse buildPartial()
Returns
Type Description
ListMessageBusEnrollmentsResponse

clear()

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

clearEnrollments()

public ListMessageBusEnrollmentsResponse.Builder clearEnrollments()

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListMessageBusEnrollmentsResponse.Builder clearNextPageToken()

A page token that can be sent to ListMessageBusEnrollments to request the next page. If this is empty, then there are no more pages.

string next_page_token = 2;

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListMessageBusEnrollmentsResponse.Builder clearUnreachable()

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListMessageBusEnrollmentsResponse getDefaultInstanceForType()
Returns
Type Description
ListMessageBusEnrollmentsResponse

getDescriptorForType()

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

getEnrollments(int index)

public String getEnrollments(int index)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The enrollments at the given index.

getEnrollmentsBytes(int index)

public ByteString getEnrollmentsBytes(int index)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the enrollments at the given index.

getEnrollmentsCount()

public int getEnrollmentsCount()

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Returns
Type Description
int

The count of enrollments.

getEnrollmentsList()

public ProtocolStringList getEnrollmentsList()

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Returns
Type Description
ProtocolStringList

A list containing the enrollments.

getNextPageToken()

public String getNextPageToken()

A page token that can be sent to ListMessageBusEnrollments to request the next page. If this is empty, then there are no more pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A page token that can be sent to ListMessageBusEnrollments to request the next page. If this is empty, then there are no more pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources, if any.

repeated string unreachable = 3;

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)

Unreachable resources, if any.

repeated string unreachable = 3;

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

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources, if any.

repeated string unreachable = 3;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnrollments(int index, String value)

public ListMessageBusEnrollmentsResponse.Builder setEnrollments(int index, String value)

The requested enrollments, up to the number specified in page_size.

repeated string enrollments = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The enrollments to set.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListMessageBusEnrollmentsResponse.Builder setNextPageToken(String value)

A page token that can be sent to ListMessageBusEnrollments to request the next page. If this is empty, then there are no more pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMessageBusEnrollmentsResponse.Builder setNextPageTokenBytes(ByteString value)

A page token that can be sent to ListMessageBusEnrollments to request the next page. If this is empty, then there are no more pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Unreachable resources, if any.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListMessageBusEnrollmentsResponse.Builder

This builder for chaining.