Class ListSnoozesResponse.Builder (3.12.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.monitoring.v3.Snooze>
Returns
TypeDescription
ListSnoozesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSnoozesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSnooze
Returns
TypeDescription
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
NameDescription
builderForValueSnooze.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSnooze
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSnooze.Builder
Returns
TypeDescription
ListSnoozesResponse.Builder

addSnoozesBuilder()

public Snooze.Builder addSnoozesBuilder()

Snoozes matching this list call.

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

Returns
TypeDescription
Snooze.Builder

addSnoozesBuilder(int index)

public Snooze.Builder addSnoozesBuilder(int index)

Snoozes matching this list call.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Snooze.Builder

build()

public ListSnoozesResponse build()
Returns
TypeDescription
ListSnoozesResponse

buildPartial()

public ListSnoozesResponse buildPartial()
Returns
TypeDescription
ListSnoozesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnoozes()

public ListSnoozesResponse.Builder clearSnoozes()

Snoozes matching this list call.

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

Returns
TypeDescription
ListSnoozesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListSnoozesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSnoozesResponse

getDescriptorForType()

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

getSnoozesBuilder(int index)

public Snooze.Builder getSnoozesBuilder(int index)

Snoozes matching this list call.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Snooze.Builder

getSnoozesBuilderList()

public List<Snooze.Builder> getSnoozesBuilderList()

Snoozes matching this list call.

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

Returns
TypeDescription
List<Builder>

getSnoozesCount()

public int getSnoozesCount()

Snoozes matching this list call.

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

Returns
TypeDescription
int

getSnoozesList()

public List<Snooze> getSnoozesList()

Snoozes matching this list call.

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

Returns
TypeDescription
List<Snooze>

getSnoozesOrBuilder(int index)

public SnoozeOrBuilder getSnoozesOrBuilder(int index)

Snoozes matching this list call.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SnoozeOrBuilder

getSnoozesOrBuilderList()

public List<? extends SnoozeOrBuilder> getSnoozesOrBuilderList()

Snoozes matching this list call.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSnoozesResponse other)

public ListSnoozesResponse.Builder mergeFrom(ListSnoozesResponse other)
Parameter
NameDescription
otherListSnoozesResponse
Returns
TypeDescription
ListSnoozesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSnoozesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListSnoozesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSnooze
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSnooze.Builder
Returns
TypeDescription
ListSnoozesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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