Class ComputeThreatListDiffRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public ComputeThreatListDiffRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         Required. The threat list to update. Only a single ThreatType should be
         specified per request. If you want to handle multiple ThreatTypes, you must
         make one request per ThreatType.
         
        .google.cloud.webrisk.v1.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)
         Required. The threat list to update. Only a single ThreatType should be
         specified per request. If you want to handle multiple ThreatTypes, you must
         make one request per ThreatType.
         
        .google.cloud.webrisk.v1.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()
         Required. The threat list to update. Only a single ThreatType should be
         specified per request. If you want to handle multiple ThreatTypes, you must
         make one request per ThreatType.
         
        .google.cloud.webrisk.v1.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)
         Required. The threat list to update. Only a single ThreatType should be
         specified per request. If you want to handle multiple ThreatTypes, you must
         make one request per ThreatType.
         
        .google.cloud.webrisk.v1.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()
         Required. The threat list to update. Only a single ThreatType should be
         specified per request. If you want to handle multiple ThreatTypes, you must
         make one request per ThreatType.
         
        .google.cloud.webrisk.v1.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).
         If the client does not have a version token (this is the first time calling
         ComputeThreatListDiff), this may be left empty and a full database
         snapshot will be returned.
         
        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).
         If the client does not have a version token (this is the first time calling
         ComputeThreatListDiff), this may be left empty and a full database
         snapshot will be returned.
         
        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).
         If the client does not have a version token (this is the first time calling
         ComputeThreatListDiff), this may be left empty and a full database
         snapshot will be returned.
         
        bytes version_token = 2;
        Returns:
        This builder for chaining.
      • hasConstraints

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

        public ComputeThreatListDiffRequest.Builder clearConstraints()
         Required. The constraints associated with this request.
         
        .google.cloud.webrisk.v1.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.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];