Class Tool.OpenApiTool

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.Tool.OpenApiTool
All Implemented Interfaces:
Tool.OpenApiToolOrBuilder, 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.OpenApiTool extends com.google.protobuf.GeneratedMessage implements Tool.OpenApiToolOrBuilder
 An OpenAPI tool is a way to provide the Tool specifications in the Open API
 schema format.
 
Protobuf type google.cloud.dialogflow.v2.Tool.OpenApiTool
See Also:
  • Field Details

    • TEXT_SCHEMA_FIELD_NUMBER

      public static final int TEXT_SCHEMA_FIELD_NUMBER
      See Also:
    • AUTHENTICATION_FIELD_NUMBER

      public static final int AUTHENTICATION_FIELD_NUMBER
      See Also:
    • TLS_CONFIG_FIELD_NUMBER

      public static final int TLS_CONFIG_FIELD_NUMBER
      See Also:
    • SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER

      public static final int SERVICE_DIRECTORY_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
    • getSchemaCase

      public Tool.OpenApiTool.SchemaCase getSchemaCase()
      Specified by:
      getSchemaCase in interface Tool.OpenApiToolOrBuilder
    • hasTextSchema

      public boolean hasTextSchema()
       Required. The OpenAPI schema specified as a text.
       
      string text_schema = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTextSchema in interface Tool.OpenApiToolOrBuilder
      Returns:
      Whether the textSchema field is set.
    • getTextSchema

      public String getTextSchema()
       Required. The OpenAPI schema specified as a text.
       
      string text_schema = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTextSchema in interface Tool.OpenApiToolOrBuilder
      Returns:
      The textSchema.
    • getTextSchemaBytes

      public com.google.protobuf.ByteString getTextSchemaBytes()
       Required. The OpenAPI schema specified as a text.
       
      string text_schema = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTextSchemaBytes in interface Tool.OpenApiToolOrBuilder
      Returns:
      The bytes for textSchema.
    • hasAuthentication

      public boolean hasAuthentication()
       Optional. Authentication information required by the API.
       
      .google.cloud.dialogflow.v2.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAuthentication in interface Tool.OpenApiToolOrBuilder
      Returns:
      Whether the authentication field is set.
    • getAuthentication

      public Tool.Authentication getAuthentication()
       Optional. Authentication information required by the API.
       
      .google.cloud.dialogflow.v2.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthentication in interface Tool.OpenApiToolOrBuilder
      Returns:
      The authentication.
    • getAuthenticationOrBuilder

      public Tool.AuthenticationOrBuilder getAuthenticationOrBuilder()
       Optional. Authentication information required by the API.
       
      .google.cloud.dialogflow.v2.Tool.Authentication authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthenticationOrBuilder in interface Tool.OpenApiToolOrBuilder
    • hasTlsConfig

      public boolean hasTlsConfig()
       Optional. TLS configuration for the HTTPS verification.
       
      .google.cloud.dialogflow.v2.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTlsConfig in interface Tool.OpenApiToolOrBuilder
      Returns:
      Whether the tlsConfig field is set.
    • getTlsConfig

      public Tool.TLSConfig getTlsConfig()
       Optional. TLS configuration for the HTTPS verification.
       
      .google.cloud.dialogflow.v2.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTlsConfig in interface Tool.OpenApiToolOrBuilder
      Returns:
      The tlsConfig.
    • getTlsConfigOrBuilder

      public Tool.TLSConfigOrBuilder getTlsConfigOrBuilder()
       Optional. TLS configuration for the HTTPS verification.
       
      .google.cloud.dialogflow.v2.Tool.TLSConfig tls_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTlsConfigOrBuilder in interface Tool.OpenApiToolOrBuilder
    • hasServiceDirectoryConfig

      public boolean hasServiceDirectoryConfig()
       Optional. Service Directory configuration.
       
      .google.cloud.dialogflow.v2.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasServiceDirectoryConfig in interface Tool.OpenApiToolOrBuilder
      Returns:
      Whether the serviceDirectoryConfig field is set.
    • getServiceDirectoryConfig

      public Tool.ServiceDirectoryConfig getServiceDirectoryConfig()
       Optional. Service Directory configuration.
       
      .google.cloud.dialogflow.v2.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceDirectoryConfig in interface Tool.OpenApiToolOrBuilder
      Returns:
      The serviceDirectoryConfig.
    • getServiceDirectoryConfigOrBuilder

      public Tool.ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()
       Optional. Service Directory configuration.
       
      .google.cloud.dialogflow.v2.Tool.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceDirectoryConfigOrBuilder in interface Tool.OpenApiToolOrBuilder
    • 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.OpenApiTool parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Tool.OpenApiTool 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.OpenApiTool parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Tool.OpenApiTool getDefaultInstance()
    • parser

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

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