Class Tool.Authentication

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.Tool.Authentication
All Implemented Interfaces:
Tool.AuthenticationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Tool

public static final class Tool.Authentication extends com.google.protobuf.GeneratedMessage implements Tool.AuthenticationOrBuilder
 Authentication information required for API calls
 
Protobuf type google.cloud.dialogflow.v2.Tool.Authentication
See Also:
  • Field Details

    • API_KEY_CONFIG_FIELD_NUMBER

      public static final int API_KEY_CONFIG_FIELD_NUMBER
      See Also:
    • OAUTH_CONFIG_FIELD_NUMBER

      public static final int OAUTH_CONFIG_FIELD_NUMBER
      See Also:
    • SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER

      public static final int SERVICE_AGENT_AUTH_CONFIG_FIELD_NUMBER
      See Also:
    • BEARER_TOKEN_CONFIG_FIELD_NUMBER

      public static final int BEARER_TOKEN_CONFIG_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
    • getAuthConfigCase

      public Tool.Authentication.AuthConfigCase getAuthConfigCase()
      Specified by:
      getAuthConfigCase in interface Tool.AuthenticationOrBuilder
    • hasApiKeyConfig

      public boolean hasApiKeyConfig()
       Config for API key auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ApiKeyConfig api_key_config = 1;
      Specified by:
      hasApiKeyConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      Whether the apiKeyConfig field is set.
    • getApiKeyConfig

      public Tool.Authentication.ApiKeyConfig getApiKeyConfig()
       Config for API key auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ApiKeyConfig api_key_config = 1;
      Specified by:
      getApiKeyConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      The apiKeyConfig.
    • getApiKeyConfigOrBuilder

      public Tool.Authentication.ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()
       Config for API key auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ApiKeyConfig api_key_config = 1;
      Specified by:
      getApiKeyConfigOrBuilder in interface Tool.AuthenticationOrBuilder
    • hasOauthConfig

      public boolean hasOauthConfig()
       Config for OAuth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.OAuthConfig oauth_config = 2;
      Specified by:
      hasOauthConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      Whether the oauthConfig field is set.
    • getOauthConfig

      public Tool.Authentication.OAuthConfig getOauthConfig()
       Config for OAuth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.OAuthConfig oauth_config = 2;
      Specified by:
      getOauthConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      The oauthConfig.
    • getOauthConfigOrBuilder

      public Tool.Authentication.OAuthConfigOrBuilder getOauthConfigOrBuilder()
       Config for OAuth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.OAuthConfig oauth_config = 2;
      Specified by:
      getOauthConfigOrBuilder in interface Tool.AuthenticationOrBuilder
    • hasServiceAgentAuthConfig

      public boolean hasServiceAgentAuthConfig()
       Config for [Diglogflow service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
       auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3;
      Specified by:
      hasServiceAgentAuthConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      Whether the serviceAgentAuthConfig field is set.
    • getServiceAgentAuthConfig

      public Tool.Authentication.ServiceAgentAuthConfig getServiceAgentAuthConfig()
       Config for [Diglogflow service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
       auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3;
      Specified by:
      getServiceAgentAuthConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      The serviceAgentAuthConfig.
    • getServiceAgentAuthConfigOrBuilder

      public Tool.Authentication.ServiceAgentAuthConfigOrBuilder getServiceAgentAuthConfigOrBuilder()
       Config for [Diglogflow service
       agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent)
       auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig service_agent_auth_config = 3;
      Specified by:
      getServiceAgentAuthConfigOrBuilder in interface Tool.AuthenticationOrBuilder
    • hasBearerTokenConfig

      public boolean hasBearerTokenConfig()
       Config for bearer token auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.BearerTokenConfig bearer_token_config = 4;
      Specified by:
      hasBearerTokenConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      Whether the bearerTokenConfig field is set.
    • getBearerTokenConfig

      public Tool.Authentication.BearerTokenConfig getBearerTokenConfig()
       Config for bearer token auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.BearerTokenConfig bearer_token_config = 4;
      Specified by:
      getBearerTokenConfig in interface Tool.AuthenticationOrBuilder
      Returns:
      The bearerTokenConfig.
    • getBearerTokenConfigOrBuilder

      public Tool.Authentication.BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder()
       Config for bearer token auth.
       
      .google.cloud.dialogflow.v2.Tool.Authentication.BearerTokenConfig bearer_token_config = 4;
      Specified by:
      getBearerTokenConfigOrBuilder in interface Tool.AuthenticationOrBuilder
    • 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 Tool.Authentication parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Tool.Authentication parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Tool.Authentication parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Tool.Authentication.Builder newBuilder()
    • newBuilder

      public static Tool.Authentication.Builder newBuilder(Tool.Authentication prototype)
    • toBuilder

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

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

      public static Tool.Authentication getDefaultInstance()
    • parser

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

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