Proto file for the Cloud Translation API (v3 GA).

Provides natural language translation operations.

CloneableInstantiable
ExtendsGrpc\BaseStub
Methods
public __construct( $hostname, $opts, $channel = NULL)
 


    public BatchTranslateText(Google\Cloud\Translate\V3\BatchTranslateTextRequest $argument, $metadata = [], $options = [])
     
    Translates a large volume of text in asynchronous batch mode.

    This function provides real-time output as the inputs are being processed.
    If caller cancels a request, the partial results (for an input file, it's
    all or nothing) may still be available on the specified output location.

    This call returns immediately and you can
    use google.longrunning.Operation.name to poll the status of the call.

      public Grpc\BaseStub::close()
       
      Close the communication channel associated with this stub.

      public CreateGlossary(Google\Cloud\Translate\V3\CreateGlossaryRequest $argument, $metadata = [], $options = [])
       
      Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

        public DeleteGlossary(Google\Cloud\Translate\V3\DeleteGlossaryRequest $argument, $metadata = [], $options = [])
         
        Deletes a glossary, or cancels glossary construction if the glossary isn't created yet.

        Returns NOT_FOUND, if the glossary doesn't exist.

          public DetectLanguage(Google\Cloud\Translate\V3\DetectLanguageRequest $argument, $metadata = [], $options = [])
           
          Detects the language of text within a request.

            public Grpc\BaseStub::getConnectivityState( $try_to_connect = false)
             


            • return int The grpc connectivity state
            public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
             
            Creates and returns the default Channel

            • return Channel The channel
            public GetGlossary(Google\Cloud\Translate\V3\GetGlossaryRequest $argument, $metadata = [], $options = [])
             
            Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.

              public GetSupportedLanguages(Google\Cloud\Translate\V3\GetSupportedLanguagesRequest $argument, $metadata = [], $options = [])
               
              Returns a list of supported languages for translation.

                public Grpc\BaseStub::getTarget()
                 


                • return string The URI of the endpoint
                public ListGlossaries(Google\Cloud\Translate\V3\ListGlossariesRequest $argument, $metadata = [], $options = [])
                 
                Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.

                  public TranslateText(Google\Cloud\Translate\V3\TranslateTextRequest $argument, $metadata = [], $options = [])
                   
                  Translates input text and returns translated text.

                    public Grpc\BaseStub::waitForReady( $timeout)
                     


                    • return bool true if channel is ready
                    • throws Exception if channel is in FATAL_ERROR state
                    Methods
                    protected Grpc\BaseStub::_bidiRequest( $method, $deserialize, array $metadata = [], array $options = [])
                     
                    Call a remote method with messages streaming in both directions.

                    • return BidiStreamingCall The active call object
                    protected Grpc\BaseStub::_clientStreamRequest( $method, $deserialize, array $metadata = [], array $options = [])
                     
                    Call a remote method that takes a stream of arguments and has a single output.

                    • return ClientStreamingCall The active call object
                    protected Grpc\BaseStub::_serverStreamRequest( $method, $argument, $deserialize, array $metadata = [], array $options = [])
                     
                    Call a remote method that takes a single argument and returns a stream of responses.

                    • return ServerStreamingCall The active call object
                    protected Grpc\BaseStub::_simpleRequest( $method, $argument, $deserialize, array $metadata = [], array $options = [])
                     
                    Call a remote method that takes a single argument and has a single output.

                    • return UnaryCall The active call object
                    Methods
                    private Grpc\BaseStub::_checkConnectivityState( $new_state)
                     


                    • return bool true if state is CHANNEL_READY
                    • throws Exception if state is CHANNEL_FATAL_FAILURE
                    private Grpc\BaseStub::_get_jwt_aud_uri( $method)
                     
                    constructs the auth uri for the jwt.

                    • return string The URL string
                    private Grpc\BaseStub::_GrpcStreamStream( $channel)
                     
                    Create a function which can be used to create BidiStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_GrpcStreamUnary( $channel)
                     
                    Create a function which can be used to create ServerStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_GrpcUnaryStream( $channel)
                     
                    Create a function which can be used to create ClientStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_GrpcUnaryUnary( $channel)
                     
                    Create a function which can be used to create UnaryCall

                    • return Closure
                    private Grpc\BaseStub::_StreamStreamCallFactory( $channel)
                     
                    Create a function which can be used to create BidiStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_StreamUnaryCallFactory( $channel)
                     
                    Create a function which can be used to create ClientStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_UnaryStreamCallFactory( $channel)
                     
                    Create a function which can be used to create ServerStreamingCall

                    • return Closure
                    private Grpc\BaseStub::_UnaryUnaryCallFactory( $channel)
                     
                    Create a function which can be used to create UnaryCall

                    • return Closure
                    private Grpc\BaseStub::_validate_and_normalize_metadata( $metadata)
                     
                    validate and normalize the metadata array.

                    • return array $metadata Validated and key-normalized metadata map
                    • throws InvalidArgumentException if key contains invalid characters
                    private static Grpc\BaseStub::updateOpts( $opts)
                    Methods
                    public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
                     
                    Creates and returns the default Channel

                    • return Channel The channel
                    private static Grpc\BaseStub::updateOpts( $opts)
                    © 2020 Bruce Wells
                    Search Namespaces \ Classes
                    ConfigurationNumbers (0-9.) only