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.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(UpdateSnoozeRequest other)
UpdateSnoozeRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UpdateSnoozeRequest.Builder
mergeFrom(com.google.protobuf.Message 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 value)
Required.UpdateSnoozeRequest.Builder
setSnooze(Snooze.Builder builderForValue)
Required.UpdateSnoozeRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UpdateSnoozeRequest.Builder
setUpdateMask(com.google.protobuf.FieldMask value)
Required.UpdateSnoozeRequest.Builder
setUpdateMask(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clear
public UpdateSnoozeRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
getDefaultInstanceForType
public UpdateSnoozeRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpdateSnoozeRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpdateSnoozeRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UpdateSnoozeRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
setField
public UpdateSnoozeRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clearField
public UpdateSnoozeRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
clearOneof
public UpdateSnoozeRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
setRepeatedField
public UpdateSnoozeRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
addRepeatedField
public UpdateSnoozeRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
mergeFrom
public UpdateSnoozeRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpdateSnoozeRequest.Builder>
-
mergeFrom
public UpdateSnoozeRequest.Builder mergeFrom(UpdateSnoozeRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasSnooze
in 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:
getSnooze
in 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:
getSnoozeOrBuilder
in 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:
hasUpdateMask
in 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:
getUpdateMask
in 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:
getUpdateMaskOrBuilder
in interfaceUpdateSnoozeRequestOrBuilder
-
setUnknownFields
public final UpdateSnoozeRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
mergeUnknownFields
public final UpdateSnoozeRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateSnoozeRequest.Builder>
-
-