Class MatchableResourceOuterClass.PluginOverride

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MatchableResourceOuterClass.PluginOverrideOrBuilder, Serializable
    Enclosing class:
    MatchableResourceOuterClass

    public static final class MatchableResourceOuterClass.PluginOverride
    extends com.google.protobuf.GeneratedMessageV3
    implements MatchableResourceOuterClass.PluginOverrideOrBuilder
     This MatchableAttribute configures selecting alternate plugin implementations for a given task type.
     In addition to an override implementation a selection of fallbacks can be provided or other modes
     for handling cases where the desired plugin override is not enabled in a given Flyte deployment.
     
    Protobuf type flyteidl.admin.PluginOverride
    See Also:
    Serialized Form
    • Constructor Detail

      • PluginOverride

        private PluginOverride​(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
      • PluginOverride

        private PluginOverride()
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getPluginIdList

        public com.google.protobuf.ProtocolStringList getPluginIdList()
         A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
         
        repeated string plugin_id = 2;
        Specified by:
        getPluginIdList in interface MatchableResourceOuterClass.PluginOverrideOrBuilder
        Returns:
        A list containing the pluginId.
      • getPluginIdCount

        public int getPluginIdCount()
         A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
         
        repeated string plugin_id = 2;
        Specified by:
        getPluginIdCount in interface MatchableResourceOuterClass.PluginOverrideOrBuilder
        Returns:
        The count of pluginId.
      • getPluginId

        public String getPluginId​(int index)
         A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
         
        repeated string plugin_id = 2;
        Specified by:
        getPluginId in interface MatchableResourceOuterClass.PluginOverrideOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The pluginId at the given index.
      • getPluginIdBytes

        public com.google.protobuf.ByteString getPluginIdBytes​(int index)
         A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
         
        repeated string plugin_id = 2;
        Specified by:
        getPluginIdBytes in interface MatchableResourceOuterClass.PluginOverrideOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the pluginId at the given index.
      • getMissingPluginBehaviorValue

        public int getMissingPluginBehaviorValue()
         Defines the behavior when no plugin from the plugin_id list is not found.
         
        .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4;
        Specified by:
        getMissingPluginBehaviorValue in interface MatchableResourceOuterClass.PluginOverrideOrBuilder
        Returns:
        The enum numeric value on the wire for missingPluginBehavior.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MatchableResourceOuterClass.PluginOverride parseFrom​(ByteBuffer data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchableResourceOuterClass.PluginOverride parseFrom​(com.google.protobuf.ByteString data)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchableResourceOuterClass.PluginOverride parseFrom​(com.google.protobuf.ByteString data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchableResourceOuterClass.PluginOverride parseFrom​(byte[] data)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MatchableResourceOuterClass.PluginOverride parseFrom​(byte[] data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public MatchableResourceOuterClass.PluginOverride.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • getParserForType

        public com.google.protobuf.Parser<MatchableResourceOuterClass.PluginOverride> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MatchableResourceOuterClass.PluginOverride getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder