class Gapic::Schema::Method
Wrapper for a protobuf method.
@!attribute [r] input
@ return [Message] The input message of this method.
@!attribute [r] output
@ return [Message] The output message of this method.
Attributes
input[R]
output[R]
Public Class Methods
new(descriptor, address, docs, input, output)
click to toggle source
Initializes a method object. @param descriptor [Google::Protobuf::MethodDescriptorProto] the
protobuf representation of this service.
@param address [Enumerable<String>] The address of the proto. See
#address for more info.
@param docs [Google::Protobuf::SourceCodeInfo::Location] The docs
of the proto. See #docs for more info.
@param input [Message] The input message of this method. @param output [Message] The output message of this method.
Calls superclass method
Gapic::Schema::Proto::new
# File lib/gapic/schema/wrappers.rb, line 319 def initialize descriptor, address, docs, input, output super descriptor, address, docs @input = input @output = output end
Public Instance Methods
http()
click to toggle source
@return [Google::Api::HttpRule] The HTTP bindings for this method. See
`google/api/http.proto`.
# File lib/gapic/schema/wrappers.rb, line 353 def http options[:".google.api.http"] if options end
is_deprecated?()
click to toggle source
@return [Boolean] True if this method is marked as deprecated, false otherwise.
# File lib/gapic/schema/wrappers.rb, line 347 def is_deprecated? options[:deprecated] if options end
operation_info()
click to toggle source
@return [Google::Longrunning::OperationInfo] Additional information
regarding long-running operations. In particular, this specifies the types that are returned from long-running operations. Required for methods that return `google.longrunning.Operation`; invalid otherwise.
# File lib/gapic/schema/wrappers.rb, line 341 def operation_info options[:".google.longrunning.operation_info"] if options end
signatures()
click to toggle source
@return [Array<Array<String>>] The parameter lists
defined for this method. See `google/api/client.proto`.
# File lib/gapic/schema/wrappers.rb, line 327 def signatures return [] if options.nil? Array(options[:".google.api.method_signature"]).map do |sig| String(sig).split "," end end