Class ListChannelsResponse.Builder (1.34.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.eventarc.v1.Channel>
Returns
TypeDescription
ListChannelsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueChannel
Returns
TypeDescription
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
NameDescription
builderForValueChannel.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueChannel
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChannel.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Channel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListChannelsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListChannelsResponse.Builder
Overrides

addUnreachable(String value)

public ListChannelsResponse.Builder addUnreachable(String value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListChannelsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListChannelsResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources, if any.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListChannelsResponse.Builder

This builder for chaining.

build()

public ListChannelsResponse build()
Returns
TypeDescription
ListChannelsResponse

buildPartial()

public ListChannelsResponse buildPartial()
Returns
TypeDescription
ListChannelsResponse

clear()

public ListChannelsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListChannelsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListChannelsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListChannelsResponse.Builder
Overrides

clearUnreachable()

public ListChannelsResponse.Builder clearUnreachable()

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
TypeDescription
ListChannelsResponse.Builder

This builder for chaining.

clone()

public ListChannelsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.eventarc.v1.ChannelOrBuilder>

getDefaultInstanceForType()

public ListChannelsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListChannelsResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources, if any.

repeated string unreachable = 3;

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)

Unreachable resources, if any.

repeated string unreachable = 3;

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

Unreachable resources, if any.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources, if any.

repeated string unreachable = 3;

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

public ListChannelsResponse.Builder mergeFrom(ListChannelsResponse other)
Parameter
NameDescription
otherListChannelsResponse
Returns
TypeDescription
ListChannelsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListChannelsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListChannelsResponse.Builder

This builder for chaining.