Class ListChannelsResponse.Builder (1.45.0)

public static final class ListChannelsResponse.Builder extends GeneratedMessageV3.Builder<ListChannelsResponse.Builder> implements ListChannelsResponseOrBuilder

The response message for the ListChannels method.

Protobuf type google.cloud.eventarc.v1.ListChannelsResponse

Static Methods

getDescriptor()

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

Methods

addAllChannels(Iterable<? extends Channel> values)

public ListChannelsResponse.Builder addAllChannels(Iterable<? extends Channel> values)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addChannels(Channel value)

public ListChannelsResponse.Builder addChannels(Channel value)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
value Channel
Returns
Type Description
ListChannelsResponse.Builder

addChannels(Channel.Builder builderForValue)

public ListChannelsResponse.Builder addChannels(Channel.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
builderForValue Channel.Builder
Returns
Type Description
ListChannelsResponse.Builder

addChannels(int index, Channel value)

public ListChannelsResponse.Builder addChannels(int index, Channel value)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameters
Name Description
index int
value Channel
Returns
Type Description
ListChannelsResponse.Builder

addChannels(int index, Channel.Builder builderForValue)

public ListChannelsResponse.Builder addChannels(int index, Channel.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameters
Name Description
index int
builderForValue Channel.Builder
Returns
Type Description
ListChannelsResponse.Builder

addChannelsBuilder()

public Channel.Builder addChannelsBuilder()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Returns
Type Description
Channel.Builder

addChannelsBuilder(int index)

public Channel.Builder addChannelsBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
index int
Returns
Type Description
Channel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListChannelsResponse.Builder addUnreachable(String value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListChannelsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListChannelsResponse build()
Returns
Type Description
ListChannelsResponse

buildPartial()

public ListChannelsResponse buildPartial()
Returns
Type Description
ListChannelsResponse

clear()

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

clearChannels()

public ListChannelsResponse.Builder clearChannels()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Returns
Type Description
ListChannelsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListChannelsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListChannelsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListChannelsResponse.Builder clearUnreachable()

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
Type Description
ListChannelsResponse.Builder

This builder for chaining.

clone()

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

getChannels(int index)

public Channel getChannels(int index)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
index int
Returns
Type Description
Channel

getChannelsBuilder(int index)

public Channel.Builder getChannelsBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
index int
Returns
Type Description
Channel.Builder

getChannelsBuilderList()

public List<Channel.Builder> getChannelsBuilderList()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Returns
Type Description
List<Builder>

getChannelsCount()

public int getChannelsCount()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Returns
Type Description
int

getChannelsList()

public List<Channel> getChannelsList()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Returns
Type Description
List<Channel>

getChannelsOrBuilder(int index)

public ChannelOrBuilder getChannelsOrBuilder(int index)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
index int
Returns
Type Description
ChannelOrBuilder

getChannelsOrBuilderList()

public List<? extends ChannelOrBuilder> getChannelsOrBuilderList()

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

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

getDefaultInstanceForType()

public ListChannelsResponse getDefaultInstanceForType()
Returns
Type Description
ListChannelsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeChannels(int index)

public ListChannelsResponse.Builder removeChannels(int index)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameter
Name Description
index int
Returns
Type Description
ListChannelsResponse.Builder

setChannels(int index, Channel value)

public ListChannelsResponse.Builder setChannels(int index, Channel value)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameters
Name Description
index int
value Channel
Returns
Type Description
ListChannelsResponse.Builder

setChannels(int index, Channel.Builder builderForValue)

public ListChannelsResponse.Builder setChannels(int index, Channel.Builder builderForValue)

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

repeated .google.cloud.eventarc.v1.Channel channels = 1;

Parameters
Name Description
index int
builderForValue Channel.Builder
Returns
Type Description
ListChannelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListChannelsResponse.Builder setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListChannelsResponse.Builder setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.