# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::CompanyService::Rest::ServiceStub (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::CompanyService::Rest::ServiceStub.

REST service stub for the CompanyService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_company

    def create_company(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Talent::V4beta1::Company

Baseline implementation for the create_company REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Talent::V4beta1::CreateCompanyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CreateCompanyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_company

    def delete_company(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_company REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-DeleteCompanyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_company

    def get_company(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Talent::V4beta1::Company

Baseline implementation for the get_company REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Talent::V4beta1::GetCompanyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-GetCompanyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_companies

    def list_companies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Talent::V4beta1::ListCompaniesResponse

Baseline implementation for the list_companies REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Talent::V4beta1::ListCompaniesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ListCompaniesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Talent::V4beta1::ListCompaniesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ListCompaniesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Talent::V4beta1::ListCompaniesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ListCompaniesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_company

    def update_company(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Talent::V4beta1::Company

Baseline implementation for the update_company REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-UpdateCompanyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Talent::V4beta1::Company](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Company)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)