Class JobDependency.Builder (0.53.0)

public static final class JobDependency.Builder extends GeneratedMessageV3.Builder<JobDependency.Builder> implements JobDependencyOrBuilder

JobDependency describes the state of other Jobs that the start of this Job depends on. All dependent Jobs must have been submitted in the same region.

Protobuf type google.cloud.batch.v1alpha.JobDependency

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobDependency.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobDependency.Builder
Overrides

build()

public JobDependency build()
Returns
Type Description
JobDependency

buildPartial()

public JobDependency buildPartial()
Returns
Type Description
JobDependency

clear()

public JobDependency.Builder clear()
Returns
Type Description
JobDependency.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobDependency.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobDependency.Builder
Overrides

clearItems()

public JobDependency.Builder clearItems()
Returns
Type Description
JobDependency.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public JobDependency.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobDependency.Builder
Overrides

clone()

public JobDependency.Builder clone()
Returns
Type Description
JobDependency.Builder
Overrides

containsItems(String key)

public boolean containsItems(String key)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public JobDependency getDefaultInstanceForType()
Returns
Type Description
JobDependency

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getItems() (deprecated)

public Map<String,JobDependency.Type> getItems()

Use #getItemsMap() instead.

Returns
Type Description
Map<String,Type>

getItemsCount()

public int getItemsCount()

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Returns
Type Description
int

getItemsMap()

public Map<String,JobDependency.Type> getItemsMap()

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Returns
Type Description
Map<String,Type>

getItemsOrDefault(String key, JobDependency.Type defaultValue)

public JobDependency.Type getItemsOrDefault(String key, JobDependency.Type defaultValue)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameters
Name Description
key String
defaultValue JobDependency.Type
Returns
Type Description
JobDependency.Type

getItemsOrThrow(String key)

public JobDependency.Type getItemsOrThrow(String key)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
key String
Returns
Type Description
JobDependency.Type

getItemsValue() (deprecated)

public Map<String,Integer> getItemsValue()

Use #getItemsValueMap() instead.

Returns
Type Description
Map<String,Integer>

getItemsValueMap()

public Map<String,Integer> getItemsValueMap()

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Returns
Type Description
Map<String,Integer>

getItemsValueOrDefault(String key, int defaultValue)

public int getItemsValueOrDefault(String key, int defaultValue)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getItemsValueOrThrow(String key)

public int getItemsValueOrThrow(String key)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
key String
Returns
Type Description
int

getMutableItems() (deprecated)

public Map<String,JobDependency.Type> getMutableItems()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Type>

getMutableItemsValue() (deprecated)

public Map<String,Integer> getMutableItemsValue()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Integer>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(JobDependency other)

public JobDependency.Builder mergeFrom(JobDependency other)
Parameter
Name Description
other JobDependency
Returns
Type Description
JobDependency.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobDependency.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
JobDependency.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public JobDependency.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
JobDependency.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobDependency.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobDependency.Builder
Overrides

putAllItems(Map<String,JobDependency.Type> values)

public JobDependency.Builder putAllItems(Map<String,JobDependency.Type> values)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
values Map<String,Type>
Returns
Type Description
JobDependency.Builder

putAllItemsValue(Map<String,Integer> values)

public JobDependency.Builder putAllItemsValue(Map<String,Integer> values)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
values Map<String,Integer>
Returns
Type Description
JobDependency.Builder

putItems(String key, JobDependency.Type value)

public JobDependency.Builder putItems(String key, JobDependency.Type value)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameters
Name Description
key String
value JobDependency.Type
Returns
Type Description
JobDependency.Builder

putItemsValue(String key, int value)

public JobDependency.Builder putItemsValue(String key, int value)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameters
Name Description
key String
value int
Returns
Type Description
JobDependency.Builder

removeItems(String key)

public JobDependency.Builder removeItems(String key)

Each item maps a Job name to a Type. All items must be satisfied for the JobDependency to be satisfied (the AND operation). Once a condition for one item becomes true, it won't go back to false even the dependent Job state changes again.

map<string, .google.cloud.batch.v1alpha.JobDependency.Type> items = 1;

Parameter
Name Description
key String
Returns
Type Description
JobDependency.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobDependency.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobDependency.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobDependency.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobDependency.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final JobDependency.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobDependency.Builder
Overrides