Package flyteidl.admin
Class Common.Notification
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.admin.Common.Notification
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.NotificationOrBuilder,Serializable
- Enclosing class:
- Common
public static final class Common.Notification extends com.google.protobuf.GeneratedMessageV3 implements Common.NotificationOrBuilder
Represents a structure for notifications based on execution status. The notification content is configured within flyte admin but can be templatized. Future iterations could expose configuring notifications with custom content.
Protobuf typeflyteidl.admin.Notification- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommon.Notification.BuilderRepresents a structure for notifications based on execution status.static classCommon.Notification.TypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private static Common.NotificationDEFAULT_INSTANCEstatic intEMAIL_FIELD_NUMBERprivate bytememoizedIsInitializedstatic intPAGER_DUTY_FIELD_NUMBERprivate static com.google.protobuf.Parser<Common.Notification>PARSERprivate List<Integer>phases_private static com.google.protobuf.Internal.ListAdapter.Converter<Integer,Execution.WorkflowExecution.Phase>phases_converter_static intPHASES_FIELD_NUMBERprivate intphasesMemoizedSerializedSizeprivate static longserialVersionUIDstatic intSLACK_FIELD_NUMBERprivate Objecttype_private inttypeCase_
-
Constructor Summary
Constructors Modifier Constructor Description privateNotification()privateNotification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Common.NotificationgetDefaultInstance()Common.NotificationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Common.EmailNotificationgetEmail().flyteidl.admin.EmailNotification email = 2;Common.EmailNotificationOrBuildergetEmailOrBuilder().flyteidl.admin.EmailNotification email = 2;Common.PagerDutyNotificationgetPagerDuty().flyteidl.admin.PagerDutyNotification pager_duty = 3;Common.PagerDutyNotificationOrBuildergetPagerDutyOrBuilder().flyteidl.admin.PagerDutyNotification pager_duty = 3;com.google.protobuf.Parser<Common.Notification>getParserForType()Execution.WorkflowExecution.PhasegetPhases(int index)A list of phases to which users can associate the notifications to.intgetPhasesCount()A list of phases to which users can associate the notifications to.List<Execution.WorkflowExecution.Phase>getPhasesList()A list of phases to which users can associate the notifications to.intgetPhasesValue(int index)A list of phases to which users can associate the notifications to.List<Integer>getPhasesValueList()A list of phases to which users can associate the notifications to.intgetSerializedSize()Common.SlackNotificationgetSlack().flyteidl.admin.SlackNotification slack = 4;Common.SlackNotificationOrBuildergetSlackOrBuilder().flyteidl.admin.SlackNotification slack = 4;Common.Notification.TypeCasegetTypeCase()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasEmail().flyteidl.admin.EmailNotification email = 2;inthashCode()booleanhasPagerDuty().flyteidl.admin.PagerDutyNotification pager_duty = 3;booleanhasSlack().flyteidl.admin.SlackNotification slack = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Common.Notification.BuildernewBuilder()static Common.Notification.BuildernewBuilder(Common.Notification prototype)Common.Notification.BuildernewBuilderForType()protected Common.Notification.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Common.NotificationparseDelimitedFrom(InputStream input)static Common.NotificationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.NotificationparseFrom(byte[] data)static Common.NotificationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.NotificationparseFrom(com.google.protobuf.ByteString data)static Common.NotificationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.NotificationparseFrom(com.google.protobuf.CodedInputStream input)static Common.NotificationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.NotificationparseFrom(InputStream input)static Common.NotificationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Common.NotificationparseFrom(ByteBuffer data)static Common.NotificationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Common.Notification>parser()Common.Notification.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
typeCase_
private int typeCase_
-
type_
private Object type_
-
PHASES_FIELD_NUMBER
public static final int PHASES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
phases_converter_
private static final com.google.protobuf.Internal.ListAdapter.Converter<Integer,Execution.WorkflowExecution.Phase> phases_converter_
-
phasesMemoizedSerializedSize
private int phasesMemoizedSerializedSize
-
EMAIL_FIELD_NUMBER
public static final int EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGER_DUTY_FIELD_NUMBER
public static final int PAGER_DUTY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SLACK_FIELD_NUMBER
public static final int SLACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Common.Notification DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Common.Notification> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getTypeCase
public Common.Notification.TypeCase getTypeCase()
- Specified by:
getTypeCasein interfaceCommon.NotificationOrBuilder
-
getPhasesList
public List<Execution.WorkflowExecution.Phase> getPhasesList()
A list of phases to which users can associate the notifications to. +required
repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;- Specified by:
getPhasesListin interfaceCommon.NotificationOrBuilder- Returns:
- A list containing the phases.
-
getPhasesCount
public int getPhasesCount()
A list of phases to which users can associate the notifications to. +required
repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;- Specified by:
getPhasesCountin interfaceCommon.NotificationOrBuilder- Returns:
- The count of phases.
-
getPhases
public Execution.WorkflowExecution.Phase getPhases(int index)
A list of phases to which users can associate the notifications to. +required
repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;- Specified by:
getPhasesin interfaceCommon.NotificationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The phases at the given index.
-
getPhasesValueList
public List<Integer> getPhasesValueList()
A list of phases to which users can associate the notifications to. +required
repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;- Specified by:
getPhasesValueListin interfaceCommon.NotificationOrBuilder- Returns:
- A list containing the enum numeric values on the wire for phases.
-
getPhasesValue
public int getPhasesValue(int index)
A list of phases to which users can associate the notifications to. +required
repeated .flyteidl.core.WorkflowExecution.Phase phases = 1;- Specified by:
getPhasesValuein interfaceCommon.NotificationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of phases at the given index.
-
hasEmail
public boolean hasEmail()
.flyteidl.admin.EmailNotification email = 2;- Specified by:
hasEmailin interfaceCommon.NotificationOrBuilder- Returns:
- Whether the email field is set.
-
getEmail
public Common.EmailNotification getEmail()
.flyteidl.admin.EmailNotification email = 2;- Specified by:
getEmailin interfaceCommon.NotificationOrBuilder- Returns:
- The email.
-
getEmailOrBuilder
public Common.EmailNotificationOrBuilder getEmailOrBuilder()
.flyteidl.admin.EmailNotification email = 2;- Specified by:
getEmailOrBuilderin interfaceCommon.NotificationOrBuilder
-
hasPagerDuty
public boolean hasPagerDuty()
.flyteidl.admin.PagerDutyNotification pager_duty = 3;- Specified by:
hasPagerDutyin interfaceCommon.NotificationOrBuilder- Returns:
- Whether the pagerDuty field is set.
-
getPagerDuty
public Common.PagerDutyNotification getPagerDuty()
.flyteidl.admin.PagerDutyNotification pager_duty = 3;- Specified by:
getPagerDutyin interfaceCommon.NotificationOrBuilder- Returns:
- The pagerDuty.
-
getPagerDutyOrBuilder
public Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder()
.flyteidl.admin.PagerDutyNotification pager_duty = 3;- Specified by:
getPagerDutyOrBuilderin interfaceCommon.NotificationOrBuilder
-
hasSlack
public boolean hasSlack()
.flyteidl.admin.SlackNotification slack = 4;- Specified by:
hasSlackin interfaceCommon.NotificationOrBuilder- Returns:
- Whether the slack field is set.
-
getSlack
public Common.SlackNotification getSlack()
.flyteidl.admin.SlackNotification slack = 4;- Specified by:
getSlackin interfaceCommon.NotificationOrBuilder- Returns:
- The slack.
-
getSlackOrBuilder
public Common.SlackNotificationOrBuilder getSlackOrBuilder()
.flyteidl.admin.SlackNotification slack = 4;- Specified by:
getSlackOrBuilderin interfaceCommon.NotificationOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Common.Notification parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.Notification parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Common.Notification parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Common.Notification parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Common.Notification parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Common.Notification parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Common.Notification parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Common.Notification.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Common.Notification.Builder newBuilder()
-
newBuilder
public static Common.Notification.Builder newBuilder(Common.Notification prototype)
-
toBuilder
public Common.Notification.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Common.Notification.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Common.Notification getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Common.Notification> parser()
-
getParserForType
public com.google.protobuf.Parser<Common.Notification> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Common.Notification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-