Class ScanRunLog.Builder

  • All Implemented Interfaces:
    ScanRunLogOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ScanRunLog

    public static final class ScanRunLog.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
    implements ScanRunLogOrBuilder
     A ScanRunLog is an output-only proto used for Stackdriver customer logging.
     It is used for logs covering the start and end of scan pipelines.
     Other than an added summary, this is a subset of the ScanRun.
     Representation in logs is either a proto Struct, or converted to JSON.
     Next id: 9
     
    Protobuf type google.cloud.websecurityscanner.v1.ScanRunLog
    • 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<ScanRunLog.Builder>
      • clear

        public ScanRunLog.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.GeneratedMessageV3.Builder<ScanRunLog.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<ScanRunLog.Builder>
      • getDefaultInstanceForType

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

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

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

        public ScanRunLog.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • setField

        public ScanRunLog.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • clearField

        public ScanRunLog.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • clearOneof

        public ScanRunLog.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • setRepeatedField

        public ScanRunLog.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • addRepeatedField

        public ScanRunLog.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • mergeFrom

        public ScanRunLog.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<ScanRunLog.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • mergeFrom

        public ScanRunLog.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<ScanRunLog.Builder>
        Throws:
        IOException
      • getSummary

        public String getSummary()
         Human friendly message about the event.
         
        string summary = 1;
        Specified by:
        getSummary in interface ScanRunLogOrBuilder
        Returns:
        The summary.
      • getSummaryBytes

        public com.google.protobuf.ByteString getSummaryBytes()
         Human friendly message about the event.
         
        string summary = 1;
        Specified by:
        getSummaryBytes in interface ScanRunLogOrBuilder
        Returns:
        The bytes for summary.
      • setSummary

        public ScanRunLog.Builder setSummary​(String value)
         Human friendly message about the event.
         
        string summary = 1;
        Parameters:
        value - The summary to set.
        Returns:
        This builder for chaining.
      • clearSummary

        public ScanRunLog.Builder clearSummary()
         Human friendly message about the event.
         
        string summary = 1;
        Returns:
        This builder for chaining.
      • setSummaryBytes

        public ScanRunLog.Builder setSummaryBytes​(com.google.protobuf.ByteString value)
         Human friendly message about the event.
         
        string summary = 1;
        Parameters:
        value - The bytes for summary to set.
        Returns:
        This builder for chaining.
      • getName

        public String getName()
         The resource name of the ScanRun being logged.
         
        string name = 2;
        Specified by:
        getName in interface ScanRunLogOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the ScanRun being logged.
         
        string name = 2;
        Specified by:
        getNameBytes in interface ScanRunLogOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ScanRunLog.Builder setName​(String value)
         The resource name of the ScanRun being logged.
         
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ScanRunLog.Builder clearName()
         The resource name of the ScanRun being logged.
         
        string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ScanRunLog.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the ScanRun being logged.
         
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getExecutionStateValue

        public int getExecutionStateValue()
         The execution state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
        Specified by:
        getExecutionStateValue in interface ScanRunLogOrBuilder
        Returns:
        The enum numeric value on the wire for executionState.
      • setExecutionStateValue

        public ScanRunLog.Builder setExecutionStateValue​(int value)
         The execution state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
        Parameters:
        value - The enum numeric value on the wire for executionState to set.
        Returns:
        This builder for chaining.
      • setExecutionState

        public ScanRunLog.Builder setExecutionState​(ScanRun.ExecutionState value)
         The execution state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
        Parameters:
        value - The executionState to set.
        Returns:
        This builder for chaining.
      • clearExecutionState

        public ScanRunLog.Builder clearExecutionState()
         The execution state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
        Returns:
        This builder for chaining.
      • getResultStateValue

        public int getResultStateValue()
         The result state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
        Specified by:
        getResultStateValue in interface ScanRunLogOrBuilder
        Returns:
        The enum numeric value on the wire for resultState.
      • setResultStateValue

        public ScanRunLog.Builder setResultStateValue​(int value)
         The result state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
        Parameters:
        value - The enum numeric value on the wire for resultState to set.
        Returns:
        This builder for chaining.
      • setResultState

        public ScanRunLog.Builder setResultState​(ScanRun.ResultState value)
         The result state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
        Parameters:
        value - The resultState to set.
        Returns:
        This builder for chaining.
      • clearResultState

        public ScanRunLog.Builder clearResultState()
         The result state of the ScanRun.
         
        .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
        Returns:
        This builder for chaining.
      • setUrlsCrawledCount

        public ScanRunLog.Builder setUrlsCrawledCount​(long value)
        int64 urls_crawled_count = 5;
        Parameters:
        value - The urlsCrawledCount to set.
        Returns:
        This builder for chaining.
      • clearUrlsCrawledCount

        public ScanRunLog.Builder clearUrlsCrawledCount()
        int64 urls_crawled_count = 5;
        Returns:
        This builder for chaining.
      • setUrlsTestedCount

        public ScanRunLog.Builder setUrlsTestedCount​(long value)
        int64 urls_tested_count = 6;
        Parameters:
        value - The urlsTestedCount to set.
        Returns:
        This builder for chaining.
      • clearUrlsTestedCount

        public ScanRunLog.Builder clearUrlsTestedCount()
        int64 urls_tested_count = 6;
        Returns:
        This builder for chaining.
      • setHasFindings

        public ScanRunLog.Builder setHasFindings​(boolean value)
        bool has_findings = 7;
        Parameters:
        value - The hasFindings to set.
        Returns:
        This builder for chaining.
      • clearHasFindings

        public ScanRunLog.Builder clearHasFindings()
        bool has_findings = 7;
        Returns:
        This builder for chaining.
      • hasErrorTrace

        public boolean hasErrorTrace()
        .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
        Specified by:
        hasErrorTrace in interface ScanRunLogOrBuilder
        Returns:
        Whether the errorTrace field is set.
      • clearErrorTrace

        public ScanRunLog.Builder clearErrorTrace()
        .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
      • getErrorTraceBuilder

        public ScanRunErrorTrace.Builder getErrorTraceBuilder()
        .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
      • setUnknownFields

        public final ScanRunLog.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>
      • mergeUnknownFields

        public final ScanRunLog.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScanRunLog.Builder>