Class CreateSnoozeRequest.Builder (3.43.0)

public static final class CreateSnoozeRequest.Builder extends GeneratedMessageV3.Builder<CreateSnoozeRequest.Builder> implements CreateSnoozeRequestOrBuilder

The message definition for creating a Snooze. Users must provide the body of the Snooze to be created but must omit the Snooze field, name.

Protobuf type google.monitoring.v3.CreateSnoozeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSnoozeRequest build()
Returns
Type Description
CreateSnoozeRequest

buildPartial()

public CreateSnoozeRequest buildPartial()
Returns
Type Description
CreateSnoozeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSnoozeRequest.Builder clearParent()

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateSnoozeRequest.Builder

This builder for chaining.

clearSnooze()

public CreateSnoozeRequest.Builder clearSnooze()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSnoozeRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateSnoozeRequest getDefaultInstanceForType()
Returns
Type Description
CreateSnoozeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSnooze()

public Snooze getSnooze()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Snooze

The snooze.

getSnoozeBuilder()

public Snooze.Builder getSnoozeBuilder()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Snooze.Builder

getSnoozeOrBuilder()

public SnoozeOrBuilder getSnoozeOrBuilder()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SnoozeOrBuilder

hasSnooze()

public boolean hasSnooze()

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the snooze field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSnoozeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnooze(Snooze value)

public CreateSnoozeRequest.Builder mergeSnooze(Snooze value)

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Snooze
Returns
Type Description
CreateSnoozeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSnoozeRequest.Builder setParent(String value)

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSnoozeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSnoozeRequest.Builder setParentBytes(ByteString value)

Required. The project in which a Snooze should be created. The format is:

 projects/[PROJECT_ID_OR_NUMBER]

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSnoozeRequest.Builder

This builder for chaining.

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

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

setSnooze(Snooze value)

public CreateSnoozeRequest.Builder setSnooze(Snooze value)

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Snooze
Returns
Type Description
CreateSnoozeRequest.Builder

setSnooze(Snooze.Builder builderForValue)

public CreateSnoozeRequest.Builder setSnooze(Snooze.Builder builderForValue)

Required. The Snooze to create. Omit the name field, as it will be filled in by the API.

.google.monitoring.v3.Snooze snooze = 2 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

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