class Google::Apis::ServiceusageV1beta1::MethodProp

Method represents a method of an API interface.

Attributes

name[RW]

The simple name of this method. Corresponds to the JSON property `name` @return [String]

options[RW]

Any metadata attached to the method. Corresponds to the JSON property `options` @return [Array<Google::Apis::ServiceusageV1beta1::Option>]

request_streaming[RW]

If true, the request is streamed. Corresponds to the JSON property `requestStreaming` @return [Boolean]

request_streaming?[RW]

If true, the request is streamed. Corresponds to the JSON property `requestStreaming` @return [Boolean]

request_type_url[RW]

A URL of the input message type. Corresponds to the JSON property `requestTypeUrl` @return [String]

response_streaming[RW]

If true, the response is streamed. Corresponds to the JSON property `responseStreaming` @return [Boolean]

response_streaming?[RW]

If true, the response is streamed. Corresponds to the JSON property `responseStreaming` @return [Boolean]

response_type_url[RW]

The URL of the output message type. Corresponds to the JSON property `responseTypeUrl` @return [String]

syntax[RW]

The source syntax of this method. Corresponds to the JSON property `syntax` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/serviceusage_v1beta1/classes.rb, line 2776
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/serviceusage_v1beta1/classes.rb, line 2781
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @options = args[:options] if args.key?(:options)
  @request_streaming = args[:request_streaming] if args.key?(:request_streaming)
  @request_type_url = args[:request_type_url] if args.key?(:request_type_url)
  @response_streaming = args[:response_streaming] if args.key?(:response_streaming)
  @response_type_url = args[:response_type_url] if args.key?(:response_type_url)
  @syntax = args[:syntax] if args.key?(:syntax)
end