Package org.mlflow.api.proto
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 requestProtobuf type
mlflow.CreateWebhook-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends Webhooks.WebhookEvent> values) List of events to subscribe toaddEvents(int index, Webhooks.WebhookEvent value) List of events to subscribe toaddEvents(int index, Webhooks.WebhookEvent.Builder builderForValue) List of events to subscribe toaddEvents(Webhooks.WebhookEvent value) List of events to subscribe toaddEvents(Webhooks.WebhookEvent.Builder builderForValue) List of events to subscribe toList of events to subscribe toaddEventsBuilder(int index) List of events to subscribe toaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Optional description for the webhookList of events to subscribe toclearField(com.google.protobuf.Descriptors.FieldDescriptor field) Name of the webhookclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Secret key for HMAC signature verificationInitial status (defaults to ACTIVE if not specified)clearUrl()URL to send webhook events toclone()Optional description for the webhookcom.google.protobuf.ByteStringOptional description for the webhookstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvents(int index) List of events to subscribe togetEventsBuilder(int index) List of events to subscribe toList of events to subscribe tointList of events to subscribe toList of events to subscribe togetEventsOrBuilder(int index) List of events to subscribe toList<? extends Webhooks.WebhookEventOrBuilder>List of events to subscribe togetName()Name of the webhookcom.google.protobuf.ByteStringName of the webhookSecret key for HMAC signature verificationcom.google.protobuf.ByteStringSecret key for HMAC signature verificationInitial status (defaults to ACTIVE if not specified)getUrl()URL to send webhook events tocom.google.protobuf.ByteStringURL to send webhook events tobooleanOptional description for the webhookbooleanhasName()Name of the webhookbooleanSecret key for HMAC signature verificationbooleanInitial status (defaults to ACTIVE if not specified)booleanhasUrl()URL to send webhook events toprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Webhooks.CreateWebhook other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeEvents(int index) List of events to subscribe tosetDescription(String value) Optional description for the webhooksetDescriptionBytes(com.google.protobuf.ByteString value) Optional description for the webhooksetEvents(int index, Webhooks.WebhookEvent value) List of events to subscribe tosetEvents(int index, Webhooks.WebhookEvent.Builder builderForValue) List of events to subscribe toName of the webhooksetNameBytes(com.google.protobuf.ByteString value) Name of the webhooksetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Secret key for HMAC signature verificationsetSecretBytes(com.google.protobuf.ByteString value) Secret key for HMAC signature verificationsetStatus(Webhooks.WebhookStatus value) Initial status (defaults to ACTIVE if not specified)setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) URL to send webhook events tosetUrlBytes(com.google.protobuf.ByteString value) URL to send webhook events toMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
setField
public Webhooks.CreateWebhook.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
clearField
public Webhooks.CreateWebhook.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
clearOneof
public Webhooks.CreateWebhook.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
addRepeatedField
public Webhooks.CreateWebhook.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Webhooks.CreateWebhook.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasNamein interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the webhook
optional string name = 1 [(.mlflow.validate_required) = true];- Specified by:
getNamein interfaceWebhooks.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:
getNameBytesin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the webhook
optional string name = 1 [(.mlflow.validate_required) = true];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the webhook
optional string name = 1 [(.mlflow.validate_required) = true];- Returns:
- This builder for chaining.
-
setNameBytes
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:
hasDescriptionin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Optional description for the webhook
optional string description = 2;- Specified by:
getDescriptionin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional description for the webhook
optional string description = 2;- Specified by:
getDescriptionBytesin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional description for the webhook
optional string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional description for the webhook
optional string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasUrlin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- Whether the url field is set.
-
getUrl
URL to send webhook events to
optional string url = 3 [(.mlflow.validate_required) = true];- Specified by:
getUrlin interfaceWebhooks.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:
getUrlBytesin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The bytes for url.
-
setUrl
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
URL to send webhook events to
optional string url = 3 [(.mlflow.validate_required) = true];- Returns:
- This builder for chaining.
-
setUrlBytes
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
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];- Specified by:
getEventsListin interfaceWebhooks.CreateWebhookOrBuilder
-
getEventsCount
public int getEventsCount()List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];- Specified by:
getEventsCountin interfaceWebhooks.CreateWebhookOrBuilder
-
getEvents
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];- Specified by:
getEventsin interfaceWebhooks.CreateWebhookOrBuilder
-
setEvents
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
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
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true]; -
removeEvents
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true]; -
getEventsBuilder
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true]; -
getEventsOrBuilder
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];- Specified by:
getEventsOrBuilderin interfaceWebhooks.CreateWebhookOrBuilder
-
getEventsOrBuilderList
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true];- Specified by:
getEventsOrBuilderListin interfaceWebhooks.CreateWebhookOrBuilder
-
addEventsBuilder
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true]; -
addEventsBuilder
List of events to subscribe to
repeated .mlflow.WebhookEvent events = 4 [(.mlflow.validate_required) = true]; -
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:
hasSecretin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- Whether the secret field is set.
-
getSecret
Secret key for HMAC signature verification
optional string secret = 5;- Specified by:
getSecretin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The secret.
-
getSecretBytes
public com.google.protobuf.ByteString getSecretBytes()Secret key for HMAC signature verification
optional string secret = 5;- Specified by:
getSecretBytesin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- The bytes for secret.
-
setSecret
Secret key for HMAC signature verification
optional string secret = 5;- Parameters:
value- The secret to set.- Returns:
- This builder for chaining.
-
clearSecret
Secret key for HMAC signature verification
optional string secret = 5;- Returns:
- This builder for chaining.
-
setSecretBytes
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:
hasStatusin interfaceWebhooks.CreateWebhookOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Initial status (defaults to ACTIVE if not specified)
optional .mlflow.WebhookStatus status = 6;- Specified by:
getStatusin interfaceWebhooks.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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-
mergeUnknownFields
public final Webhooks.CreateWebhook.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Webhooks.CreateWebhook.Builder>
-