Class ListWatchlistsResponse.Builder (0.2.0)

public static final class ListWatchlistsResponse.Builder extends GeneratedMessageV3.Builder<ListWatchlistsResponse.Builder> implements ListWatchlistsResponseOrBuilder

Response message for listing watchlists.

Protobuf type google.cloud.chronicle.v1.ListWatchlistsResponse

Static Methods

getDescriptor()

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

Methods

addAllWatchlists(Iterable<? extends Watchlist> values)

public ListWatchlistsResponse.Builder addAllWatchlists(Iterable<? extends Watchlist> values)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.chronicle.v1.Watchlist>
Returns
Type Description
ListWatchlistsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWatchlists(Watchlist value)

public ListWatchlistsResponse.Builder addWatchlists(Watchlist value)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Watchlist
Returns
Type Description
ListWatchlistsResponse.Builder

addWatchlists(Watchlist.Builder builderForValue)

public ListWatchlistsResponse.Builder addWatchlists(Watchlist.Builder builderForValue)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Watchlist.Builder
Returns
Type Description
ListWatchlistsResponse.Builder

addWatchlists(int index, Watchlist value)

public ListWatchlistsResponse.Builder addWatchlists(int index, Watchlist value)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Watchlist
Returns
Type Description
ListWatchlistsResponse.Builder

addWatchlists(int index, Watchlist.Builder builderForValue)

public ListWatchlistsResponse.Builder addWatchlists(int index, Watchlist.Builder builderForValue)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Watchlist.Builder
Returns
Type Description
ListWatchlistsResponse.Builder

addWatchlistsBuilder()

public Watchlist.Builder addWatchlistsBuilder()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Watchlist.Builder

addWatchlistsBuilder(int index)

public Watchlist.Builder addWatchlistsBuilder(int index)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Watchlist.Builder

build()

public ListWatchlistsResponse build()
Returns
Type Description
ListWatchlistsResponse

buildPartial()

public ListWatchlistsResponse buildPartial()
Returns
Type Description
ListWatchlistsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListWatchlistsResponse.Builder clearNextPageToken()

Optional. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListWatchlistsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWatchlists()

public ListWatchlistsResponse.Builder clearWatchlists()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListWatchlistsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWatchlistsResponse getDefaultInstanceForType()
Returns
Type Description
ListWatchlistsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getWatchlists(int index)

public Watchlist getWatchlists(int index)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Watchlist

getWatchlistsBuilder(int index)

public Watchlist.Builder getWatchlistsBuilder(int index)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Watchlist.Builder

getWatchlistsBuilderList()

public List<Watchlist.Builder> getWatchlistsBuilderList()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getWatchlistsCount()

public int getWatchlistsCount()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getWatchlistsList()

public List<Watchlist> getWatchlistsList()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Watchlist>

getWatchlistsOrBuilder(int index)

public WatchlistOrBuilder getWatchlistsOrBuilder(int index)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
WatchlistOrBuilder

getWatchlistsOrBuilderList()

public List<? extends WatchlistOrBuilder> getWatchlistsOrBuilderList()

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.chronicle.v1.WatchlistOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListWatchlistsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWatchlists(int index)

public ListWatchlistsResponse.Builder removeWatchlists(int index)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ListWatchlistsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListWatchlistsResponse.Builder setNextPageToken(String value)

Optional. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListWatchlistsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWatchlistsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListWatchlistsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWatchlists(int index, Watchlist value)

public ListWatchlistsResponse.Builder setWatchlists(int index, Watchlist value)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Watchlist
Returns
Type Description
ListWatchlistsResponse.Builder

setWatchlists(int index, Watchlist.Builder builderForValue)

public ListWatchlistsResponse.Builder setWatchlists(int index, Watchlist.Builder builderForValue)

Optional. The watchlists from the specified instance.

repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Watchlist.Builder
Returns
Type Description
ListWatchlistsResponse.Builder