Class Webhooks.CreateWebhook.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
org.mlflow.api.proto.Webhooks.CreateWebhook.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Webhooks.CreateWebhookOrBuilder
Enclosing class:
Webhooks.CreateWebhook

public static final class Webhooks.CreateWebhook.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder> implements Webhooks.CreateWebhookOrBuilder
 Create webhook request
 
Protobuf type mlflow.CreateWebhook
  • 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.CreateWebhook.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.CreateWebhook.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.CreateWebhook.Builder>
    • getDefaultInstanceForType

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

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

      public Webhooks.CreateWebhook buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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.CreateWebhook.Builder>
    • setField

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

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

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

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

      public Webhooks.CreateWebhook.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.CreateWebhook.Builder>
    • mergeFrom

      public Webhooks.CreateWebhook.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.CreateWebhook.Builder>
    • mergeFrom

    • isInitialized

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

      public Webhooks.CreateWebhook.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.CreateWebhook.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      Specified by:
      hasName in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      Specified by:
      getName in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      Specified by:
      getNameBytes in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Webhooks.CreateWebhook.Builder setName(String value)
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Webhooks.CreateWebhook.Builder clearName()
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Webhooks.CreateWebhook.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the webhook
       
      optional string name = 1 [(.mlflow.validate_required) = true];
      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 = 2;
      Specified by:
      hasDescription in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

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

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

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

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

      public Webhooks.CreateWebhook.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional description for the webhook
       
      optional string description = 2;
      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 = 3 [(.mlflow.validate_required) = true];
      Specified by:
      hasUrl in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      Whether the url field is set.
    • getUrl

      public String getUrl()
       URL to send webhook events to
       
      optional string url = 3 [(.mlflow.validate_required) = true];
      Specified by:
      getUrl in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       URL to send webhook events to
       
      optional string url = 3 [(.mlflow.validate_required) = true];
      Specified by:
      getUrlBytes in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public Webhooks.CreateWebhook.Builder setUrl(String value)
       URL to send webhook events to
       
      optional string url = 3 [(.mlflow.validate_required) = true];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public Webhooks.CreateWebhook.Builder clearUrl()
       URL to send webhook events to
       
      optional string url = 3 [(.mlflow.validate_required) = true];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public Webhooks.CreateWebhook.Builder setUrlBytes(com.google.protobuf.ByteString value)
       URL to send webhook events to
       
      optional string url = 3 [(.mlflow.validate_required) = true];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getEventsList

      public List<Webhooks.WebhookEvent> getEventsList()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
      Specified by:
      getEventsList in interface Webhooks.CreateWebhookOrBuilder
    • getEventsCount

      public int getEventsCount()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
      Specified by:
      getEventsCount in interface Webhooks.CreateWebhookOrBuilder
    • getEvents

      public Webhooks.WebhookEvent getEvents(int index)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
      Specified by:
      getEvents in interface Webhooks.CreateWebhookOrBuilder
    • setEvents

      public Webhooks.CreateWebhook.Builder setEvents(int index, Webhooks.WebhookEvent value)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • setEvents

      public Webhooks.CreateWebhook.Builder setEvents(int index, Webhooks.WebhookEvent.Builder builderForValue)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addEvents

       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addEvents

      public Webhooks.CreateWebhook.Builder addEvents(int index, Webhooks.WebhookEvent value)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addEvents

       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addEvents

      public Webhooks.CreateWebhook.Builder addEvents(int index, Webhooks.WebhookEvent.Builder builderForValue)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addAllEvents

      public Webhooks.CreateWebhook.Builder addAllEvents(Iterable<? extends Webhooks.WebhookEvent> values)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • clearEvents

      public Webhooks.CreateWebhook.Builder clearEvents()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • removeEvents

      public Webhooks.CreateWebhook.Builder removeEvents(int index)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • getEventsBuilder

      public Webhooks.WebhookEvent.Builder getEventsBuilder(int index)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • getEventsOrBuilder

      public Webhooks.WebhookEventOrBuilder getEventsOrBuilder(int index)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
      Specified by:
      getEventsOrBuilder in interface Webhooks.CreateWebhookOrBuilder
    • getEventsOrBuilderList

      public List<? extends Webhooks.WebhookEventOrBuilder> getEventsOrBuilderList()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
      Specified by:
      getEventsOrBuilderList in interface Webhooks.CreateWebhookOrBuilder
    • addEventsBuilder

      public Webhooks.WebhookEvent.Builder addEventsBuilder()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • addEventsBuilder

      public Webhooks.WebhookEvent.Builder addEventsBuilder(int index)
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • getEventsBuilderList

      public List<Webhooks.WebhookEvent.Builder> getEventsBuilderList()
       List of events to subscribe to
       
      repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];
    • hasSecret

      public boolean hasSecret()
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Specified by:
      hasSecret in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      Whether the secret field is set.
    • getSecret

      public String getSecret()
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Specified by:
      getSecret in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The secret.
    • getSecretBytes

      public com.google.protobuf.ByteString getSecretBytes()
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Specified by:
      getSecretBytes in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The bytes for secret.
    • setSecret

      public Webhooks.CreateWebhook.Builder setSecret(String value)
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Parameters:
      value - The secret to set.
      Returns:
      This builder for chaining.
    • clearSecret

      public Webhooks.CreateWebhook.Builder clearSecret()
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Returns:
      This builder for chaining.
    • setSecretBytes

      public Webhooks.CreateWebhook.Builder setSecretBytes(com.google.protobuf.ByteString value)
       Secret key for HMAC signature verification
       
      optional string secret = 5;
      Parameters:
      value - The bytes for secret to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Initial status (defaults to ACTIVE if not specified)
       
      optional .mlflow.WebhookStatus status = 6;
      Specified by:
      hasStatus in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Webhooks.WebhookStatus getStatus()
       Initial status (defaults to ACTIVE if not specified)
       
      optional .mlflow.WebhookStatus status = 6;
      Specified by:
      getStatus in interface Webhooks.CreateWebhookOrBuilder
      Returns:
      The status.
    • setStatus

       Initial status (defaults to ACTIVE if not specified)
       
      optional .mlflow.WebhookStatus status = 6;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Webhooks.CreateWebhook.Builder clearStatus()
       Initial status (defaults to ACTIVE if not specified)
       
      optional .mlflow.WebhookStatus status = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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