Class ListSinksResponse.Builder (3.20.4)

public static final class ListSinksResponse.Builder extends GeneratedMessageV3.Builder<ListSinksResponse.Builder> implements ListSinksResponseOrBuilder

Result returned from ListSinks.

Protobuf type google.logging.v2.ListSinksResponse

Static Methods

getDescriptor()

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

Methods

addAllSinks(Iterable<? extends LogSink> values)

public ListSinksResponse.Builder addAllSinks(Iterable<? extends LogSink> values)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
values Iterable<? extends com.google.logging.v2.LogSink>
Returns
Type Description
ListSinksResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSinks(LogSink value)

public ListSinksResponse.Builder addSinks(LogSink value)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
value LogSink
Returns
Type Description
ListSinksResponse.Builder

addSinks(LogSink.Builder builderForValue)

public ListSinksResponse.Builder addSinks(LogSink.Builder builderForValue)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
builderForValue LogSink.Builder
Returns
Type Description
ListSinksResponse.Builder

addSinks(int index, LogSink value)

public ListSinksResponse.Builder addSinks(int index, LogSink value)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameters
Name Description
index int
value LogSink
Returns
Type Description
ListSinksResponse.Builder

addSinks(int index, LogSink.Builder builderForValue)

public ListSinksResponse.Builder addSinks(int index, LogSink.Builder builderForValue)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameters
Name Description
index int
builderForValue LogSink.Builder
Returns
Type Description
ListSinksResponse.Builder

addSinksBuilder()

public LogSink.Builder addSinksBuilder()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
LogSink.Builder

addSinksBuilder(int index)

public LogSink.Builder addSinksBuilder(int index)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
index int
Returns
Type Description
LogSink.Builder

build()

public ListSinksResponse build()
Returns
Type Description
ListSinksResponse

buildPartial()

public ListSinksResponse buildPartial()
Returns
Type Description
ListSinksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSinksResponse.Builder clearNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
ListSinksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSinks()

public ListSinksResponse.Builder clearSinks()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
ListSinksResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSinksResponse getDefaultInstanceForType()
Returns
Type Description
ListSinksResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSinks(int index)

public LogSink getSinks(int index)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
index int
Returns
Type Description
LogSink

getSinksBuilder(int index)

public LogSink.Builder getSinksBuilder(int index)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
index int
Returns
Type Description
LogSink.Builder

getSinksBuilderList()

public List<LogSink.Builder> getSinksBuilderList()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
List<Builder>

getSinksCount()

public int getSinksCount()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
int

getSinksList()

public List<LogSink> getSinksList()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
List<LogSink>

getSinksOrBuilder(int index)

public LogSinkOrBuilder getSinksOrBuilder(int index)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
index int
Returns
Type Description
LogSinkOrBuilder

getSinksOrBuilderList()

public List<? extends LogSinkOrBuilder> getSinksOrBuilderList()

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Returns
Type Description
List<? extends com.google.logging.v2.LogSinkOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSinksResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSinks(int index)

public ListSinksResponse.Builder removeSinks(int index)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSinksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSinksResponse.Builder setNextPageToken(String value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListSinksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSinksResponse.Builder setNextPageTokenBytes(ByteString value)

If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListSinksResponse.Builder

This builder for chaining.

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

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

setSinks(int index, LogSink value)

public ListSinksResponse.Builder setSinks(int index, LogSink value)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameters
Name Description
index int
value LogSink
Returns
Type Description
ListSinksResponse.Builder

setSinks(int index, LogSink.Builder builderForValue)

public ListSinksResponse.Builder setSinks(int index, LogSink.Builder builderForValue)

A list of sinks.

repeated .google.logging.v2.LogSink sinks = 1;

Parameters
Name Description
index int
builderForValue LogSink.Builder
Returns
Type Description
ListSinksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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