public static final class Job.Builder extends GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder
Describes a job
Protobuf type google.cloud.securitycenter.v2.Job
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Job.BuilderImplements
JobOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Job.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Job.Builder |
build()
public Job build()
Returns | |
---|---|
Type | Description |
Job |
buildPartial()
public Job buildPartial()
Returns | |
---|---|
Type | Description |
Job |
clear()
public Job.Builder clear()
Returns | |
---|---|
Type | Description |
Job.Builder |
clearErrorCode()
public Job.Builder clearErrorCode()
Optional. If the job did not complete successfully, this field describes why.
int32 error_code = 3;
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Job.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Job.Builder |
clearLocation()
public Job.Builder clearLocation()
Optional. Gives the location where the job ran, such as US
or
europe-west1
string location = 4;
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
clearName()
public Job.Builder clearName()
The fully-qualified name for a job.
e.g. projects/<project_id>/jobs/<job_id>
string name = 1;
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Job.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Job.Builder |
clearState()
public Job.Builder clearState()
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 |
Job.Builder |
This builder for chaining. |
clone()
public Job.Builder clone()
Returns | |
---|---|
Type | Description |
Job.Builder |
getDefaultInstanceForType()
public Job getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Job |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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()
public String 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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Job other)
public Job.Builder mergeFrom(Job other)
Parameter | |
---|---|
Name | Description |
other |
Job |
Returns | |
---|---|
Type | Description |
Job.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Job.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Job.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Job.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Job.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Job.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Job.Builder |
setErrorCode(int value)
public Job.Builder setErrorCode(int value)
Optional. If the job did not complete successfully, this field describes why.
int32 error_code = 3;
Parameter | |
---|---|
Name | Description |
value |
int The errorCode to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Job.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Job.Builder |
setLocation(String value)
public Job.Builder setLocation(String value)
Optional. Gives the location where the job ran, such as US
or
europe-west1
string location = 4;
Parameter | |
---|---|
Name | Description |
value |
String The location to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public Job.Builder setLocationBytes(ByteString value)
Optional. Gives the location where the job ran, such as US
or
europe-west1
string location = 4;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for location to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setName(String value)
public Job.Builder setName(String value)
The fully-qualified name for a job.
e.g. projects/<project_id>/jobs/<job_id>
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Job.Builder setNameBytes(ByteString value)
The fully-qualified name for a job.
e.g. projects/<project_id>/jobs/<job_id>
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Job.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Job.Builder |
setState(JobState value)
public Job.Builder setState(JobState value)
Output only. State of the job, such as RUNNING
or PENDING
.
.google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
JobState The state to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setStateValue(int value)
public Job.Builder setStateValue(int value)
Output only. State of the job, such as RUNNING
or PENDING
.
.google.cloud.securitycenter.v2.JobState state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Job.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Job.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Job.Builder |