Class ListEnrollmentsResponse.Builder (1.54.0)

public static final class ListEnrollmentsResponse.Builder extends GeneratedMessageV3.Builder<ListEnrollmentsResponse.Builder> implements ListEnrollmentsResponseOrBuilder

The response message for the ListEnrollments method.

Protobuf type google.cloud.eventarc.v1.ListEnrollmentsResponse

Static Methods

getDescriptor()

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

Methods

addAllEnrollments(Iterable<? extends Enrollment> values)

public ListEnrollmentsResponse.Builder addAllEnrollments(Iterable<? extends Enrollment> values)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.eventarc.v1.Enrollment>
Returns
Type Description
ListEnrollmentsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addEnrollments(Enrollment value)

public ListEnrollmentsResponse.Builder addEnrollments(Enrollment value)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
value Enrollment
Returns
Type Description
ListEnrollmentsResponse.Builder

addEnrollments(Enrollment.Builder builderForValue)

public ListEnrollmentsResponse.Builder addEnrollments(Enrollment.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
builderForValue Enrollment.Builder
Returns
Type Description
ListEnrollmentsResponse.Builder

addEnrollments(int index, Enrollment value)

public ListEnrollmentsResponse.Builder addEnrollments(int index, Enrollment value)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameters
Name Description
index int
value Enrollment
Returns
Type Description
ListEnrollmentsResponse.Builder

addEnrollments(int index, Enrollment.Builder builderForValue)

public ListEnrollmentsResponse.Builder addEnrollments(int index, Enrollment.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameters
Name Description
index int
builderForValue Enrollment.Builder
Returns
Type Description
ListEnrollmentsResponse.Builder

addEnrollmentsBuilder()

public Enrollment.Builder addEnrollmentsBuilder()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
Enrollment.Builder

addEnrollmentsBuilder(int index)

public Enrollment.Builder addEnrollmentsBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
index int
Returns
Type Description
Enrollment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListEnrollmentsResponse.Builder addUnreachable(String value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListEnrollmentsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListEnrollmentsResponse build()
Returns
Type Description
ListEnrollmentsResponse

buildPartial()

public ListEnrollmentsResponse buildPartial()
Returns
Type Description
ListEnrollmentsResponse

clear()

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

clearEnrollments()

public ListEnrollmentsResponse.Builder clearEnrollments()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
ListEnrollmentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListEnrollmentsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListEnrollmentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListEnrollmentsResponse.Builder clearUnreachable()

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
Type Description
ListEnrollmentsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListEnrollmentsResponse getDefaultInstanceForType()
Returns
Type Description
ListEnrollmentsResponse

getDescriptorForType()

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

getEnrollments(int index)

public Enrollment getEnrollments(int index)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
index int
Returns
Type Description
Enrollment

getEnrollmentsBuilder(int index)

public Enrollment.Builder getEnrollmentsBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
index int
Returns
Type Description
Enrollment.Builder

getEnrollmentsBuilderList()

public List<Enrollment.Builder> getEnrollmentsBuilderList()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
List<Builder>

getEnrollmentsCount()

public int getEnrollmentsCount()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
int

getEnrollmentsList()

public List<Enrollment> getEnrollmentsList()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
List<Enrollment>

getEnrollmentsOrBuilder(int index)

public EnrollmentOrBuilder getEnrollmentsOrBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
index int
Returns
Type Description
EnrollmentOrBuilder

getEnrollmentsOrBuilderList()

public List<? extends EnrollmentOrBuilder> getEnrollmentsOrBuilderList()

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Returns
Type Description
List<? extends com.google.cloud.eventarc.v1.EnrollmentOrBuilder>

getNextPageToken()

public String getNextPageToken()

A page token that can be sent to ListEnrollments 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 ListEnrollments 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(ListEnrollmentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEnrollments(int index)

public ListEnrollmentsResponse.Builder removeEnrollments(int index)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameter
Name Description
index int
Returns
Type Description
ListEnrollmentsResponse.Builder

setEnrollments(int index, Enrollment value)

public ListEnrollmentsResponse.Builder setEnrollments(int index, Enrollment value)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameters
Name Description
index int
value Enrollment
Returns
Type Description
ListEnrollmentsResponse.Builder

setEnrollments(int index, Enrollment.Builder builderForValue)

public ListEnrollmentsResponse.Builder setEnrollments(int index, Enrollment.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1;

Parameters
Name Description
index int
builderForValue Enrollment.Builder
Returns
Type Description
ListEnrollmentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListEnrollmentsResponse.Builder setNextPageToken(String value)

A page token that can be sent to ListEnrollments 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
ListEnrollmentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListEnrollmentsResponse.Builder setNextPageTokenBytes(ByteString value)

A page token that can be sent to ListEnrollments 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
ListEnrollmentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.