Class GatewayOuterClass.FailJobRequest.Builder

    • Method Detail

      • 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<GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
      • getDefaultInstanceForType

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

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

        public GatewayOuterClass.FailJobRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public GatewayOuterClass.FailJobRequest.Builder setJobKey​(long value)
         the unique job identifier, as obtained when activating the job
         
        int64 jobKey = 1;
        Parameters:
        value - The jobKey to set.
        Returns:
        This builder for chaining.
      • setRetries

        public GatewayOuterClass.FailJobRequest.Builder setRetries​(int value)
         the amount of retries the job should have left
         
        int32 retries = 2;
        Parameters:
        value - The retries to set.
        Returns:
        This builder for chaining.
      • getErrorMessage

        public String getErrorMessage()
         an optional message describing why the job failed
         this is particularly useful if a job runs out of retries and an incident is raised,
         as it this message can help explain why an incident was raised
         
        string errorMessage = 3;
        Specified by:
        getErrorMessage in interface GatewayOuterClass.FailJobRequestOrBuilder
        Returns:
        The errorMessage.
      • getErrorMessageBytes

        public com.google.protobuf.ByteString getErrorMessageBytes()
         an optional message describing why the job failed
         this is particularly useful if a job runs out of retries and an incident is raised,
         as it this message can help explain why an incident was raised
         
        string errorMessage = 3;
        Specified by:
        getErrorMessageBytes in interface GatewayOuterClass.FailJobRequestOrBuilder
        Returns:
        The bytes for errorMessage.
      • setErrorMessage

        public GatewayOuterClass.FailJobRequest.Builder setErrorMessage​(String value)
         an optional message describing why the job failed
         this is particularly useful if a job runs out of retries and an incident is raised,
         as it this message can help explain why an incident was raised
         
        string errorMessage = 3;
        Parameters:
        value - The errorMessage to set.
        Returns:
        This builder for chaining.
      • clearErrorMessage

        public GatewayOuterClass.FailJobRequest.Builder clearErrorMessage()
         an optional message describing why the job failed
         this is particularly useful if a job runs out of retries and an incident is raised,
         as it this message can help explain why an incident was raised
         
        string errorMessage = 3;
        Returns:
        This builder for chaining.
      • setErrorMessageBytes

        public GatewayOuterClass.FailJobRequest.Builder setErrorMessageBytes​(com.google.protobuf.ByteString value)
         an optional message describing why the job failed
         this is particularly useful if a job runs out of retries and an incident is raised,
         as it this message can help explain why an incident was raised
         
        string errorMessage = 3;
        Parameters:
        value - The bytes for errorMessage to set.
        Returns:
        This builder for chaining.