Class Service.GatewayGuardrail

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.mlflow.api.proto.Service.GatewayGuardrail
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Service.GatewayGuardrailOrBuilder
Enclosing class:
Service

public static final class Service.GatewayGuardrail extends com.google.protobuf.GeneratedMessageV3 implements Service.GatewayGuardrailOrBuilder
Protobuf type mlflow.GatewayGuardrail
See Also:
  • Field Details

  • Method Details

    • 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
    • hasGuardrailId

      public boolean hasGuardrailId()
      optional string guardrail_id = 1;
      Specified by:
      hasGuardrailId in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the guardrailId field is set.
    • getGuardrailId

      public String getGuardrailId()
      optional string guardrail_id = 1;
      Specified by:
      getGuardrailId in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The guardrailId.
    • getGuardrailIdBytes

      public com.google.protobuf.ByteString getGuardrailIdBytes()
      optional string guardrail_id = 1;
      Specified by:
      getGuardrailIdBytes in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The bytes for guardrailId.
    • hasName

      public boolean hasName()
      optional string name = 2;
      Specified by:
      hasName in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 2;
      Specified by:
      getName in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 2;
      Specified by:
      getNameBytes in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The bytes for name.
    • hasScorer

      public boolean hasScorer()
      optional .mlflow.Scorer scorer = 3;
      Specified by:
      hasScorer in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the scorer field is set.
    • getScorer

      public Service.Scorer getScorer()
      optional .mlflow.Scorer scorer = 3;
      Specified by:
      getScorer in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The scorer.
    • getScorerOrBuilder

      public Service.ScorerOrBuilder getScorerOrBuilder()
      optional .mlflow.Scorer scorer = 3;
      Specified by:
      getScorerOrBuilder in interface Service.GatewayGuardrailOrBuilder
    • hasStage

      public boolean hasStage()
      optional .mlflow.GuardrailStage stage = 4;
      Specified by:
      hasStage in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the stage field is set.
    • getStage

      public Service.GuardrailStage getStage()
      optional .mlflow.GuardrailStage stage = 4;
      Specified by:
      getStage in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The stage.
    • hasAction

      public boolean hasAction()
      optional .mlflow.GuardrailAction action = 5;
      Specified by:
      hasAction in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the action field is set.
    • getAction

      public Service.GuardrailAction getAction()
      optional .mlflow.GuardrailAction action = 5;
      Specified by:
      getAction in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The action.
    • hasActionEndpointId

      public boolean hasActionEndpointId()
       Optional gateway endpoint ID for the LLM used by the action (e.g. sanitization).
       
      optional string action_endpoint_id = 6;
      Specified by:
      hasActionEndpointId in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the actionEndpointId field is set.
    • getActionEndpointId

      public String getActionEndpointId()
       Optional gateway endpoint ID for the LLM used by the action (e.g. sanitization).
       
      optional string action_endpoint_id = 6;
      Specified by:
      getActionEndpointId in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The actionEndpointId.
    • getActionEndpointIdBytes

      public com.google.protobuf.ByteString getActionEndpointIdBytes()
       Optional gateway endpoint ID for the LLM used by the action (e.g. sanitization).
       
      optional string action_endpoint_id = 6;
      Specified by:
      getActionEndpointIdBytes in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The bytes for actionEndpointId.
    • hasCreatedBy

      public boolean hasCreatedBy()
      optional string created_by = 7;
      Specified by:
      hasCreatedBy in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the createdBy field is set.
    • getCreatedBy

      public String getCreatedBy()
      optional string created_by = 7;
      Specified by:
      getCreatedBy in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The createdBy.
    • getCreatedByBytes

      public com.google.protobuf.ByteString getCreatedByBytes()
      optional string created_by = 7;
      Specified by:
      getCreatedByBytes in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The bytes for createdBy.
    • hasCreatedAt

      public boolean hasCreatedAt()
      optional int64 created_at = 8;
      Specified by:
      hasCreatedAt in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the createdAt field is set.
    • getCreatedAt

      public long getCreatedAt()
      optional int64 created_at = 8;
      Specified by:
      getCreatedAt in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The createdAt.
    • hasLastUpdatedBy

      public boolean hasLastUpdatedBy()
      optional string last_updated_by = 9;
      Specified by:
      hasLastUpdatedBy in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the lastUpdatedBy field is set.
    • getLastUpdatedBy

      public String getLastUpdatedBy()
      optional string last_updated_by = 9;
      Specified by:
      getLastUpdatedBy in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The lastUpdatedBy.
    • getLastUpdatedByBytes

      public com.google.protobuf.ByteString getLastUpdatedByBytes()
      optional string last_updated_by = 9;
      Specified by:
      getLastUpdatedByBytes in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The bytes for lastUpdatedBy.
    • hasLastUpdatedAt

      public boolean hasLastUpdatedAt()
      optional int64 last_updated_at = 10;
      Specified by:
      hasLastUpdatedAt in interface Service.GatewayGuardrailOrBuilder
      Returns:
      Whether the lastUpdatedAt field is set.
    • getLastUpdatedAt

      public long getLastUpdatedAt()
      optional int64 last_updated_at = 10;
      Specified by:
      getLastUpdatedAt in interface Service.GatewayGuardrailOrBuilder
      Returns:
      The lastUpdatedAt.
    • 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 Service.GatewayGuardrail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Service.GatewayGuardrail parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Service.GatewayGuardrail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Service.GatewayGuardrail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Service.GatewayGuardrail.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Service.GatewayGuardrail.Builder newBuilder()
    • newBuilder

      public static Service.GatewayGuardrail.Builder newBuilder(Service.GatewayGuardrail prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Service.GatewayGuardrail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Service.GatewayGuardrail getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Service.GatewayGuardrail> parser()
    • getParserForType

      public com.google.protobuf.Parser<Service.GatewayGuardrail> 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 Service.GatewayGuardrail getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder