Class ListSinksResponse.Builder (3.10.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.logging.v2.LogSink>
Returns
TypeDescription
ListSinksResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSinks(LogSink value)

public ListSinksResponse.Builder addSinks(LogSink value)

A list of sinks.

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

Parameter
NameDescription
valueLogSink
Returns
TypeDescription
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
NameDescription
builderForValueLogSink.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueLogSink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogSink.Builder
Returns
TypeDescription
ListSinksResponse.Builder

addSinksBuilder()

public LogSink.Builder addSinksBuilder()

A list of sinks.

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

Returns
TypeDescription
LogSink.Builder

addSinksBuilder(int index)

public LogSink.Builder addSinksBuilder(int index)

A list of sinks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogSink.Builder

build()

public ListSinksResponse build()
Returns
TypeDescription
ListSinksResponse

buildPartial()

public ListSinksResponse buildPartial()
Returns
TypeDescription
ListSinksResponse

clear()

public ListSinksResponse.Builder clear()
Returns
TypeDescription
ListSinksResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSinks()

public ListSinksResponse.Builder clearSinks()

A list of sinks.

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

Returns
TypeDescription
ListSinksResponse.Builder

clone()

public ListSinksResponse.Builder clone()
Returns
TypeDescription
ListSinksResponse.Builder
Overrides

getDefaultInstanceForType()

public ListSinksResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSinksResponse

getDescriptorForType()

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

getSinksBuilder(int index)

public LogSink.Builder getSinksBuilder(int index)

A list of sinks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogSink.Builder

getSinksBuilderList()

public List<LogSink.Builder> getSinksBuilderList()

A list of sinks.

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

Returns
TypeDescription
List<Builder>

getSinksCount()

public int getSinksCount()

A list of sinks.

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

Returns
TypeDescription
int

getSinksList()

public List<LogSink> getSinksList()

A list of sinks.

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

Returns
TypeDescription
List<LogSink>

getSinksOrBuilder(int index)

public LogSinkOrBuilder getSinksOrBuilder(int index)

A list of sinks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LogSinkOrBuilder

getSinksOrBuilderList()

public List<? extends LogSinkOrBuilder> getSinksOrBuilderList()

A list of sinks.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSinksResponse other)

public ListSinksResponse.Builder mergeFrom(ListSinksResponse other)
Parameter
NameDescription
otherListSinksResponse
Returns
TypeDescription
ListSinksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSinksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSinksResponse.Builder
Overrides

removeSinks(int index)

public ListSinksResponse.Builder removeSinks(int index)

A list of sinks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSinksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueLogSink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueLogSink.Builder
Returns
TypeDescription
ListSinksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListSinksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSinksResponse.Builder
Overrides