Class ListSnoozesResponse.Builder (3.54.0)

public static final class ListSnoozesResponse.Builder extends GeneratedMessageV3.Builder<ListSnoozesResponse.Builder> implements ListSnoozesResponseOrBuilder

The results of a successful ListSnoozes call, containing the matching Snoozes.

Protobuf type google.monitoring.v3.ListSnoozesResponse

Static Methods

getDescriptor()

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

Methods

addAllSnoozes(Iterable<? extends Snooze> values)

public ListSnoozesResponse.Builder addAllSnoozes(Iterable<? extends Snooze> values)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
values Iterable<? extends com.google.monitoring.v3.Snooze>
Returns
Type Description
ListSnoozesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSnoozes(Snooze value)

public ListSnoozesResponse.Builder addSnoozes(Snooze value)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
value Snooze
Returns
Type Description
ListSnoozesResponse.Builder

addSnoozes(Snooze.Builder builderForValue)

public ListSnoozesResponse.Builder addSnoozes(Snooze.Builder builderForValue)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
builderForValue Snooze.Builder
Returns
Type Description
ListSnoozesResponse.Builder

addSnoozes(int index, Snooze value)

public ListSnoozesResponse.Builder addSnoozes(int index, Snooze value)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameters
Name Description
index int
value Snooze
Returns
Type Description
ListSnoozesResponse.Builder

addSnoozes(int index, Snooze.Builder builderForValue)

public ListSnoozesResponse.Builder addSnoozes(int index, Snooze.Builder builderForValue)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameters
Name Description
index int
builderForValue Snooze.Builder
Returns
Type Description
ListSnoozesResponse.Builder

addSnoozesBuilder()

public Snooze.Builder addSnoozesBuilder()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
Snooze.Builder

addSnoozesBuilder(int index)

public Snooze.Builder addSnoozesBuilder(int index)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
index int
Returns
Type Description
Snooze.Builder

build()

public ListSnoozesResponse build()
Returns
Type Description
ListSnoozesResponse

buildPartial()

public ListSnoozesResponse buildPartial()
Returns
Type Description
ListSnoozesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSnoozesResponse.Builder clearNextPageToken()

Page token for repeated calls to ListSnoozes, to fetch additional pages of results. If this is empty or missing, there are no more pages.

string next_page_token = 2;

Returns
Type Description
ListSnoozesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnoozes()

public ListSnoozesResponse.Builder clearSnoozes()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
ListSnoozesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSnoozesResponse getDefaultInstanceForType()
Returns
Type Description
ListSnoozesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Page token for repeated calls to ListSnoozes, to fetch additional pages of results. If this is empty or missing, there are no more pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Page token for repeated calls to ListSnoozes, to fetch additional pages of results. If this is empty or missing, there are no more pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSnoozes(int index)

public Snooze getSnoozes(int index)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
index int
Returns
Type Description
Snooze

getSnoozesBuilder(int index)

public Snooze.Builder getSnoozesBuilder(int index)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
index int
Returns
Type Description
Snooze.Builder

getSnoozesBuilderList()

public List<Snooze.Builder> getSnoozesBuilderList()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
List<Builder>

getSnoozesCount()

public int getSnoozesCount()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
int

getSnoozesList()

public List<Snooze> getSnoozesList()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
List<Snooze>

getSnoozesOrBuilder(int index)

public SnoozeOrBuilder getSnoozesOrBuilder(int index)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
index int
Returns
Type Description
SnoozeOrBuilder

getSnoozesOrBuilderList()

public List<? extends SnoozeOrBuilder> getSnoozesOrBuilderList()

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Returns
Type Description
List<? extends com.google.monitoring.v3.SnoozeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListSnoozesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSnoozes(int index)

public ListSnoozesResponse.Builder removeSnoozes(int index)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListSnoozesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSnoozesResponse.Builder setNextPageToken(String value)

Page token for repeated calls to ListSnoozes, to fetch additional pages of results. If this is empty or missing, there are no more pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListSnoozesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSnoozesResponse.Builder setNextPageTokenBytes(ByteString value)

Page token for repeated calls to ListSnoozes, to fetch additional pages of results. If this is empty or missing, there are no more pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListSnoozesResponse.Builder

This builder for chaining.

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

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

setSnoozes(int index, Snooze value)

public ListSnoozesResponse.Builder setSnoozes(int index, Snooze value)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameters
Name Description
index int
value Snooze
Returns
Type Description
ListSnoozesResponse.Builder

setSnoozes(int index, Snooze.Builder builderForValue)

public ListSnoozesResponse.Builder setSnoozes(int index, Snooze.Builder builderForValue)

Snoozes matching this list call.

repeated .google.monitoring.v3.Snooze snoozes = 1;

Parameters
Name Description
index int
builderForValue Snooze.Builder
Returns
Type Description
ListSnoozesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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