lib/google/cloud/talent/v4beta1/company_service/client.rb in google-cloud-talent-v4beta1-0.4.4 vs lib/google/cloud/talent/v4beta1/company_service/client.rb in google-cloud-talent-v4beta1-0.4.5

- old
+ new

@@ -196,10 +196,25 @@ # # @return [::Google::Cloud::Talent::V4beta1::Company] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # + # @example Basic example + # require "google/cloud/talent/v4beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Talent::V4beta1::CreateCompanyRequest.new + # + # # Call the create_company method. + # result = client.create_company request + # + # # The returned object is of type Google::Cloud::Talent::V4beta1::Company. + # p result + # def create_company request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateCompanyRequest @@ -273,10 +288,25 @@ # # @return [::Google::Cloud::Talent::V4beta1::Company] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # + # @example Basic example + # require "google/cloud/talent/v4beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Talent::V4beta1::GetCompanyRequest.new + # + # # Call the get_company method. + # result = client.get_company request + # + # # The returned object is of type Google::Cloud::Talent::V4beta1::Company. + # p result + # def get_company request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetCompanyRequest @@ -351,10 +381,25 @@ # # @return [::Google::Cloud::Talent::V4beta1::Company] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # + # @example Basic example + # require "google/cloud/talent/v4beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Talent::V4beta1::UpdateCompanyRequest.new + # + # # Call the update_company method. + # result = client.update_company request + # + # # The returned object is of type Google::Cloud::Talent::V4beta1::Company. + # p result + # def update_company request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateCompanyRequest @@ -429,10 +474,25 @@ # # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # + # @example Basic example + # require "google/cloud/talent/v4beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Talent::V4beta1::DeleteCompanyRequest.new + # + # # Call the delete_company method. + # result = client.delete_company request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # def delete_company request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteCompanyRequest @@ -516,9 +576,30 @@ # @yieldparam operation [::GRPC::ActiveCall::Operation] # # @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Company>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/talent/v4beta1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Talent::V4beta1::CompanyService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Talent::V4beta1::ListCompaniesRequest.new + # + # # Call the list_companies method. + # result = client.list_companies request + # + # # The returned object is of type Gapic::PagedEnumerable. You can + # # iterate over all elements by calling #each, and the enumerable + # # will lazily make API calls to fetch subsequent pages. Other + # # methods are also available for managing paging directly. + # result.each do |response| + # # Each element is of type ::Google::Cloud::Talent::V4beta1::Company. + # p response + # end # def list_companies request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListCompaniesRequest