Class DlpJob

  • All Implemented Interfaces:
    DlpJobOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class DlpJob
    extends com.google.protobuf.GeneratedMessageV3
    implements DlpJobOrBuilder
     Combines all of the information about a DLP job.
     
    Protobuf type google.privacy.dlp.v2.DlpJob
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getName

        public String getName()
         The server-assigned name.
         
        string name = 1;
        Specified by:
        getName in interface DlpJobOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The server-assigned name.
         
        string name = 1;
        Specified by:
        getNameBytes in interface DlpJobOrBuilder
        Returns:
        The bytes for name.
      • getTypeValue

        public int getTypeValue()
         The type of job.
         
        .google.privacy.dlp.v2.DlpJobType type = 2;
        Specified by:
        getTypeValue in interface DlpJobOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getType

        public DlpJobType getType()
         The type of job.
         
        .google.privacy.dlp.v2.DlpJobType type = 2;
        Specified by:
        getType in interface DlpJobOrBuilder
        Returns:
        The type.
      • getStateValue

        public int getStateValue()
         State of a job.
         
        .google.privacy.dlp.v2.DlpJob.JobState state = 3;
        Specified by:
        getStateValue in interface DlpJobOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • hasRiskDetails

        public boolean hasRiskDetails()
         Results from analyzing risk of a data source.
         
        .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4;
        Specified by:
        hasRiskDetails in interface DlpJobOrBuilder
        Returns:
        Whether the riskDetails field is set.
      • hasInspectDetails

        public boolean hasInspectDetails()
         Results from inspecting a data source.
         
        .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5;
        Specified by:
        hasInspectDetails in interface DlpJobOrBuilder
        Returns:
        Whether the inspectDetails field is set.
      • hasCreateTime

        public boolean hasCreateTime()
         Time when the job was created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        hasCreateTime in interface DlpJobOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Time when the job was created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface DlpJobOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Time when the job was created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTimeOrBuilder in interface DlpJobOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         Time when the job started.
         
        .google.protobuf.Timestamp start_time = 7;
        Specified by:
        hasStartTime in interface DlpJobOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Time when the job started.
         
        .google.protobuf.Timestamp start_time = 7;
        Specified by:
        getStartTime in interface DlpJobOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Time when the job started.
         
        .google.protobuf.Timestamp start_time = 7;
        Specified by:
        getStartTimeOrBuilder in interface DlpJobOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Time when the job finished.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        hasEndTime in interface DlpJobOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Time when the job finished.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        getEndTime in interface DlpJobOrBuilder
        Returns:
        The endTime.
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Time when the job finished.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        getEndTimeOrBuilder in interface DlpJobOrBuilder
      • getJobTriggerName

        public String getJobTriggerName()
         If created by a job trigger, the resource name of the trigger that
         instantiated the job.
         
        string job_trigger_name = 10;
        Specified by:
        getJobTriggerName in interface DlpJobOrBuilder
        Returns:
        The jobTriggerName.
      • getJobTriggerNameBytes

        public com.google.protobuf.ByteString getJobTriggerNameBytes()
         If created by a job trigger, the resource name of the trigger that
         instantiated the job.
         
        string job_trigger_name = 10;
        Specified by:
        getJobTriggerNameBytes in interface DlpJobOrBuilder
        Returns:
        The bytes for jobTriggerName.
      • getErrorsList

        public List<Error> getErrorsList()
         A stream of errors encountered running the job.
         
        repeated .google.privacy.dlp.v2.Error errors = 11;
        Specified by:
        getErrorsList in interface DlpJobOrBuilder
      • getErrorsCount

        public int getErrorsCount()
         A stream of errors encountered running the job.
         
        repeated .google.privacy.dlp.v2.Error errors = 11;
        Specified by:
        getErrorsCount in interface DlpJobOrBuilder
      • getErrors

        public Error getErrors​(int index)
         A stream of errors encountered running the job.
         
        repeated .google.privacy.dlp.v2.Error errors = 11;
        Specified by:
        getErrors in interface DlpJobOrBuilder
      • getErrorsOrBuilder

        public ErrorOrBuilder getErrorsOrBuilder​(int index)
         A stream of errors encountered running the job.
         
        repeated .google.privacy.dlp.v2.Error errors = 11;
        Specified by:
        getErrorsOrBuilder in interface DlpJobOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DlpJob parseFrom​(ByteBuffer data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(ByteBuffer data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(com.google.protobuf.ByteString data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(com.google.protobuf.ByteString data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(byte[] data)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(byte[] data,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DlpJob parseFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DlpJob.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DlpJob.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DlpJob.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static DlpJob getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DlpJob> parser()
      • getParserForType

        public com.google.protobuf.Parser<DlpJob> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DlpJob getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder