# Phishing Protection V1beta1 API - Class Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Rest::ServiceStub (v0.16.0)

0.16.0 (latest) 0.15.1 0.14.0 0.13.1 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the Phishing Protection V1beta1 API class Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #logger

    def logger(stub: false) -> Logger

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

- (Logger)

### #report_phishing

    def report_phishing(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse

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

- **request_pb** ([::Google::Cloud::PhishingProtection::V1beta1::ReportPhishingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-phishing_protection-v1beta1/latest/Google-Cloud-PhishingProtection-V1beta1-ReportPhishingRequest)) --- 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::PhishingProtection::V1beta1::ReportPhishingResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-phishing_protection-v1beta1/latest/Google-Cloud-PhishingProtection-V1beta1-ReportPhishingResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-phishing_protection-v1beta1/latest/Google-Cloud-PhishingProtection-V1beta1-ReportPhishingResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)