Package com.google.monitoring.v3
Class UpdateSnoozeRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
- com.google.monitoring.v3.UpdateSnoozeRequest.Builder
-
- All Implemented Interfaces:
UpdateSnoozeRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UpdateSnoozeRequest
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 typegoogle.monitoring.v3.UpdateSnoozeRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateSnoozeRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UpdateSnoozeRequestbuild()UpdateSnoozeRequestbuildPartial()UpdateSnoozeRequest.Builderclear()UpdateSnoozeRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UpdateSnoozeRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UpdateSnoozeRequest.BuilderclearSnooze()Required.UpdateSnoozeRequest.BuilderclearUpdateMask()Required.UpdateSnoozeRequest.Builderclone()UpdateSnoozeRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()SnoozegetSnooze()Required.Snooze.BuildergetSnoozeBuilder()Required.SnoozeOrBuildergetSnoozeOrBuilder()Required.com.google.protobuf.FieldMaskgetUpdateMask()Required.com.google.protobuf.FieldMask.BuildergetUpdateMaskBuilder()Required.com.google.protobuf.FieldMaskOrBuildergetUpdateMaskOrBuilder()Required.booleanhasSnooze()Required.booleanhasUpdateMask()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UpdateSnoozeRequest.BuildermergeFrom(UpdateSnoozeRequest other)UpdateSnoozeRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UpdateSnoozeRequest.BuildermergeFrom(com.google.protobuf.Message other)UpdateSnoozeRequest.BuildermergeSnooze(Snooze value)Required.UpdateSnoozeRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UpdateSnoozeRequest.BuildermergeUpdateMask(com.google.protobuf.FieldMask value)Required.UpdateSnoozeRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UpdateSnoozeRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UpdateSnoozeRequest.BuildersetSnooze(Snooze value)Required.UpdateSnoozeRequest.BuildersetSnooze(Snooze.Builder builderForValue)Required.UpdateSnoozeRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UpdateSnoozeRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask value)Required.UpdateSnoozeRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clear
public UpdateSnoozeRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
getDefaultInstanceForType
public UpdateSnoozeRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpdateSnoozeRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpdateSnoozeRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UpdateSnoozeRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
setField
public UpdateSnoozeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clearField
public UpdateSnoozeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clearOneof
public UpdateSnoozeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
setRepeatedField
public UpdateSnoozeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
addRepeatedField
public UpdateSnoozeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
mergeFrom
public UpdateSnoozeRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateSnoozeRequest.Builder>
-
mergeFrom
public UpdateSnoozeRequest.Builder mergeFrom(UpdateSnoozeRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
mergeFrom
public UpdateSnoozeRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateSnoozeRequest.Builder>- Throws:
IOException
-
hasSnooze
public boolean hasSnooze()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasSnoozein interfaceUpdateSnoozeRequestOrBuilder- Returns:
- Whether the snooze field is set.
-
getSnooze
public Snooze getSnooze()
Required. The `Snooze` to update. Must have the name field present.
.google.monitoring.v3.Snooze snooze = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSnoozein interfaceUpdateSnoozeRequestOrBuilder- Returns:
- The snooze.
-
setSnooze
public 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];
-
setSnooze
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];
-
mergeSnooze
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];
-
clearSnooze
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];
-
getSnoozeBuilder
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];
-
getSnoozeOrBuilder
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];- Specified by:
getSnoozeOrBuilderin interfaceUpdateSnoozeRequestOrBuilder
-
hasUpdateMask
public 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];- Specified by:
hasUpdateMaskin interfaceUpdateSnoozeRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public 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];- Specified by:
getUpdateMaskin interfaceUpdateSnoozeRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
public 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];
-
setUpdateMask
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];
-
mergeUpdateMask
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];
-
clearUpdateMask
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];
-
getUpdateMaskBuilder
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];
-
getUpdateMaskOrBuilder
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];- Specified by:
getUpdateMaskOrBuilderin interfaceUpdateSnoozeRequestOrBuilder
-
setUnknownFields
public final UpdateSnoozeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
mergeUnknownFields
public final UpdateSnoozeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
-