Class CreateSnoozeRequest.Builder (3.35.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.35.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CreateSnoozeRequest . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   CreateSnoozeRequest   build ()  
  
  buildPartial() 
  
    
public   CreateSnoozeRequest   buildPartial ()  
  
  clear() 
  
    
public   CreateSnoozeRequest . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   CreateSnoozeRequest . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   CreateSnoozeRequest . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  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) = { ... }
 
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];
 
clone() 
  
    
public   CreateSnoozeRequest . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   CreateSnoozeRequest   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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];
 
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];
 
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 ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(CreateSnoozeRequest other) 
  
    
public   CreateSnoozeRequest . Builder   mergeFrom ( CreateSnoozeRequest   other )  
  
  
  
    
public   CreateSnoozeRequest . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   CreateSnoozeRequest . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  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  
      
        valueSnooze  
     
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CreateSnoozeRequest . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   CreateSnoozeRequest . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  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  
      
        valueString The parent to set.
 
     
  
  
  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  
      
        valueByteString The bytes for parent to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   CreateSnoozeRequest . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  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  
      
        valueSnooze  
     
  
  
  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];
 
setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   CreateSnoozeRequest . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]