Class CreateSubmissionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSubmissionRequest.Builder>
com.google.webrisk.v1.CreateSubmissionRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CreateSubmissionRequestOrBuilder, Cloneable
Enclosing class:
CreateSubmissionRequest

public static final class CreateSubmissionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSubmissionRequest.Builder> implements CreateSubmissionRequestOrBuilder
 Request to send a potentially phishy URI to WebRisk.
 
Protobuf type google.cloud.webrisk.v1.CreateSubmissionRequest
  • 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<CreateSubmissionRequest.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<CreateSubmissionRequest.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<CreateSubmissionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The name of the project that is making the submission. This
       string is in the format "projects/{project_number}".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSubmissionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the project that is making the submission. This
       string is in the format "projects/{project_number}".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateSubmissionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSubmissionRequest.Builder setParent(String value)
       Required. The name of the project that is making the submission. This
       string is in the format "projects/{project_number}".
       
      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 CreateSubmissionRequest.Builder clearParent()
       Required. The name of the project that is making the submission. This
       string is in the format "projects/{project_number}".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSubmissionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the project that is making the submission. This
       string is in the format "projects/{project_number}".
       
      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.
    • hasSubmission

      public boolean hasSubmission()
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSubmission in interface CreateSubmissionRequestOrBuilder
      Returns:
      Whether the submission field is set.
    • getSubmission

      public Submission getSubmission()
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubmission in interface CreateSubmissionRequestOrBuilder
      Returns:
      The submission.
    • setSubmission

      public CreateSubmissionRequest.Builder setSubmission(Submission value)
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSubmission

      public CreateSubmissionRequest.Builder setSubmission(Submission.Builder builderForValue)
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSubmission

      public CreateSubmissionRequest.Builder mergeSubmission(Submission value)
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSubmission

      public CreateSubmissionRequest.Builder clearSubmission()
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSubmissionBuilder

      public Submission.Builder getSubmissionBuilder()
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSubmissionOrBuilder

      public SubmissionOrBuilder getSubmissionOrBuilder()
       Required. The submission that contains the content of the phishing report.
       
      .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSubmissionOrBuilder in interface CreateSubmissionRequestOrBuilder