Class Execution.Error.Builder

  • All Implemented Interfaces:
    Execution.ErrorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Execution.Error

    public static final class Execution.Error.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Execution.Error.Builder>
    implements Execution.ErrorOrBuilder
     Error describes why the execution was abnormally terminated.
     
    Protobuf type google.cloud.workflows.executions.v1beta.Execution.Error
    • 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<Execution.Error.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Execution.Error.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<Execution.Error.Builder>
        Throws:
        IOException
      • getPayload

        public String getPayload()
         Error payload returned by the execution, represented as a JSON string.
         
        string payload = 1;
        Specified by:
        getPayload in interface Execution.ErrorOrBuilder
        Returns:
        The payload.
      • getPayloadBytes

        public com.google.protobuf.ByteString getPayloadBytes()
         Error payload returned by the execution, represented as a JSON string.
         
        string payload = 1;
        Specified by:
        getPayloadBytes in interface Execution.ErrorOrBuilder
        Returns:
        The bytes for payload.
      • setPayload

        public Execution.Error.Builder setPayload​(String value)
         Error payload returned by the execution, represented as a JSON string.
         
        string payload = 1;
        Parameters:
        value - The payload to set.
        Returns:
        This builder for chaining.
      • clearPayload

        public Execution.Error.Builder clearPayload()
         Error payload returned by the execution, represented as a JSON string.
         
        string payload = 1;
        Returns:
        This builder for chaining.
      • setPayloadBytes

        public Execution.Error.Builder setPayloadBytes​(com.google.protobuf.ByteString value)
         Error payload returned by the execution, represented as a JSON string.
         
        string payload = 1;
        Parameters:
        value - The bytes for payload to set.
        Returns:
        This builder for chaining.
      • getContext

        public String getContext()
         Human readable error context, helpful for debugging purposes.
         
        string context = 2;
        Specified by:
        getContext in interface Execution.ErrorOrBuilder
        Returns:
        The context.
      • getContextBytes

        public com.google.protobuf.ByteString getContextBytes()
         Human readable error context, helpful for debugging purposes.
         
        string context = 2;
        Specified by:
        getContextBytes in interface Execution.ErrorOrBuilder
        Returns:
        The bytes for context.
      • setContext

        public Execution.Error.Builder setContext​(String value)
         Human readable error context, helpful for debugging purposes.
         
        string context = 2;
        Parameters:
        value - The context to set.
        Returns:
        This builder for chaining.
      • clearContext

        public Execution.Error.Builder clearContext()
         Human readable error context, helpful for debugging purposes.
         
        string context = 2;
        Returns:
        This builder for chaining.
      • setContextBytes

        public Execution.Error.Builder setContextBytes​(com.google.protobuf.ByteString value)
         Human readable error context, helpful for debugging purposes.
         
        string context = 2;
        Parameters:
        value - The bytes for context to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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