Class Webhooks.Webhook.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Webhooks.WebhookOrBuilder
    Enclosing class:
    Webhooks.Webhook

    public static final class Webhooks.Webhook.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.Webhook.Builder>
    implements Webhooks.WebhookOrBuilder
     Webhook entity
     
    Protobuf type mlflow.Webhook
    • 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<Webhooks.Webhook.Builder>
      • clear

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

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

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

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

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

        public Webhooks.Webhook.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.Webhook.Builder>
      • clearField

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

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

        public Webhooks.Webhook.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.Webhook.Builder>
      • addRepeatedField

        public Webhooks.Webhook.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.Webhook.Builder>
      • mergeFrom

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

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

        public Webhooks.Webhook.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.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<Webhooks.Webhook.Builder>
        Throws:
        java.io.IOException
      • hasWebhookId

        public boolean hasWebhookId()
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Specified by:
        hasWebhookId in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the webhookId field is set.
      • getWebhookId

        public java.lang.String getWebhookId()
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Specified by:
        getWebhookId in interface Webhooks.WebhookOrBuilder
        Returns:
        The webhookId.
      • getWebhookIdBytes

        public com.google.protobuf.ByteString getWebhookIdBytes()
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Specified by:
        getWebhookIdBytes in interface Webhooks.WebhookOrBuilder
        Returns:
        The bytes for webhookId.
      • setWebhookId

        public Webhooks.Webhook.Builder setWebhookId​(java.lang.String value)
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Parameters:
        value - The webhookId to set.
        Returns:
        This builder for chaining.
      • clearWebhookId

        public Webhooks.Webhook.Builder clearWebhookId()
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Returns:
        This builder for chaining.
      • setWebhookIdBytes

        public Webhooks.Webhook.Builder setWebhookIdBytes​(com.google.protobuf.ByteString value)
         Unique identifier for the webhook
         
        optional string webhook_id = 1;
        Parameters:
        value - The bytes for webhookId to set.
        Returns:
        This builder for chaining.
      • hasName

        public boolean hasName()
         Name of the webhook
         
        optional string name = 2;
        Specified by:
        hasName in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Name of the webhook
         
        optional string name = 2;
        Specified by:
        getName in interface Webhooks.WebhookOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the webhook
         
        optional string name = 2;
        Specified by:
        getNameBytes in interface Webhooks.WebhookOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Webhooks.Webhook.Builder setName​(java.lang.String value)
         Name of the webhook
         
        optional string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Webhooks.Webhook.Builder clearName()
         Name of the webhook
         
        optional string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Webhooks.Webhook.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the webhook
         
        optional string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         Optional description for the webhook
         
        optional string description = 3;
        Specified by:
        hasDescription in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         Optional description for the webhook
         
        optional string description = 3;
        Specified by:
        getDescription in interface Webhooks.WebhookOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional description for the webhook
         
        optional string description = 3;
        Specified by:
        getDescriptionBytes in interface Webhooks.WebhookOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Webhooks.Webhook.Builder setDescription​(java.lang.String value)
         Optional description for the webhook
         
        optional string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Webhooks.Webhook.Builder clearDescription()
         Optional description for the webhook
         
        optional string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Webhooks.Webhook.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional description for the webhook
         
        optional string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasUrl

        public boolean hasUrl()
         URL to send webhook events to
         
        optional string url = 4;
        Specified by:
        hasUrl in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the url field is set.
      • getUrl

        public java.lang.String getUrl()
         URL to send webhook events to
         
        optional string url = 4;
        Specified by:
        getUrl in interface Webhooks.WebhookOrBuilder
        Returns:
        The url.
      • getUrlBytes

        public com.google.protobuf.ByteString getUrlBytes()
         URL to send webhook events to
         
        optional string url = 4;
        Specified by:
        getUrlBytes in interface Webhooks.WebhookOrBuilder
        Returns:
        The bytes for url.
      • setUrl

        public Webhooks.Webhook.Builder setUrl​(java.lang.String value)
         URL to send webhook events to
         
        optional string url = 4;
        Parameters:
        value - The url to set.
        Returns:
        This builder for chaining.
      • clearUrl

        public Webhooks.Webhook.Builder clearUrl()
         URL to send webhook events to
         
        optional string url = 4;
        Returns:
        This builder for chaining.
      • setUrlBytes

        public Webhooks.Webhook.Builder setUrlBytes​(com.google.protobuf.ByteString value)
         URL to send webhook events to
         
        optional string url = 4;
        Parameters:
        value - The bytes for url to set.
        Returns:
        This builder for chaining.
      • getEventsCount

        public int getEventsCount()
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
        Specified by:
        getEventsCount in interface Webhooks.WebhookOrBuilder
      • clearEvents

        public Webhooks.Webhook.Builder clearEvents()
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • removeEvents

        public Webhooks.Webhook.Builder removeEvents​(int index)
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • getEventsBuilder

        public Webhooks.WebhookEvent.Builder getEventsBuilder​(int index)
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • addEventsBuilder

        public Webhooks.WebhookEvent.Builder addEventsBuilder()
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • addEventsBuilder

        public Webhooks.WebhookEvent.Builder addEventsBuilder​(int index)
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • getEventsBuilderList

        public java.util.List<Webhooks.WebhookEvent.Builder> getEventsBuilderList()
         List of events this webhook is subscribed to
         
        repeated .mlflow.WebhookEvent events = 5;
      • hasStatus

        public boolean hasStatus()
         Current status of the webhook
         
        optional .mlflow.WebhookStatus status = 6;
        Specified by:
        hasStatus in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the status field is set.
      • setStatus

        public Webhooks.Webhook.Builder setStatus​(Webhooks.WebhookStatus value)
         Current status of the webhook
         
        optional .mlflow.WebhookStatus status = 6;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Webhooks.Webhook.Builder clearStatus()
         Current status of the webhook
         
        optional .mlflow.WebhookStatus status = 6;
        Returns:
        This builder for chaining.
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         Timestamp when webhook was created
         
        optional int64 creation_timestamp = 7;
        Specified by:
        hasCreationTimestamp in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public long getCreationTimestamp()
         Timestamp when webhook was created
         
        optional int64 creation_timestamp = 7;
        Specified by:
        getCreationTimestamp in interface Webhooks.WebhookOrBuilder
        Returns:
        The creationTimestamp.
      • setCreationTimestamp

        public Webhooks.Webhook.Builder setCreationTimestamp​(long value)
         Timestamp when webhook was created
         
        optional int64 creation_timestamp = 7;
        Parameters:
        value - The creationTimestamp to set.
        Returns:
        This builder for chaining.
      • clearCreationTimestamp

        public Webhooks.Webhook.Builder clearCreationTimestamp()
         Timestamp when webhook was created
         
        optional int64 creation_timestamp = 7;
        Returns:
        This builder for chaining.
      • hasLastUpdatedTimestamp

        public boolean hasLastUpdatedTimestamp()
         Timestamp when webhook was last updated
         
        optional int64 last_updated_timestamp = 8;
        Specified by:
        hasLastUpdatedTimestamp in interface Webhooks.WebhookOrBuilder
        Returns:
        Whether the lastUpdatedTimestamp field is set.
      • getLastUpdatedTimestamp

        public long getLastUpdatedTimestamp()
         Timestamp when webhook was last updated
         
        optional int64 last_updated_timestamp = 8;
        Specified by:
        getLastUpdatedTimestamp in interface Webhooks.WebhookOrBuilder
        Returns:
        The lastUpdatedTimestamp.
      • setLastUpdatedTimestamp

        public Webhooks.Webhook.Builder setLastUpdatedTimestamp​(long value)
         Timestamp when webhook was last updated
         
        optional int64 last_updated_timestamp = 8;
        Parameters:
        value - The lastUpdatedTimestamp to set.
        Returns:
        This builder for chaining.
      • clearLastUpdatedTimestamp

        public Webhooks.Webhook.Builder clearLastUpdatedTimestamp()
         Timestamp when webhook was last updated
         
        optional int64 last_updated_timestamp = 8;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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