Package io.dapr.v1

Class DaprProtos.Job.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.Job.Builder>
io.dapr.v1.DaprProtos.Job.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DaprProtos.JobOrBuilder, Cloneable
Enclosing class:
DaprProtos.Job

public static final class DaprProtos.Job.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.Job.Builder> implements DaprProtos.JobOrBuilder
 Job is the definition of a job.
 
Protobuf type dapr.proto.runtime.v1.Job
  • Method Details

    • 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.Builder<DaprProtos.Job.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public DaprProtos.Job.Builder mergeFrom(DaprProtos.Job other)
    • isInitialized

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

      public DaprProtos.Job.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<DaprProtos.Job.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The unique name for the job.
       
      string name = 1;
      Specified by:
      getName in interface DaprProtos.JobOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique name for the job.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DaprProtos.JobOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DaprProtos.Job.Builder setName(String value)
       The unique name for the job.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DaprProtos.Job.Builder clearName()
       The unique name for the job.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DaprProtos.Job.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique name for the job.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSchedule

      public boolean hasSchedule()
       The schedule for the job.
       
      optional string schedule = 2;
      Specified by:
      hasSchedule in interface DaprProtos.JobOrBuilder
      Returns:
      Whether the schedule field is set.
    • getSchedule

      public String getSchedule()
       The schedule for the job.
       
      optional string schedule = 2;
      Specified by:
      getSchedule in interface DaprProtos.JobOrBuilder
      Returns:
      The schedule.
    • getScheduleBytes

      public com.google.protobuf.ByteString getScheduleBytes()
       The schedule for the job.
       
      optional string schedule = 2;
      Specified by:
      getScheduleBytes in interface DaprProtos.JobOrBuilder
      Returns:
      The bytes for schedule.
    • setSchedule

      public DaprProtos.Job.Builder setSchedule(String value)
       The schedule for the job.
       
      optional string schedule = 2;
      Parameters:
      value - The schedule to set.
      Returns:
      This builder for chaining.
    • clearSchedule

      public DaprProtos.Job.Builder clearSchedule()
       The schedule for the job.
       
      optional string schedule = 2;
      Returns:
      This builder for chaining.
    • setScheduleBytes

      public DaprProtos.Job.Builder setScheduleBytes(com.google.protobuf.ByteString value)
       The schedule for the job.
       
      optional string schedule = 2;
      Parameters:
      value - The bytes for schedule to set.
      Returns:
      This builder for chaining.
    • hasRepeats

      public boolean hasRepeats()
       Optional: jobs with fixed repeat counts (accounting for Actor Reminders).
       
      optional uint32 repeats = 3;
      Specified by:
      hasRepeats in interface DaprProtos.JobOrBuilder
      Returns:
      Whether the repeats field is set.
    • getRepeats

      public int getRepeats()
       Optional: jobs with fixed repeat counts (accounting for Actor Reminders).
       
      optional uint32 repeats = 3;
      Specified by:
      getRepeats in interface DaprProtos.JobOrBuilder
      Returns:
      The repeats.
    • setRepeats

      public DaprProtos.Job.Builder setRepeats(int value)
       Optional: jobs with fixed repeat counts (accounting for Actor Reminders).
       
      optional uint32 repeats = 3;
      Parameters:
      value - The repeats to set.
      Returns:
      This builder for chaining.
    • clearRepeats

      public DaprProtos.Job.Builder clearRepeats()
       Optional: jobs with fixed repeat counts (accounting for Actor Reminders).
       
      optional uint32 repeats = 3;
      Returns:
      This builder for chaining.
    • hasDueTime

      public boolean hasDueTime()
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Specified by:
      hasDueTime in interface DaprProtos.JobOrBuilder
      Returns:
      Whether the dueTime field is set.
    • getDueTime

      public String getDueTime()
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Specified by:
      getDueTime in interface DaprProtos.JobOrBuilder
      Returns:
      The dueTime.
    • getDueTimeBytes

      public com.google.protobuf.ByteString getDueTimeBytes()
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Specified by:
      getDueTimeBytes in interface DaprProtos.JobOrBuilder
      Returns:
      The bytes for dueTime.
    • setDueTime

      public DaprProtos.Job.Builder setDueTime(String value)
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Parameters:
      value - The dueTime to set.
      Returns:
      This builder for chaining.
    • clearDueTime

      public DaprProtos.Job.Builder clearDueTime()
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Returns:
      This builder for chaining.
    • setDueTimeBytes

      public DaprProtos.Job.Builder setDueTimeBytes(com.google.protobuf.ByteString value)
       Optional: sets time at which or time interval before the callback is invoked for the first time.
       
      optional string due_time = 4;
      Parameters:
      value - The bytes for dueTime to set.
      Returns:
      This builder for chaining.
    • hasTtl

      public boolean hasTtl()
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Specified by:
      hasTtl in interface DaprProtos.JobOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public String getTtl()
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Specified by:
      getTtl in interface DaprProtos.JobOrBuilder
      Returns:
      The ttl.
    • getTtlBytes

      public com.google.protobuf.ByteString getTtlBytes()
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Specified by:
      getTtlBytes in interface DaprProtos.JobOrBuilder
      Returns:
      The bytes for ttl.
    • setTtl

      public DaprProtos.Job.Builder setTtl(String value)
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Parameters:
      value - The ttl to set.
      Returns:
      This builder for chaining.
    • clearTtl

      public DaprProtos.Job.Builder clearTtl()
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Returns:
      This builder for chaining.
    • setTtlBytes

      public DaprProtos.Job.Builder setTtlBytes(com.google.protobuf.ByteString value)
       Optional: Time To Live to allow for auto deletes (accounting for Actor Reminders).
       
      optional string ttl = 5;
      Parameters:
      value - The bytes for ttl to set.
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
       Job data.
       
      .google.protobuf.Any data = 6;
      Specified by:
      hasData in interface DaprProtos.JobOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public com.google.protobuf.Any getData()
       Job data.
       
      .google.protobuf.Any data = 6;
      Specified by:
      getData in interface DaprProtos.JobOrBuilder
      Returns:
      The data.
    • setData

      public DaprProtos.Job.Builder setData(com.google.protobuf.Any value)
       Job data.
       
      .google.protobuf.Any data = 6;
    • setData

      public DaprProtos.Job.Builder setData(com.google.protobuf.Any.Builder builderForValue)
       Job data.
       
      .google.protobuf.Any data = 6;
    • mergeData

      public DaprProtos.Job.Builder mergeData(com.google.protobuf.Any value)
       Job data.
       
      .google.protobuf.Any data = 6;
    • clearData

      public DaprProtos.Job.Builder clearData()
       Job data.
       
      .google.protobuf.Any data = 6;
    • getDataBuilder

      public com.google.protobuf.Any.Builder getDataBuilder()
       Job data.
       
      .google.protobuf.Any data = 6;
    • getDataOrBuilder

      public com.google.protobuf.AnyOrBuilder getDataOrBuilder()
       Job data.
       
      .google.protobuf.Any data = 6;
      Specified by:
      getDataOrBuilder in interface DaprProtos.JobOrBuilder
    • setUnknownFields

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

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