Class ComputeThreatListDiffRequest.Builder

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

public static final class ComputeThreatListDiffRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffRequest.Builder> implements ComputeThreatListDiffRequestOrBuilder
 Describes an API diff request.
 
Protobuf type google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest
  • 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<ComputeThreatListDiffRequest.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<ComputeThreatListDiffRequest.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<ComputeThreatListDiffRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ComputeThreatListDiffRequest.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<ComputeThreatListDiffRequest.Builder>
      Throws:
      IOException
    • getThreatTypeValue

      public int getThreatTypeValue()
       The ThreatList to update.
       
      .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatTypeValue in interface ComputeThreatListDiffRequestOrBuilder
      Returns:
      The enum numeric value on the wire for threatType.
    • setThreatTypeValue

      public ComputeThreatListDiffRequest.Builder setThreatTypeValue(int value)
       The ThreatList to update.
       
      .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for threatType to set.
      Returns:
      This builder for chaining.
    • getThreatType

      public ThreatType getThreatType()
       The ThreatList to update.
       
      .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getThreatType in interface ComputeThreatListDiffRequestOrBuilder
      Returns:
      The threatType.
    • setThreatType

      public ComputeThreatListDiffRequest.Builder setThreatType(ThreatType value)
       The ThreatList to update.
       
      .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The threatType to set.
      Returns:
      This builder for chaining.
    • clearThreatType

      public ComputeThreatListDiffRequest.Builder clearThreatType()
       The ThreatList to update.
       
      .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getVersionToken

      public com.google.protobuf.ByteString getVersionToken()
       The current version token of the client for the requested list (the
       client version that was received from the last successful diff).
       
      bytes version_token = 2;
      Specified by:
      getVersionToken in interface ComputeThreatListDiffRequestOrBuilder
      Returns:
      The versionToken.
    • setVersionToken

      public ComputeThreatListDiffRequest.Builder setVersionToken(com.google.protobuf.ByteString value)
       The current version token of the client for the requested list (the
       client version that was received from the last successful diff).
       
      bytes version_token = 2;
      Parameters:
      value - The versionToken to set.
      Returns:
      This builder for chaining.
    • clearVersionToken

      public ComputeThreatListDiffRequest.Builder clearVersionToken()
       The current version token of the client for the requested list (the
       client version that was received from the last successful diff).
       
      bytes version_token = 2;
      Returns:
      This builder for chaining.
    • hasConstraints

      public boolean hasConstraints()
       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConstraints in interface ComputeThreatListDiffRequestOrBuilder
      Returns:
      Whether the constraints field is set.
    • getConstraints

       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConstraints in interface ComputeThreatListDiffRequestOrBuilder
      Returns:
      The constraints.
    • setConstraints

       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
    • setConstraints

       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeConstraints

       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearConstraints

      public ComputeThreatListDiffRequest.Builder clearConstraints()
       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConstraintsBuilder

      public ComputeThreatListDiffRequest.Constraints.Builder getConstraintsBuilder()
       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConstraintsOrBuilder

      public ComputeThreatListDiffRequest.ConstraintsOrBuilder getConstraintsOrBuilder()
       Required. The constraints associated with this request.
       
      .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConstraintsOrBuilder in interface ComputeThreatListDiffRequestOrBuilder