Class ListChannelsResponse.Builder (0.20.0)

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

Response message for "LivestreamService.ListChannels".

Protobuf type google.cloud.video.livestream.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)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.video.livestream.v1.Channel>
Returns
TypeDescription
ListChannelsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

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)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
valueChannel
Returns
TypeDescription
ListChannelsResponse.Builder

addChannels(Channel.Builder builderForValue)

public ListChannelsResponse.Builder addChannels(Channel.Builder builderForValue)

A list of channels.

repeated .google.cloud.video.livestream.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)

A list of channels.

repeated .google.cloud.video.livestream.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)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameters
NameDescription
indexint
builderForValueChannel.Builder
Returns
TypeDescription
ListChannelsResponse.Builder

addChannelsBuilder()

public Channel.Builder addChannelsBuilder()

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Returns
TypeDescription
Channel.Builder

addChannelsBuilder(int index)

public Channel.Builder addChannelsBuilder(int index)

A list of channels.

repeated .google.cloud.video.livestream.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)

Locations that could not be reached.

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)

Locations that could not be reached.

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

A list of channels.

repeated .google.cloud.video.livestream.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()

Token to retrieve the next page of results, or empty if there are no more results in the list.

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

Locations that could not be reached.

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)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Channel

getChannelsBuilder(int index)

public Channel.Builder getChannelsBuilder(int index)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Channel.Builder

getChannelsBuilderList()

public List<Channel.Builder> getChannelsBuilderList()

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Returns
TypeDescription
List<Builder>

getChannelsCount()

public int getChannelsCount()

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Returns
TypeDescription
int

getChannelsList()

public List<Channel> getChannelsList()

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Returns
TypeDescription
List<Channel>

getChannelsOrBuilder(int index)

public ChannelOrBuilder getChannelsOrBuilder(int index)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChannelOrBuilder

getChannelsOrBuilderList()

public List<? extends ChannelOrBuilder> getChannelsOrBuilderList()

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Returns
TypeDescription
List<? extends com.google.cloud.video.livestream.v1.ChannelOrBuilder>

getDefaultInstanceForType()

public ListChannelsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListChannelsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

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)

Locations that could not be reached.

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

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

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)

A list of channels.

repeated .google.cloud.video.livestream.v1.Channel channels = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListChannelsResponse.Builder

setChannels(int index, Channel value)

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

A list of channels.

repeated .google.cloud.video.livestream.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)

A list of channels.

repeated .google.cloud.video.livestream.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)

Token to retrieve the next page of results, or empty if there are no more results in the list.

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)

Token to retrieve the next page of results, or empty if there are no more results in the list.

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)

Locations that could not be reached.

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.