Class JobRunNotificationEvent.Builder

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

    public static final class JobRunNotificationEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobRunNotificationEvent.Builder>
    implements JobRunNotificationEventOrBuilder
     Payload proto for "clouddeploy.googleapis.com/jobrun_notification"
     Platform Log event that describes the failure to send JobRun resource update
     Pub/Sub notification.
     
    Protobuf type google.cloud.deploy.v1.JobRunNotificationEvent
    • 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<JobRunNotificationEvent.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public JobRunNotificationEvent.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<JobRunNotificationEvent.Builder>
        Throws:
        IOException
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         Debug message for when a notification fails to send.
         
        string message = 1;
        Specified by:
        getMessageBytes in interface JobRunNotificationEventOrBuilder
        Returns:
        The bytes for message.
      • setMessage

        public JobRunNotificationEvent.Builder setMessage​(String value)
         Debug message for when a notification fails to send.
         
        string message = 1;
        Parameters:
        value - The message to set.
        Returns:
        This builder for chaining.
      • clearMessage

        public JobRunNotificationEvent.Builder clearMessage()
         Debug message for when a notification fails to send.
         
        string message = 1;
        Returns:
        This builder for chaining.
      • setMessageBytes

        public JobRunNotificationEvent.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         Debug message for when a notification fails to send.
         
        string message = 1;
        Parameters:
        value - The bytes for message to set.
        Returns:
        This builder for chaining.
      • setJobRun

        public JobRunNotificationEvent.Builder setJobRun​(String value)
         The name of the `JobRun`.
         
        string job_run = 2;
        Parameters:
        value - The jobRun to set.
        Returns:
        This builder for chaining.
      • setJobRunBytes

        public JobRunNotificationEvent.Builder setJobRunBytes​(com.google.protobuf.ByteString value)
         The name of the `JobRun`.
         
        string job_run = 2;
        Parameters:
        value - The bytes for jobRun to set.
        Returns:
        This builder for chaining.
      • getPipelineUidBytes

        public com.google.protobuf.ByteString getPipelineUidBytes()
         Unique identifier of the `DeliveryPipeline`.
         
        string pipeline_uid = 3;
        Specified by:
        getPipelineUidBytes in interface JobRunNotificationEventOrBuilder
        Returns:
        The bytes for pipelineUid.
      • setPipelineUid

        public JobRunNotificationEvent.Builder setPipelineUid​(String value)
         Unique identifier of the `DeliveryPipeline`.
         
        string pipeline_uid = 3;
        Parameters:
        value - The pipelineUid to set.
        Returns:
        This builder for chaining.
      • clearPipelineUid

        public JobRunNotificationEvent.Builder clearPipelineUid()
         Unique identifier of the `DeliveryPipeline`.
         
        string pipeline_uid = 3;
        Returns:
        This builder for chaining.
      • setPipelineUidBytes

        public JobRunNotificationEvent.Builder setPipelineUidBytes​(com.google.protobuf.ByteString value)
         Unique identifier of the `DeliveryPipeline`.
         
        string pipeline_uid = 3;
        Parameters:
        value - The bytes for pipelineUid to set.
        Returns:
        This builder for chaining.
      • getReleaseUidBytes

        public com.google.protobuf.ByteString getReleaseUidBytes()
         Unique identifier of the `Release`.
         
        string release_uid = 4;
        Specified by:
        getReleaseUidBytes in interface JobRunNotificationEventOrBuilder
        Returns:
        The bytes for releaseUid.
      • setReleaseUid

        public JobRunNotificationEvent.Builder setReleaseUid​(String value)
         Unique identifier of the `Release`.
         
        string release_uid = 4;
        Parameters:
        value - The releaseUid to set.
        Returns:
        This builder for chaining.
      • clearReleaseUid

        public JobRunNotificationEvent.Builder clearReleaseUid()
         Unique identifier of the `Release`.
         
        string release_uid = 4;
        Returns:
        This builder for chaining.
      • setReleaseUidBytes

        public JobRunNotificationEvent.Builder setReleaseUidBytes​(com.google.protobuf.ByteString value)
         Unique identifier of the `Release`.
         
        string release_uid = 4;
        Parameters:
        value - The bytes for releaseUid to set.
        Returns:
        This builder for chaining.
      • getRolloutUidBytes

        public com.google.protobuf.ByteString getRolloutUidBytes()
         Unique identifier of the `Rollout`.
         
        string rollout_uid = 5;
        Specified by:
        getRolloutUidBytes in interface JobRunNotificationEventOrBuilder
        Returns:
        The bytes for rolloutUid.
      • setRolloutUid

        public JobRunNotificationEvent.Builder setRolloutUid​(String value)
         Unique identifier of the `Rollout`.
         
        string rollout_uid = 5;
        Parameters:
        value - The rolloutUid to set.
        Returns:
        This builder for chaining.
      • clearRolloutUid

        public JobRunNotificationEvent.Builder clearRolloutUid()
         Unique identifier of the `Rollout`.
         
        string rollout_uid = 5;
        Returns:
        This builder for chaining.
      • setRolloutUidBytes

        public JobRunNotificationEvent.Builder setRolloutUidBytes​(com.google.protobuf.ByteString value)
         Unique identifier of the `Rollout`.
         
        string rollout_uid = 5;
        Parameters:
        value - The bytes for rolloutUid to set.
        Returns:
        This builder for chaining.
      • setTargetId

        public JobRunNotificationEvent.Builder setTargetId​(String value)
         ID of the `Target`.
         
        string target_id = 6;
        Parameters:
        value - The targetId to set.
        Returns:
        This builder for chaining.
      • setTargetIdBytes

        public JobRunNotificationEvent.Builder setTargetIdBytes​(com.google.protobuf.ByteString value)
         ID of the `Target`.
         
        string target_id = 6;
        Parameters:
        value - The bytes for targetId to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Type of this notification, e.g. for a Pub/Sub failure.
         
        .google.cloud.deploy.v1.Type type = 7;
        Specified by:
        getTypeValue in interface JobRunNotificationEventOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public JobRunNotificationEvent.Builder setTypeValue​(int value)
         Type of this notification, e.g. for a Pub/Sub failure.
         
        .google.cloud.deploy.v1.Type type = 7;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public Type getType()
         Type of this notification, e.g. for a Pub/Sub failure.
         
        .google.cloud.deploy.v1.Type type = 7;
        Specified by:
        getType in interface JobRunNotificationEventOrBuilder
        Returns:
        The type.
      • setType

        public JobRunNotificationEvent.Builder setType​(Type value)
         Type of this notification, e.g. for a Pub/Sub failure.
         
        .google.cloud.deploy.v1.Type type = 7;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public JobRunNotificationEvent.Builder clearType()
         Type of this notification, e.g. for a Pub/Sub failure.
         
        .google.cloud.deploy.v1.Type type = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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