gapic-common - Class Gapic::StreamInput (v0.24.0)

Reference documentation and code samples for the gapic-common class Gapic::StreamInput.

Manages requests for an input stream and holds the stream open until #close is called.

Inherits

  • Object

Methods

#<<

def <<(request) -> StreamInput
Alias Of: #push

Adds a request object to the stream.

Parameter
  • request (Object)
Returns

#append

def append(request) -> StreamInput
Alias Of: #push

Adds a request object to the stream.

Parameter
  • request (Object)
Returns

#close

def close() -> StreamInput

Closes the stream.

Returns

#initialize

def initialize(*requests) -> StreamInput

Create a new input stream object to manage streaming requests and hold the stream open until #close is called.

Parameter
  • requests (Object)
Returns

#push

def push(request) -> StreamInput
Aliases

Adds a request object to the stream.

Parameter
  • request (Object)
Returns