Class SearchUrisResponse.ThreatUri.Builder

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

public static final class SearchUrisResponse.ThreatUri.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchUrisResponse.ThreatUri.Builder> implements SearchUrisResponse.ThreatUriOrBuilder
 Contains threat information on a matching uri.
 
Protobuf type google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri
  • 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<SearchUrisResponse.ThreatUri.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<SearchUrisResponse.ThreatUri.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<SearchUrisResponse.ThreatUri.Builder>
    • getDefaultInstanceForType

      public SearchUrisResponse.ThreatUri 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 SearchUrisResponse.ThreatUri buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public SearchUrisResponse.ThreatUri.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<SearchUrisResponse.ThreatUri.Builder>
      Throws:
      IOException
    • getThreatTypesList

      public List<ThreatType> getThreatTypesList()
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Specified by:
      getThreatTypesList in interface SearchUrisResponse.ThreatUriOrBuilder
      Returns:
      A list containing the threatTypes.
    • getThreatTypesCount

      public int getThreatTypesCount()
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Specified by:
      getThreatTypesCount in interface SearchUrisResponse.ThreatUriOrBuilder
      Returns:
      The count of threatTypes.
    • getThreatTypes

      public ThreatType getThreatTypes(int index)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Specified by:
      getThreatTypes in interface SearchUrisResponse.ThreatUriOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The threatTypes at the given index.
    • setThreatTypes

      public SearchUrisResponse.ThreatUri.Builder setThreatTypes(int index, ThreatType value)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The threatTypes to set.
      Returns:
      This builder for chaining.
    • addThreatTypes

      public SearchUrisResponse.ThreatUri.Builder addThreatTypes(ThreatType value)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      value - The threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypes

      public SearchUrisResponse.ThreatUri.Builder addAllThreatTypes(Iterable<? extends ThreatType> values)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      values - The threatTypes to add.
      Returns:
      This builder for chaining.
    • clearThreatTypes

      public SearchUrisResponse.ThreatUri.Builder clearThreatTypes()
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Returns:
      This builder for chaining.
    • getThreatTypesValueList

      public List<Integer> getThreatTypesValueList()
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Specified by:
      getThreatTypesValueList in interface SearchUrisResponse.ThreatUriOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for threatTypes.
    • getThreatTypesValue

      public int getThreatTypesValue(int index)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Specified by:
      getThreatTypesValue in interface SearchUrisResponse.ThreatUriOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of threatTypes at the given index.
    • setThreatTypesValue

      public SearchUrisResponse.ThreatUri.Builder setThreatTypesValue(int index, int value)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for threatTypes to set.
      Returns:
      This builder for chaining.
    • addThreatTypesValue

      public SearchUrisResponse.ThreatUri.Builder addThreatTypesValue(int value)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      value - The enum numeric value on the wire for threatTypes to add.
      Returns:
      This builder for chaining.
    • addAllThreatTypesValue

      public SearchUrisResponse.ThreatUri.Builder addAllThreatTypesValue(Iterable<Integer> values)
       The ThreatList this threat belongs to.
       
      repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;
      Parameters:
      values - The enum numeric values on the wire for threatTypes to add.
      Returns:
      This builder for chaining.
    • hasExpireTime

      public 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 = 2;
      Specified by:
      hasExpireTime in interface SearchUrisResponse.ThreatUriOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public 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 = 2;
      Specified by:
      getExpireTime in interface SearchUrisResponse.ThreatUriOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public SearchUrisResponse.ThreatUri.Builder setExpireTime(com.google.protobuf.Timestamp value)
       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 = 2;
    • setExpireTime

      public SearchUrisResponse.ThreatUri.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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 = 2;
    • mergeExpireTime

      public SearchUrisResponse.ThreatUri.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       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 = 2;
    • clearExpireTime

      public SearchUrisResponse.ThreatUri.Builder clearExpireTime()
       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 = 2;
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       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 = 2;
    • getExpireTimeOrBuilder

      public 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 = 2;
      Specified by:
      getExpireTimeOrBuilder in interface SearchUrisResponse.ThreatUriOrBuilder