Class UpdateFindingRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder>
com.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest.Builder
All Implemented Interfaces:
UpdateFindingRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateFindingRequest

public static final class UpdateFindingRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder> implements UpdateFindingRequestOrBuilder
 Request message for updating or creating a finding.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder>
    • getDefaultInstanceForType

      public UpdateFindingRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UpdateFindingRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpdateFindingRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UpdateFindingRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateFindingRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UpdateFindingRequest.Builder>
    • mergeFrom

      public UpdateFindingRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateFindingRequest.Builder>
      Throws:
      IOException
    • hasFinding

      public boolean hasFinding()
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFinding in interface UpdateFindingRequestOrBuilder
      Returns:
      Whether the finding field is set.
    • getFinding

      public Finding getFinding()
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFinding in interface UpdateFindingRequestOrBuilder
      Returns:
      The finding.
    • setFinding

      public UpdateFindingRequest.Builder setFinding(Finding value)
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    • setFinding

      public UpdateFindingRequest.Builder setFinding(Finding.Builder builderForValue)
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeFinding

      public UpdateFindingRequest.Builder mergeFinding(Finding value)
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearFinding

      public UpdateFindingRequest.Builder clearFinding()
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFindingBuilder

      public Finding.Builder getFindingBuilder()
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
    • getFindingOrBuilder

      public FindingOrBuilder getFindingOrBuilder()
       Required. The finding resource to update or create if it does not already exist.
       parent, security_marks, and update_time will be ignored.
      
       In the case of creation, the finding id portion of the name must be
       alphanumeric and less than or equal to 32 characters and greater than 0
       characters in length.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFindingOrBuilder in interface UpdateFindingRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateFindingRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateFindingRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateFindingRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateFindingRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateFindingRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateFindingRequest.Builder clearUpdateMask()
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The FieldMask to use when updating the finding resource. This field should
       not be specified when creating a finding.
      
       When updating a finding, an empty mask is treated as updating all mutable
       fields and replacing source_properties.  Individual source_properties can
       be added/updated by using "source_properties.<property key>" in the field
       mask.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateFindingRequestOrBuilder