Class JobDependency.Builder

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

    public static final class JobDependency.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<JobDependency.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<JobDependency.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JobDependency.Builder>
      • clear

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

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

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

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

        public JobDependency.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<JobDependency.Builder>
      • setField

        public JobDependency.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<JobDependency.Builder>
      • clearField

        public JobDependency.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<JobDependency.Builder>
      • clearOneof

        public JobDependency.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<JobDependency.Builder>
      • setRepeatedField

        public JobDependency.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<JobDependency.Builder>
      • addRepeatedField

        public JobDependency.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<JobDependency.Builder>
      • mergeFrom

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

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

        public JobDependency.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<JobDependency.Builder>
        Throws:
        IOException
      • getItemsCount

        public int getItemsCount()
        Description copied from interface: JobDependencyOrBuilder
         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;
        Specified by:
        getItemsCount in interface JobDependencyOrBuilder
      • containsItems

        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;
        Specified by:
        containsItems in interface JobDependencyOrBuilder
      • 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;
        Specified by:
        getItemsMap in interface JobDependencyOrBuilder
      • getItemsOrDefault

        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;
        Specified by:
        getItemsOrDefault in interface JobDependencyOrBuilder
      • getItemsOrThrow

        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;
        Specified by:
        getItemsOrThrow in interface JobDependencyOrBuilder
      • 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;
        Specified by:
        getItemsValueMap in interface JobDependencyOrBuilder
      • getItemsValueOrDefault

        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;
        Specified by:
        getItemsValueOrDefault in interface JobDependencyOrBuilder
      • getItemsValueOrThrow

        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;
        Specified by:
        getItemsValueOrThrow in interface JobDependencyOrBuilder
      • removeItems

        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;
      • putItems

        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;
      • putAllItems

        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;
      • getMutableItemsValue

        @Deprecated
        public Map<String,​Integer> getMutableItemsValue()
        Deprecated.
        Use alternate mutation accessors instead.
      • putItemsValue

        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;
      • putAllItemsValue

        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;
      • setUnknownFields

        public final JobDependency.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<JobDependency.Builder>
      • mergeUnknownFields

        public final JobDependency.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<JobDependency.Builder>