Send feedback
Class Job (2.76.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class Job extends GeneratedMessageV3 implements JobOrBuilder
Describes a job
Protobuf type google.cloud.securitycenter.v2.Job
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ERROR_CODE_FIELD_NUMBER
public static final int ERROR_CODE_FIELD_NUMBER
Field Value
Type
Description
int
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Job getDefaultInstance ()
Returns
Type
Description
Job
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Job . Builder newBuilder ()
newBuilder(Job prototype)
public static Job . Builder newBuilder ( Job prototype )
Parameter
Name
Description
prototype
Job
public static Job parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Job
public static Job parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
parseFrom(byte[] data)
public static Job parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Job
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
parseFrom(ByteString data)
public static Job parseFrom ( ByteString data )
Returns
Type
Description
Job
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
public static Job parseFrom ( CodedInputStream input )
Returns
Type
Description
Job
public static Job parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
public static Job parseFrom ( InputStream input )
Returns
Type
Description
Job
public static Job parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
parseFrom(ByteBuffer data)
public static Job parseFrom ( ByteBuffer data )
Returns
Type
Description
Job
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Job
parser()
public static Parser<Job> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Job getDefaultInstanceForType ()
Returns
Type
Description
Job
getErrorCode()
public int getErrorCode ()
Optional. If the job did not complete successfully, this field describes
why.
int32 error_code = 3;
Returns
Type
Description
int
The errorCode.
getLocation()
public String getLocation ()
Optional. Gives the location where the job ran, such as US
or
europe-west1
string location = 4;
Returns
Type
Description
String
The location.
getLocationBytes()
public ByteString getLocationBytes ()
Optional. Gives the location where the job ran, such as US
or
europe-west1
string location = 4;
Returns
Type
Description
ByteString
The bytes for location.
getName()
The fully-qualified name for a job.
e.g. projects/<project_id>/jobs/<job_id>
string name = 1;
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
The fully-qualified name for a job.
e.g. projects/<project_id>/jobs/<job_id>
string name = 1;
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<Job> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getState()
public JobState getState ()
Output only. State of the job, such as RUNNING
or PENDING
.
.google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
JobState
The state.
getStateValue()
public int getStateValue ()
Output only. State of the job, such as RUNNING
or PENDING
.
.google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for state.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Job . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Job . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Job . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-18 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-18 UTC."],[],[]]