public static final class UpdateSnoozeRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder> implements UpdateSnoozeRequestOrBuilder
The message definition for updating a `Snooze`. The field, `snooze.name`
identifies the `Snooze` to be updated. The remainder of `snooze` gives the
content the `Snooze` in question will be assigned.
What fields can be updated depends on the start time and end time of the
`Snooze`.
* end time is in the past: These `Snooze`s are considered
read-only and cannot be updated.
* start time is in the past and end time is in the future: `display_name`
and `interval.end_time` can be updated.
* start time is in the future: `display_name`, `interval.start_time` and
`interval.end_time` can be updated.
Protobuf type google.monitoring.v3.UpdateSnoozeRequest| Modifier and Type | Method and Description |
|---|---|
UpdateSnoozeRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateSnoozeRequest |
build() |
UpdateSnoozeRequest |
buildPartial() |
UpdateSnoozeRequest.Builder |
clear() |
UpdateSnoozeRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UpdateSnoozeRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UpdateSnoozeRequest.Builder |
clearSnooze()
Required.
|
UpdateSnoozeRequest.Builder |
clearUpdateMask()
Required.
|
UpdateSnoozeRequest.Builder |
clone() |
UpdateSnoozeRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Snooze |
getSnooze()
Required.
|
Snooze.Builder |
getSnoozeBuilder()
Required.
|
SnoozeOrBuilder |
getSnoozeOrBuilder()
Required.
|
com.google.protobuf.FieldMask |
getUpdateMask()
Required.
|
com.google.protobuf.FieldMask.Builder |
getUpdateMaskBuilder()
Required.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Required.
|
boolean |
hasSnooze()
Required.
|
boolean |
hasUpdateMask()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UpdateSnoozeRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UpdateSnoozeRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UpdateSnoozeRequest.Builder |
mergeFrom(UpdateSnoozeRequest other) |
UpdateSnoozeRequest.Builder |
mergeSnooze(Snooze value)
Required.
|
UpdateSnoozeRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateSnoozeRequest.Builder |
mergeUpdateMask(com.google.protobuf.FieldMask value)
Required.
|
UpdateSnoozeRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateSnoozeRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UpdateSnoozeRequest.Builder |
setSnooze(Snooze.Builder builderForValue)
Required.
|
UpdateSnoozeRequest.Builder |
setSnooze(Snooze value)
Required.
|
UpdateSnoozeRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateSnoozeRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Required.
|
UpdateSnoozeRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UpdateSnoozeRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UpdateSnoozeRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UpdateSnoozeRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder mergeFrom(UpdateSnoozeRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public UpdateSnoozeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateSnoozeRequest.Builder>IOExceptionpublic boolean hasSnooze()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
hasSnooze in interface UpdateSnoozeRequestOrBuilderpublic Snooze getSnooze()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
getSnooze in interface UpdateSnoozeRequestOrBuilderpublic UpdateSnoozeRequest.Builder setSnooze(Snooze value)
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder setSnooze(Snooze.Builder builderForValue)
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder mergeSnooze(Snooze value)
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder clearSnooze()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
public Snooze.Builder getSnoozeBuilder()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
public SnoozeOrBuilder getSnoozeOrBuilder()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];
getSnoozeOrBuilder in interface UpdateSnoozeRequestOrBuilderpublic boolean hasUpdateMask()
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
hasUpdateMask in interface UpdateSnoozeRequestOrBuilderpublic com.google.protobuf.FieldMask getUpdateMask()
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
getUpdateMask in interface UpdateSnoozeRequestOrBuilderpublic UpdateSnoozeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public UpdateSnoozeRequest.Builder clearUpdateMask()
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. The fields to update.
For each field listed in `update_mask`:
* If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
value for that field, the value of the field in the existing `Snooze`
will be set to the value of the field in the supplied `Snooze`.
* If the field does not have a value in the supplied `Snooze`, the field
in the existing `Snooze` is set to its default value.
Fields not listed retain their existing value.
The following are the field names that are accepted in `update_mask`:
* `display_name`
* `interval.start_time`
* `interval.end_time`
That said, the start time and end time of the `Snooze` determines which
fields can legally be updated. Before attempting an update, users should
consult the documentation for `UpdateSnoozeRequest`, which talks about
which fields can be updated.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
getUpdateMaskOrBuilder in interface UpdateSnoozeRequestOrBuilderpublic final UpdateSnoozeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>public final UpdateSnoozeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.