Class CreateFindingRequest.Builder

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

public static final class CreateFindingRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateFindingRequest.Builder> implements CreateFindingRequestOrBuilder
 Request message for creating a finding.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.CreateFindingRequest
  • 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<CreateFindingRequest.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<CreateFindingRequest.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<CreateFindingRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateFindingRequest.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<CreateFindingRequest.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<CreateFindingRequest.Builder>
    • mergeFrom

      public CreateFindingRequest.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<CreateFindingRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Resource name of the new finding's parent. Its format should be
       "organizations/[organization_id]/sources/[source_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateFindingRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Resource name of the new finding's parent. Its format should be
       "organizations/[organization_id]/sources/[source_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateFindingRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateFindingRequest.Builder setParent(String value)
       Required. Resource name of the new finding's parent. Its format should be
       "organizations/[organization_id]/sources/[source_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateFindingRequest.Builder clearParent()
       Required. Resource name of the new finding's parent. Its format should be
       "organizations/[organization_id]/sources/[source_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateFindingRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the new finding's parent. Its format should be
       "organizations/[organization_id]/sources/[source_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getFindingId

      public String getFindingId()
       Required. Unique identifier provided by the client within the parent scope.
       
      string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFindingId in interface CreateFindingRequestOrBuilder
      Returns:
      The findingId.
    • getFindingIdBytes

      public com.google.protobuf.ByteString getFindingIdBytes()
       Required. Unique identifier provided by the client within the parent scope.
       
      string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFindingIdBytes in interface CreateFindingRequestOrBuilder
      Returns:
      The bytes for findingId.
    • setFindingId

      public CreateFindingRequest.Builder setFindingId(String value)
       Required. Unique identifier provided by the client within the parent scope.
       
      string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The findingId to set.
      Returns:
      This builder for chaining.
    • clearFindingId

      public CreateFindingRequest.Builder clearFindingId()
       Required. Unique identifier provided by the client within the parent scope.
       
      string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFindingIdBytes

      public CreateFindingRequest.Builder setFindingIdBytes(com.google.protobuf.ByteString value)
       Required. Unique identifier provided by the client within the parent scope.
       
      string finding_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for findingId to set.
      Returns:
      This builder for chaining.
    • hasFinding

      public boolean hasFinding()
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFinding in interface CreateFindingRequestOrBuilder
      Returns:
      Whether the finding field is set.
    • getFinding

      public Finding getFinding()
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFinding in interface CreateFindingRequestOrBuilder
      Returns:
      The finding.
    • setFinding

      public CreateFindingRequest.Builder setFinding(Finding value)
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    • setFinding

      public CreateFindingRequest.Builder setFinding(Finding.Builder builderForValue)
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeFinding

      public CreateFindingRequest.Builder mergeFinding(Finding value)
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearFinding

      public CreateFindingRequest.Builder clearFinding()
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFindingBuilder

      public Finding.Builder getFindingBuilder()
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFindingOrBuilder

      public FindingOrBuilder getFindingOrBuilder()
       Required. The Finding being created. The name and security_marks will be ignored as
       they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFindingOrBuilder in interface CreateFindingRequestOrBuilder