Interface SearchHashesResponse.ThreatHashOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SearchHashesResponse.ThreatHash, SearchHashesResponse.ThreatHash.Builder
Enclosing class:
SearchHashesResponse

public static interface SearchHashesResponse.ThreatHashOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Timestamp
    The cache lifetime for the returned match.
    com.google.protobuf.TimestampOrBuilder
    The cache lifetime for the returned match.
    com.google.protobuf.ByteString
    A 32 byte SHA256 hash.
    getThreatTypes(int index)
    The ThreatList this threat belongs to.
    int
    The ThreatList this threat belongs to.
    The ThreatList this threat belongs to.
    int
    The ThreatList this threat belongs to.
    The ThreatList this threat belongs to.
    boolean
    The cache lifetime for the returned match.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getThreatTypesList

      List<ThreatType> getThreatTypesList()
       The ThreatList this threat belongs to.
       This must contain at least one entry.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Returns:
      A list containing the threatTypes.
    • getThreatTypesCount

      int getThreatTypesCount()
       The ThreatList this threat belongs to.
       This must contain at least one entry.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Returns:
      The count of threatTypes.
    • getThreatTypes

      ThreatType getThreatTypes(int index)
       The ThreatList this threat belongs to.
       This must contain at least one entry.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The threatTypes at the given index.
    • getThreatTypesValueList

      List<Integer> getThreatTypesValueList()
       The ThreatList this threat belongs to.
       This must contain at least one entry.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Returns:
      A list containing the enum numeric values on the wire for threatTypes.
    • getThreatTypesValue

      int getThreatTypesValue(int index)
       The ThreatList this threat belongs to.
       This must contain at least one entry.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of threatTypes at the given index.
    • getHash

      com.google.protobuf.ByteString getHash()
       A 32 byte SHA256 hash. This field is in binary format. For JSON
       requests, hashes are base64-encoded.
       
      bytes hash = 2;
      Returns:
      The hash.
    • hasExpireTime

      boolean hasExpireTime()
       The cache lifetime for the returned match. Clients must not cache this
       response past this timestamp to avoid false positives.
       
      .google.protobuf.Timestamp expire_time = 3;
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      com.google.protobuf.Timestamp getExpireTime()
       The cache lifetime for the returned match. Clients must not cache this
       response past this timestamp to avoid false positives.
       
      .google.protobuf.Timestamp expire_time = 3;
      Returns:
      The expireTime.
    • getExpireTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       The cache lifetime for the returned match. Clients must not cache this
       response past this timestamp to avoid false positives.
       
      .google.protobuf.Timestamp expire_time = 3;