Class ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.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<ThreatInfo.ThreatJustification.Builder>
      • getDefaultInstanceForType

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

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

        public ThreatInfo.ThreatJustification 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<ThreatInfo.ThreatJustification.Builder>
      • getLabelsCount

        public int getLabelsCount()
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Specified by:
        getLabelsCount in interface ThreatInfo.ThreatJustificationOrBuilder
        Returns:
        The count of labels.
      • clearLabels

        public ThreatInfo.ThreatJustification.Builder clearLabels()
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Returns:
        This builder for chaining.
      • getLabelsValueList

        public List<Integer> getLabelsValueList()
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Specified by:
        getLabelsValueList in interface ThreatInfo.ThreatJustificationOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for labels.
      • getLabelsValue

        public int getLabelsValue​(int index)
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Specified by:
        getLabelsValue in interface ThreatInfo.ThreatJustificationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of labels at the given index.
      • setLabelsValue

        public ThreatInfo.ThreatJustification.Builder setLabelsValue​(int index,
                                                                     int value)
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for labels to set.
        Returns:
        This builder for chaining.
      • addLabelsValue

        public ThreatInfo.ThreatJustification.Builder addLabelsValue​(int value)
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Parameters:
        value - The enum numeric value on the wire for labels to add.
        Returns:
        This builder for chaining.
      • addAllLabelsValue

        public ThreatInfo.ThreatJustification.Builder addAllLabelsValue​(Iterable<Integer> values)
         Labels associated with this URI that explain how it was classified.
         
        repeated .google.cloud.webrisk.v1.ThreatInfo.ThreatJustification.JustificationLabel labels = 1;
        Parameters:
        values - The enum numeric values on the wire for labels to add.
        Returns:
        This builder for chaining.
      • getCommentsList

        public com.google.protobuf.ProtocolStringList getCommentsList()
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Specified by:
        getCommentsList in interface ThreatInfo.ThreatJustificationOrBuilder
        Returns:
        A list containing the comments.
      • getComments

        public String getComments​(int index)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Specified by:
        getComments in interface ThreatInfo.ThreatJustificationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The comments at the given index.
      • getCommentsBytes

        public com.google.protobuf.ByteString getCommentsBytes​(int index)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Specified by:
        getCommentsBytes in interface ThreatInfo.ThreatJustificationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the comments at the given index.
      • setComments

        public ThreatInfo.ThreatJustification.Builder setComments​(int index,
                                                                  String value)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Parameters:
        index - The index to set the value at.
        value - The comments to set.
        Returns:
        This builder for chaining.
      • addComments

        public ThreatInfo.ThreatJustification.Builder addComments​(String value)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Parameters:
        value - The comments to add.
        Returns:
        This builder for chaining.
      • addAllComments

        public ThreatInfo.ThreatJustification.Builder addAllComments​(Iterable<String> values)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Parameters:
        values - The comments to add.
        Returns:
        This builder for chaining.
      • clearComments

        public ThreatInfo.ThreatJustification.Builder clearComments()
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Returns:
        This builder for chaining.
      • addCommentsBytes

        public ThreatInfo.ThreatJustification.Builder addCommentsBytes​(com.google.protobuf.ByteString value)
         Free-form context on why this URI is unsafe.
         
        repeated string comments = 2;
        Parameters:
        value - The bytes of the comments to add.
        Returns:
        This builder for chaining.