Class Webhooks.Webhook.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.Webhook.Builder>
org.mlflow.api.proto.Webhooks.Webhook.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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 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<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, 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, 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, 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>
    • mergeFrom

      public Webhooks.Webhook.Builder mergeFrom(Webhooks.Webhook other)
    • 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 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:
      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 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(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 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(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 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(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 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(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.
    • getEventsList

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

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

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

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

      public Webhooks.Webhook.Builder setEvents(int index, Webhooks.WebhookEvent.Builder builderForValue)
       List of events this webhook is subscribed to
       
      repeated .mlflow.WebhookEvent events = 5;
    • addEvents

       List of events this webhook is subscribed to
       
      repeated .mlflow.WebhookEvent events = 5;
    • addEvents

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

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

      public Webhooks.Webhook.Builder addEvents(int index, Webhooks.WebhookEvent.Builder builderForValue)
       List of events this webhook is subscribed to
       
      repeated .mlflow.WebhookEvent events = 5;
    • addAllEvents

      public Webhooks.Webhook.Builder addAllEvents(Iterable<? extends Webhooks.WebhookEvent> values)
       List of events this webhook is subscribed to
       
      repeated .mlflow.WebhookEvent events = 5;
    • 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;
    • getEventsOrBuilder

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

      public List<? extends Webhooks.WebhookEventOrBuilder> getEventsOrBuilderList()
       List of events this webhook is subscribed to
       
      repeated .mlflow.WebhookEvent events = 5;
      Specified by:
      getEventsOrBuilderList in interface Webhooks.WebhookOrBuilder
    • 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 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.
    • getStatus

      public Webhooks.WebhookStatus getStatus()
       Current status of the webhook
       
      optional .mlflow.WebhookStatus status = 6;
      Specified by:
      getStatus in interface Webhooks.WebhookOrBuilder
      Returns:
      The status.
    • setStatus

       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>