Class SecurityScheme

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.grpc.SecurityScheme
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, SecuritySchemeOrBuilder

@Generated public final class SecurityScheme extends com.google.protobuf.GeneratedMessage implements SecuritySchemeOrBuilder
 Defines a security scheme that can be used to secure an agent's endpoints.
 This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object.
 See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object
 
Protobuf type lf.a2a.v1.SecurityScheme
See Also:
  • Field Details

    • API_KEY_SECURITY_SCHEME_FIELD_NUMBER

      public static final int API_KEY_SECURITY_SCHEME_FIELD_NUMBER
      See Also:
    • HTTP_AUTH_SECURITY_SCHEME_FIELD_NUMBER

      public static final int HTTP_AUTH_SECURITY_SCHEME_FIELD_NUMBER
      See Also:
    • OAUTH2_SECURITY_SCHEME_FIELD_NUMBER

      public static final int OAUTH2_SECURITY_SCHEME_FIELD_NUMBER
      See Also:
    • OPEN_ID_CONNECT_SECURITY_SCHEME_FIELD_NUMBER

      public static final int OPEN_ID_CONNECT_SECURITY_SCHEME_FIELD_NUMBER
      See Also:
    • MTLS_SECURITY_SCHEME_FIELD_NUMBER

      public static final int MTLS_SECURITY_SCHEME_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSchemeCase

      public SecurityScheme.SchemeCase getSchemeCase()
      Specified by:
      getSchemeCase in interface SecuritySchemeOrBuilder
    • hasApiKeySecurityScheme

      public boolean hasApiKeySecurityScheme()
       API key-based authentication.
       
      .lf.a2a.v1.APIKeySecurityScheme api_key_security_scheme = 1;
      Specified by:
      hasApiKeySecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      Whether the apiKeySecurityScheme field is set.
    • getApiKeySecurityScheme

      public APIKeySecurityScheme getApiKeySecurityScheme()
       API key-based authentication.
       
      .lf.a2a.v1.APIKeySecurityScheme api_key_security_scheme = 1;
      Specified by:
      getApiKeySecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      The apiKeySecurityScheme.
    • getApiKeySecuritySchemeOrBuilder

      public APIKeySecuritySchemeOrBuilder getApiKeySecuritySchemeOrBuilder()
       API key-based authentication.
       
      .lf.a2a.v1.APIKeySecurityScheme api_key_security_scheme = 1;
      Specified by:
      getApiKeySecuritySchemeOrBuilder in interface SecuritySchemeOrBuilder
    • hasHttpAuthSecurityScheme

      public boolean hasHttpAuthSecurityScheme()
       HTTP authentication (Basic, Bearer, etc.).
       
      .lf.a2a.v1.HTTPAuthSecurityScheme http_auth_security_scheme = 2;
      Specified by:
      hasHttpAuthSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      Whether the httpAuthSecurityScheme field is set.
    • getHttpAuthSecurityScheme

      public HTTPAuthSecurityScheme getHttpAuthSecurityScheme()
       HTTP authentication (Basic, Bearer, etc.).
       
      .lf.a2a.v1.HTTPAuthSecurityScheme http_auth_security_scheme = 2;
      Specified by:
      getHttpAuthSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      The httpAuthSecurityScheme.
    • getHttpAuthSecuritySchemeOrBuilder

      public HTTPAuthSecuritySchemeOrBuilder getHttpAuthSecuritySchemeOrBuilder()
       HTTP authentication (Basic, Bearer, etc.).
       
      .lf.a2a.v1.HTTPAuthSecurityScheme http_auth_security_scheme = 2;
      Specified by:
      getHttpAuthSecuritySchemeOrBuilder in interface SecuritySchemeOrBuilder
    • hasOauth2SecurityScheme

      public boolean hasOauth2SecurityScheme()
       OAuth 2.0 authentication.
       
      .lf.a2a.v1.OAuth2SecurityScheme oauth2_security_scheme = 3;
      Specified by:
      hasOauth2SecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      Whether the oauth2SecurityScheme field is set.
    • getOauth2SecurityScheme

      public OAuth2SecurityScheme getOauth2SecurityScheme()
       OAuth 2.0 authentication.
       
      .lf.a2a.v1.OAuth2SecurityScheme oauth2_security_scheme = 3;
      Specified by:
      getOauth2SecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      The oauth2SecurityScheme.
    • getOauth2SecuritySchemeOrBuilder

      public OAuth2SecuritySchemeOrBuilder getOauth2SecuritySchemeOrBuilder()
       OAuth 2.0 authentication.
       
      .lf.a2a.v1.OAuth2SecurityScheme oauth2_security_scheme = 3;
      Specified by:
      getOauth2SecuritySchemeOrBuilder in interface SecuritySchemeOrBuilder
    • hasOpenIdConnectSecurityScheme

      public boolean hasOpenIdConnectSecurityScheme()
       OpenID Connect authentication.
       
      .lf.a2a.v1.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4;
      Specified by:
      hasOpenIdConnectSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      Whether the openIdConnectSecurityScheme field is set.
    • getOpenIdConnectSecurityScheme

      public OpenIdConnectSecurityScheme getOpenIdConnectSecurityScheme()
       OpenID Connect authentication.
       
      .lf.a2a.v1.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4;
      Specified by:
      getOpenIdConnectSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      The openIdConnectSecurityScheme.
    • getOpenIdConnectSecuritySchemeOrBuilder

      public OpenIdConnectSecuritySchemeOrBuilder getOpenIdConnectSecuritySchemeOrBuilder()
       OpenID Connect authentication.
       
      .lf.a2a.v1.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4;
      Specified by:
      getOpenIdConnectSecuritySchemeOrBuilder in interface SecuritySchemeOrBuilder
    • hasMtlsSecurityScheme

      public boolean hasMtlsSecurityScheme()
       Mutual TLS authentication.
       
      .lf.a2a.v1.MutualTlsSecurityScheme mtls_security_scheme = 5;
      Specified by:
      hasMtlsSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      Whether the mtlsSecurityScheme field is set.
    • getMtlsSecurityScheme

      public MutualTlsSecurityScheme getMtlsSecurityScheme()
       Mutual TLS authentication.
       
      .lf.a2a.v1.MutualTlsSecurityScheme mtls_security_scheme = 5;
      Specified by:
      getMtlsSecurityScheme in interface SecuritySchemeOrBuilder
      Returns:
      The mtlsSecurityScheme.
    • getMtlsSecuritySchemeOrBuilder

      public MutualTlsSecuritySchemeOrBuilder getMtlsSecuritySchemeOrBuilder()
       Mutual TLS authentication.
       
      .lf.a2a.v1.MutualTlsSecurityScheme mtls_security_scheme = 5;
      Specified by:
      getMtlsSecuritySchemeOrBuilder in interface SecuritySchemeOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 SecurityScheme parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static SecurityScheme parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static SecurityScheme parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static SecurityScheme.Builder newBuilder()
    • newBuilder

      public static SecurityScheme.Builder newBuilder(SecurityScheme prototype)
    • toBuilder

      public SecurityScheme.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SecurityScheme.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SecurityScheme getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<SecurityScheme> 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.GeneratedMessage
    • getDefaultInstanceForType

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