NAME

Net::NATS::Streaming::PB - Perl/XS interface to NATS Streaming Google protobuffers

AUTHOR

Generated from Net.NATS.Streaming.PB by the protoxs compiler https://code.google.com/archive/p/protobuf-perlxs/ created by Dave Bailey <dave@daveb.net>. Adapted for the distribution by Sergey Kolychev <sergeykolychev.github@gmail.com>

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::Ack - Perl/XS interface to Net.NATS.Streaming.PB.Ack

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::Ack;

my $Ack = Net::NATS::Streaming::PB::Ack->new;
# Set fields in $Ack...
my $packAck = $Ack->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::Ack;

my $packAck; # Read this from somewhere...
my $Ack = Net::NATS::Streaming::PB::Ack->new;
if ( $Ack->unpack($packAck) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::Ack defines the following classes:

Net::NATS::Streaming::PB::Ack

A wrapper around the Net.NATS.Streaming.PB.Ack message

Net::NATS::Streaming::PB::Ack Constructor

$Ack = Net::NATS::Streaming::PB::Ack->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::Ack. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::Ack Methods

$Ack2->copy_from($Ack1)

Copies the contents of Ack1 into Ack2. Ack2 is another instance of the same message type.

$Ack2->copy_from($hashref)

Copies the contents of hashref into Ack2. hashref is a Data::Dumper-style representation of an instance of the message type.

$Ack2->merge_from($Ack1)

Merges the contents of Ack1 into Ack2. Ack2 is another instance of the same message type.

$Ack2->merge_from($hashref)

Merges the contents of hashref into Ack2. hashref is a Data::Dumper-style representation of an instance of the message type.

$Ack->clear()

Clears the contents of Ack.

$init = $Ack->is_initialized()

Returns 1 if Ack has been initialized with data.

$errstr = $Ack->error_string()

Returns a comma-delimited string of initialization errors.

$Ack->discard_unknown_fields()

Discards unknown fields from Ack.

$dstr = $Ack->debug_string()

Returns a string representation of Ack.

$dstr = $Ack->short_debug_string()

Returns a short string representation of Ack.

$ok = $Ack->unpack($string)

Attempts to parse string into Ack, returning 1 on success and 0 on failure.

$string = $Ack->pack()

Serializes Ack into string.

$length = $Ack->length()

Returns the serialized length of Ack.

@fields = $Ack->fields()

Returns the defined fields of Ack.

$hashref = $Ack->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_subject = $Ack->has_subject()

Returns 1 if the subject element of Ack is set, 0 otherwise.

$Ack->clear_subject()

Clears the subject element(s) of Ack.

$subject = $Ack->subject()

Returns subject from Ack. subject will be a string.

$Ack->set_subject($value)

Sets the value of subject in Ack to value. value must be a string.

$has_sequence = $Ack->has_sequence()

Returns 1 if the sequence element of Ack is set, 0 otherwise.

$Ack->clear_sequence()

Clears the sequence element(s) of Ack.

$sequence = $Ack->sequence()

Returns sequence from Ack. sequence will be a 64-bit unsigned integer.

$Ack->set_sequence($value)

Sets the value of sequence in Ack to value. value must be a 64-bit unsigned integer.

AUTHOR

Generated from Net.NATS.Streaming.PB.Ack by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::CloseRequest - Perl/XS interface to Net.NATS.Streaming.PB.CloseRequest

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::CloseRequest;

my $CloseRequest = Net::NATS::Streaming::PB::CloseRequest->new;
# Set fields in $CloseRequest...
my $packCloseRequest = $CloseRequest->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::CloseRequest;

my $packCloseRequest; # Read this from somewhere...
my $CloseRequest = Net::NATS::Streaming::PB::CloseRequest->new;
if ( $CloseRequest->unpack($packCloseRequest) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::CloseRequest defines the following classes:

Net::NATS::Streaming::PB::CloseRequest

A wrapper around the Net.NATS.Streaming.PB.CloseRequest message

Net::NATS::Streaming::PB::CloseRequest Constructor

$CloseRequest = Net::NATS::Streaming::PB::CloseRequest->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::CloseRequest. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::CloseRequest Methods

$CloseRequest2->copy_from($CloseRequest1)

Copies the contents of CloseRequest1 into CloseRequest2. CloseRequest2 is another instance of the same message type.

$CloseRequest2->copy_from($hashref)

Copies the contents of hashref into CloseRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$CloseRequest2->merge_from($CloseRequest1)

Merges the contents of CloseRequest1 into CloseRequest2. CloseRequest2 is another instance of the same message type.

$CloseRequest2->merge_from($hashref)

Merges the contents of hashref into CloseRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$CloseRequest->clear()

Clears the contents of CloseRequest.

$init = $CloseRequest->is_initialized()

Returns 1 if CloseRequest has been initialized with data.

$errstr = $CloseRequest->error_string()

Returns a comma-delimited string of initialization errors.

$CloseRequest->discard_unknown_fields()

Discards unknown fields from CloseRequest.

$dstr = $CloseRequest->debug_string()

Returns a string representation of CloseRequest.

$dstr = $CloseRequest->short_debug_string()

Returns a short string representation of CloseRequest.

$ok = $CloseRequest->unpack($string)

Attempts to parse string into CloseRequest, returning 1 on success and 0 on failure.

$string = $CloseRequest->pack()

Serializes CloseRequest into string.

$length = $CloseRequest->length()

Returns the serialized length of CloseRequest.

@fields = $CloseRequest->fields()

Returns the defined fields of CloseRequest.

$hashref = $CloseRequest->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_clientID = $CloseRequest->has_clientID()

Returns 1 if the clientID element of CloseRequest is set, 0 otherwise.

$CloseRequest->clear_clientID()

Clears the clientID element(s) of CloseRequest.

$clientID = $CloseRequest->clientID()

Returns clientID from CloseRequest. clientID will be a string.

$CloseRequest->set_clientID($value)

Sets the value of clientID in CloseRequest to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.CloseRequest by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::CloseResponse - Perl/XS interface to Net.NATS.Streaming.PB.CloseResponse

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::CloseResponse;

my $CloseResponse = Net::NATS::Streaming::PB::CloseResponse->new;
# Set fields in $CloseResponse...
my $packCloseResponse = $CloseResponse->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::CloseResponse;

my $packCloseResponse; # Read this from somewhere...
my $CloseResponse = Net::NATS::Streaming::PB::CloseResponse->new;
if ( $CloseResponse->unpack($packCloseResponse) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::CloseResponse defines the following classes:

Net::NATS::Streaming::PB::CloseResponse

A wrapper around the Net.NATS.Streaming.PB.CloseResponse message

Net::NATS::Streaming::PB::CloseResponse Constructor

$CloseResponse = Net::NATS::Streaming::PB::CloseResponse->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::CloseResponse. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::CloseResponse Methods

$CloseResponse2->copy_from($CloseResponse1)

Copies the contents of CloseResponse1 into CloseResponse2. CloseResponse2 is another instance of the same message type.

$CloseResponse2->copy_from($hashref)

Copies the contents of hashref into CloseResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$CloseResponse2->merge_from($CloseResponse1)

Merges the contents of CloseResponse1 into CloseResponse2. CloseResponse2 is another instance of the same message type.

$CloseResponse2->merge_from($hashref)

Merges the contents of hashref into CloseResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$CloseResponse->clear()

Clears the contents of CloseResponse.

$init = $CloseResponse->is_initialized()

Returns 1 if CloseResponse has been initialized with data.

$errstr = $CloseResponse->error_string()

Returns a comma-delimited string of initialization errors.

$CloseResponse->discard_unknown_fields()

Discards unknown fields from CloseResponse.

$dstr = $CloseResponse->debug_string()

Returns a string representation of CloseResponse.

$dstr = $CloseResponse->short_debug_string()

Returns a short string representation of CloseResponse.

$ok = $CloseResponse->unpack($string)

Attempts to parse string into CloseResponse, returning 1 on success and 0 on failure.

$string = $CloseResponse->pack()

Serializes CloseResponse into string.

$length = $CloseResponse->length()

Returns the serialized length of CloseResponse.

@fields = $CloseResponse->fields()

Returns the defined fields of CloseResponse.

$hashref = $CloseResponse->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_error = $CloseResponse->has_error()

Returns 1 if the error element of CloseResponse is set, 0 otherwise.

$CloseResponse->clear_error()

Clears the error element(s) of CloseResponse.

$error = $CloseResponse->error()

Returns error from CloseResponse. error will be a string.

$CloseResponse->set_error($value)

Sets the value of error in CloseResponse to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.CloseResponse by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::ConnectRequest - Perl/XS interface to Net.NATS.Streaming.PB.ConnectRequest

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::ConnectRequest;

my $ConnectRequest = Net::NATS::Streaming::PB::ConnectRequest->new;
# Set fields in $ConnectRequest...
my $packConnectRequest = $ConnectRequest->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::ConnectRequest;

my $packConnectRequest; # Read this from somewhere...
my $ConnectRequest = Net::NATS::Streaming::PB::ConnectRequest->new;
if ( $ConnectRequest->unpack($packConnectRequest) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::ConnectRequest defines the following classes:

Net::NATS::Streaming::PB::ConnectRequest

A wrapper around the Net.NATS.Streaming.PB.ConnectRequest message

Net::NATS::Streaming::PB::ConnectRequest Constructor

$ConnectRequest = Net::NATS::Streaming::PB::ConnectRequest->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::ConnectRequest. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::ConnectRequest Methods

$ConnectRequest2->copy_from($ConnectRequest1)

Copies the contents of ConnectRequest1 into ConnectRequest2. ConnectRequest2 is another instance of the same message type.

$ConnectRequest2->copy_from($hashref)

Copies the contents of hashref into ConnectRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$ConnectRequest2->merge_from($ConnectRequest1)

Merges the contents of ConnectRequest1 into ConnectRequest2. ConnectRequest2 is another instance of the same message type.

$ConnectRequest2->merge_from($hashref)

Merges the contents of hashref into ConnectRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$ConnectRequest->clear()

Clears the contents of ConnectRequest.

$init = $ConnectRequest->is_initialized()

Returns 1 if ConnectRequest has been initialized with data.

$errstr = $ConnectRequest->error_string()

Returns a comma-delimited string of initialization errors.

$ConnectRequest->discard_unknown_fields()

Discards unknown fields from ConnectRequest.

$dstr = $ConnectRequest->debug_string()

Returns a string representation of ConnectRequest.

$dstr = $ConnectRequest->short_debug_string()

Returns a short string representation of ConnectRequest.

$ok = $ConnectRequest->unpack($string)

Attempts to parse string into ConnectRequest, returning 1 on success and 0 on failure.

$string = $ConnectRequest->pack()

Serializes ConnectRequest into string.

$length = $ConnectRequest->length()

Returns the serialized length of ConnectRequest.

@fields = $ConnectRequest->fields()

Returns the defined fields of ConnectRequest.

$hashref = $ConnectRequest->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_clientID = $ConnectRequest->has_clientID()

Returns 1 if the clientID element of ConnectRequest is set, 0 otherwise.

$ConnectRequest->clear_clientID()

Clears the clientID element(s) of ConnectRequest.

$clientID = $ConnectRequest->clientID()

Returns clientID from ConnectRequest. clientID will be a string.

$ConnectRequest->set_clientID($value)

Sets the value of clientID in ConnectRequest to value. value must be a string.

$has_heartbeatInbox = $ConnectRequest->has_heartbeatInbox()

Returns 1 if the heartbeatInbox element of ConnectRequest is set, 0 otherwise.

$ConnectRequest->clear_heartbeatInbox()

Clears the heartbeatInbox element(s) of ConnectRequest.

$heartbeatInbox = $ConnectRequest->heartbeatInbox()

Returns heartbeatInbox from ConnectRequest. heartbeatInbox will be a string.

$ConnectRequest->set_heartbeatInbox($value)

Sets the value of heartbeatInbox in ConnectRequest to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.ConnectRequest by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::ConnectResponse - Perl/XS interface to Net.NATS.Streaming.PB.ConnectResponse

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::ConnectResponse;

my $ConnectResponse = Net::NATS::Streaming::PB::ConnectResponse->new;
# Set fields in $ConnectResponse...
my $packConnectResponse = $ConnectResponse->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::ConnectResponse;

my $packConnectResponse; # Read this from somewhere...
my $ConnectResponse = Net::NATS::Streaming::PB::ConnectResponse->new;
if ( $ConnectResponse->unpack($packConnectResponse) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::ConnectResponse defines the following classes:

Net::NATS::Streaming::PB::ConnectResponse

A wrapper around the Net.NATS.Streaming.PB.ConnectResponse message

Net::NATS::Streaming::PB::ConnectResponse Constructor

$ConnectResponse = Net::NATS::Streaming::PB::ConnectResponse->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::ConnectResponse. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::ConnectResponse Methods

$ConnectResponse2->copy_from($ConnectResponse1)

Copies the contents of ConnectResponse1 into ConnectResponse2. ConnectResponse2 is another instance of the same message type.

$ConnectResponse2->copy_from($hashref)

Copies the contents of hashref into ConnectResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$ConnectResponse2->merge_from($ConnectResponse1)

Merges the contents of ConnectResponse1 into ConnectResponse2. ConnectResponse2 is another instance of the same message type.

$ConnectResponse2->merge_from($hashref)

Merges the contents of hashref into ConnectResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$ConnectResponse->clear()

Clears the contents of ConnectResponse.

$init = $ConnectResponse->is_initialized()

Returns 1 if ConnectResponse has been initialized with data.

$errstr = $ConnectResponse->error_string()

Returns a comma-delimited string of initialization errors.

$ConnectResponse->discard_unknown_fields()

Discards unknown fields from ConnectResponse.

$dstr = $ConnectResponse->debug_string()

Returns a string representation of ConnectResponse.

$dstr = $ConnectResponse->short_debug_string()

Returns a short string representation of ConnectResponse.

$ok = $ConnectResponse->unpack($string)

Attempts to parse string into ConnectResponse, returning 1 on success and 0 on failure.

$string = $ConnectResponse->pack()

Serializes ConnectResponse into string.

$length = $ConnectResponse->length()

Returns the serialized length of ConnectResponse.

@fields = $ConnectResponse->fields()

Returns the defined fields of ConnectResponse.

$hashref = $ConnectResponse->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_pubPrefix = $ConnectResponse->has_pubPrefix()

Returns 1 if the pubPrefix element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_pubPrefix()

Clears the pubPrefix element(s) of ConnectResponse.

$pubPrefix = $ConnectResponse->pubPrefix()

Returns pubPrefix from ConnectResponse. pubPrefix will be a string.

$ConnectResponse->set_pubPrefix($value)

Sets the value of pubPrefix in ConnectResponse to value. value must be a string.

$has_subRequests = $ConnectResponse->has_subRequests()

Returns 1 if the subRequests element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_subRequests()

Clears the subRequests element(s) of ConnectResponse.

$subRequests = $ConnectResponse->subRequests()

Returns subRequests from ConnectResponse. subRequests will be a string.

$ConnectResponse->set_subRequests($value)

Sets the value of subRequests in ConnectResponse to value. value must be a string.

$has_unsubRequests = $ConnectResponse->has_unsubRequests()

Returns 1 if the unsubRequests element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_unsubRequests()

Clears the unsubRequests element(s) of ConnectResponse.

$unsubRequests = $ConnectResponse->unsubRequests()

Returns unsubRequests from ConnectResponse. unsubRequests will be a string.

$ConnectResponse->set_unsubRequests($value)

Sets the value of unsubRequests in ConnectResponse to value. value must be a string.

$has_closeRequests = $ConnectResponse->has_closeRequests()

Returns 1 if the closeRequests element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_closeRequests()

Clears the closeRequests element(s) of ConnectResponse.

$closeRequests = $ConnectResponse->closeRequests()

Returns closeRequests from ConnectResponse. closeRequests will be a string.

$ConnectResponse->set_closeRequests($value)

Sets the value of closeRequests in ConnectResponse to value. value must be a string.

$has_error = $ConnectResponse->has_error()

Returns 1 if the error element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_error()

Clears the error element(s) of ConnectResponse.

$error = $ConnectResponse->error()

Returns error from ConnectResponse. error will be a string.

$ConnectResponse->set_error($value)

Sets the value of error in ConnectResponse to value. value must be a string.

$has_subCloseRequests = $ConnectResponse->has_subCloseRequests()

Returns 1 if the subCloseRequests element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_subCloseRequests()

Clears the subCloseRequests element(s) of ConnectResponse.

$subCloseRequests = $ConnectResponse->subCloseRequests()

Returns subCloseRequests from ConnectResponse. subCloseRequests will be a string.

$ConnectResponse->set_subCloseRequests($value)

Sets the value of subCloseRequests in ConnectResponse to value. value must be a string.

$has_publicKey = $ConnectResponse->has_publicKey()

Returns 1 if the publicKey element of ConnectResponse is set, 0 otherwise.

$ConnectResponse->clear_publicKey()

Clears the publicKey element(s) of ConnectResponse.

$publicKey = $ConnectResponse->publicKey()

Returns publicKey from ConnectResponse. publicKey will be a string.

$ConnectResponse->set_publicKey($value)

Sets the value of publicKey in ConnectResponse to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.ConnectResponse by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::MsgProto - Perl/XS interface to Net.NATS.Streaming.PB.MsgProto

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::MsgProto;

my $MsgProto = Net::NATS::Streaming::PB::MsgProto->new;
# Set fields in $MsgProto...
my $packMsgProto = $MsgProto->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::MsgProto;

my $packMsgProto; # Read this from somewhere...
my $MsgProto = Net::NATS::Streaming::PB::MsgProto->new;
if ( $MsgProto->unpack($packMsgProto) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::MsgProto defines the following classes:

Net::NATS::Streaming::PB::MsgProto

A wrapper around the Net.NATS.Streaming.PB.MsgProto message

Net::NATS::Streaming::PB::MsgProto Constructor

$MsgProto = Net::NATS::Streaming::PB::MsgProto->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::MsgProto. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::MsgProto Methods

$MsgProto2->copy_from($MsgProto1)

Copies the contents of MsgProto1 into MsgProto2. MsgProto2 is another instance of the same message type.

$MsgProto2->copy_from($hashref)

Copies the contents of hashref into MsgProto2. hashref is a Data::Dumper-style representation of an instance of the message type.

$MsgProto2->merge_from($MsgProto1)

Merges the contents of MsgProto1 into MsgProto2. MsgProto2 is another instance of the same message type.

$MsgProto2->merge_from($hashref)

Merges the contents of hashref into MsgProto2. hashref is a Data::Dumper-style representation of an instance of the message type.

$MsgProto->clear()

Clears the contents of MsgProto.

$init = $MsgProto->is_initialized()

Returns 1 if MsgProto has been initialized with data.

$errstr = $MsgProto->error_string()

Returns a comma-delimited string of initialization errors.

$MsgProto->discard_unknown_fields()

Discards unknown fields from MsgProto.

$dstr = $MsgProto->debug_string()

Returns a string representation of MsgProto.

$dstr = $MsgProto->short_debug_string()

Returns a short string representation of MsgProto.

$ok = $MsgProto->unpack($string)

Attempts to parse string into MsgProto, returning 1 on success and 0 on failure.

$string = $MsgProto->pack()

Serializes MsgProto into string.

$length = $MsgProto->length()

Returns the serialized length of MsgProto.

@fields = $MsgProto->fields()

Returns the defined fields of MsgProto.

$hashref = $MsgProto->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_sequence = $MsgProto->has_sequence()

Returns 1 if the sequence element of MsgProto is set, 0 otherwise.

$MsgProto->clear_sequence()

Clears the sequence element(s) of MsgProto.

$sequence = $MsgProto->sequence()

Returns sequence from MsgProto. sequence will be a 64-bit unsigned integer.

$MsgProto->set_sequence($value)

Sets the value of sequence in MsgProto to value. value must be a 64-bit unsigned integer.

$has_subject = $MsgProto->has_subject()

Returns 1 if the subject element of MsgProto is set, 0 otherwise.

$MsgProto->clear_subject()

Clears the subject element(s) of MsgProto.

$subject = $MsgProto->subject()

Returns subject from MsgProto. subject will be a string.

$MsgProto->set_subject($value)

Sets the value of subject in MsgProto to value. value must be a string.

$has_reply = $MsgProto->has_reply()

Returns 1 if the reply element of MsgProto is set, 0 otherwise.

$MsgProto->clear_reply()

Clears the reply element(s) of MsgProto.

$reply = $MsgProto->reply()

Returns reply from MsgProto. reply will be a string.

$MsgProto->set_reply($value)

Sets the value of reply in MsgProto to value. value must be a string.

$has_data = $MsgProto->has_data()

Returns 1 if the data element of MsgProto is set, 0 otherwise.

$MsgProto->clear_data()

Clears the data element(s) of MsgProto.

$data = $MsgProto->data()

Returns data from MsgProto. data will be a string.

$MsgProto->set_data($value)

Sets the value of data in MsgProto to value. value must be a string.

$has_timestamp = $MsgProto->has_timestamp()

Returns 1 if the timestamp element of MsgProto is set, 0 otherwise.

$MsgProto->clear_timestamp()

Clears the timestamp element(s) of MsgProto.

$timestamp = $MsgProto->timestamp()

Returns timestamp from MsgProto. timestamp will be a 64-bit signed integer.

$MsgProto->set_timestamp($value)

Sets the value of timestamp in MsgProto to value. value must be a 64-bit signed integer.

$has_redelivered = $MsgProto->has_redelivered()

Returns 1 if the redelivered element of MsgProto is set, 0 otherwise.

$MsgProto->clear_redelivered()

Clears the redelivered element(s) of MsgProto.

$redelivered = $MsgProto->redelivered()

Returns redelivered from MsgProto. redelivered will be a Boolean value.

$MsgProto->set_redelivered($value)

Sets the value of redelivered in MsgProto to value. value must be a Boolean value.

$has_CRC32 = $MsgProto->has_CRC32()

Returns 1 if the CRC32 element of MsgProto is set, 0 otherwise.

$MsgProto->clear_CRC32()

Clears the CRC32 element(s) of MsgProto.

$CRC32 = $MsgProto->CRC32()

Returns CRC32 from MsgProto. CRC32 will be a 32-bit unsigned integer.

$MsgProto->set_CRC32($value)

Sets the value of CRC32 in MsgProto to value. value must be a 32-bit unsigned integer.

AUTHOR

Generated from Net.NATS.Streaming.PB.MsgProto by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::PubAck - Perl/XS interface to Net.NATS.Streaming.PB.PubAck

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::PubAck;

my $PubAck = Net::NATS::Streaming::PB::PubAck->new;
# Set fields in $PubAck...
my $packPubAck = $PubAck->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::PubAck;

my $packPubAck; # Read this from somewhere...
my $PubAck = Net::NATS::Streaming::PB::PubAck->new;
if ( $PubAck->unpack($packPubAck) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::PubAck defines the following classes:

Net::NATS::Streaming::PB::PubAck

A wrapper around the Net.NATS.Streaming.PB.PubAck message

Net::NATS::Streaming::PB::PubAck Constructor

$PubAck = Net::NATS::Streaming::PB::PubAck->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::PubAck. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::PubAck Methods

$PubAck2->copy_from($PubAck1)

Copies the contents of PubAck1 into PubAck2. PubAck2 is another instance of the same message type.

$PubAck2->copy_from($hashref)

Copies the contents of hashref into PubAck2. hashref is a Data::Dumper-style representation of an instance of the message type.

$PubAck2->merge_from($PubAck1)

Merges the contents of PubAck1 into PubAck2. PubAck2 is another instance of the same message type.

$PubAck2->merge_from($hashref)

Merges the contents of hashref into PubAck2. hashref is a Data::Dumper-style representation of an instance of the message type.

$PubAck->clear()

Clears the contents of PubAck.

$init = $PubAck->is_initialized()

Returns 1 if PubAck has been initialized with data.

$errstr = $PubAck->error_string()

Returns a comma-delimited string of initialization errors.

$PubAck->discard_unknown_fields()

Discards unknown fields from PubAck.

$dstr = $PubAck->debug_string()

Returns a string representation of PubAck.

$dstr = $PubAck->short_debug_string()

Returns a short string representation of PubAck.

$ok = $PubAck->unpack($string)

Attempts to parse string into PubAck, returning 1 on success and 0 on failure.

$string = $PubAck->pack()

Serializes PubAck into string.

$length = $PubAck->length()

Returns the serialized length of PubAck.

@fields = $PubAck->fields()

Returns the defined fields of PubAck.

$hashref = $PubAck->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_guid = $PubAck->has_guid()

Returns 1 if the guid element of PubAck is set, 0 otherwise.

$PubAck->clear_guid()

Clears the guid element(s) of PubAck.

$guid = $PubAck->guid()

Returns guid from PubAck. guid will be a string.

$PubAck->set_guid($value)

Sets the value of guid in PubAck to value. value must be a string.

$has_error = $PubAck->has_error()

Returns 1 if the error element of PubAck is set, 0 otherwise.

$PubAck->clear_error()

Clears the error element(s) of PubAck.

$error = $PubAck->error()

Returns error from PubAck. error will be a string.

$PubAck->set_error($value)

Sets the value of error in PubAck to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.PubAck by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::PubMsg - Perl/XS interface to Net.NATS.Streaming.PB.PubMsg

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::PubMsg;

my $PubMsg = Net::NATS::Streaming::PB::PubMsg->new;
# Set fields in $PubMsg...
my $packPubMsg = $PubMsg->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::PubMsg;

my $packPubMsg; # Read this from somewhere...
my $PubMsg = Net::NATS::Streaming::PB::PubMsg->new;
if ( $PubMsg->unpack($packPubMsg) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::PubMsg defines the following classes:

Net::NATS::Streaming::PB::PubMsg

A wrapper around the Net.NATS.Streaming.PB.PubMsg message

Net::NATS::Streaming::PB::PubMsg Constructor

$PubMsg = Net::NATS::Streaming::PB::PubMsg->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::PubMsg. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::PubMsg Methods

$PubMsg2->copy_from($PubMsg1)

Copies the contents of PubMsg1 into PubMsg2. PubMsg2 is another instance of the same message type.

$PubMsg2->copy_from($hashref)

Copies the contents of hashref into PubMsg2. hashref is a Data::Dumper-style representation of an instance of the message type.

$PubMsg2->merge_from($PubMsg1)

Merges the contents of PubMsg1 into PubMsg2. PubMsg2 is another instance of the same message type.

$PubMsg2->merge_from($hashref)

Merges the contents of hashref into PubMsg2. hashref is a Data::Dumper-style representation of an instance of the message type.

$PubMsg->clear()

Clears the contents of PubMsg.

$init = $PubMsg->is_initialized()

Returns 1 if PubMsg has been initialized with data.

$errstr = $PubMsg->error_string()

Returns a comma-delimited string of initialization errors.

$PubMsg->discard_unknown_fields()

Discards unknown fields from PubMsg.

$dstr = $PubMsg->debug_string()

Returns a string representation of PubMsg.

$dstr = $PubMsg->short_debug_string()

Returns a short string representation of PubMsg.

$ok = $PubMsg->unpack($string)

Attempts to parse string into PubMsg, returning 1 on success and 0 on failure.

$string = $PubMsg->pack()

Serializes PubMsg into string.

$length = $PubMsg->length()

Returns the serialized length of PubMsg.

@fields = $PubMsg->fields()

Returns the defined fields of PubMsg.

$hashref = $PubMsg->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_clientID = $PubMsg->has_clientID()

Returns 1 if the clientID element of PubMsg is set, 0 otherwise.

$PubMsg->clear_clientID()

Clears the clientID element(s) of PubMsg.

$clientID = $PubMsg->clientID()

Returns clientID from PubMsg. clientID will be a string.

$PubMsg->set_clientID($value)

Sets the value of clientID in PubMsg to value. value must be a string.

$has_guid = $PubMsg->has_guid()

Returns 1 if the guid element of PubMsg is set, 0 otherwise.

$PubMsg->clear_guid()

Clears the guid element(s) of PubMsg.

$guid = $PubMsg->guid()

Returns guid from PubMsg. guid will be a string.

$PubMsg->set_guid($value)

Sets the value of guid in PubMsg to value. value must be a string.

$has_subject = $PubMsg->has_subject()

Returns 1 if the subject element of PubMsg is set, 0 otherwise.

$PubMsg->clear_subject()

Clears the subject element(s) of PubMsg.

$subject = $PubMsg->subject()

Returns subject from PubMsg. subject will be a string.

$PubMsg->set_subject($value)

Sets the value of subject in PubMsg to value. value must be a string.

$has_reply = $PubMsg->has_reply()

Returns 1 if the reply element of PubMsg is set, 0 otherwise.

$PubMsg->clear_reply()

Clears the reply element(s) of PubMsg.

$reply = $PubMsg->reply()

Returns reply from PubMsg. reply will be a string.

$PubMsg->set_reply($value)

Sets the value of reply in PubMsg to value. value must be a string.

$has_data = $PubMsg->has_data()

Returns 1 if the data element of PubMsg is set, 0 otherwise.

$PubMsg->clear_data()

Clears the data element(s) of PubMsg.

$data = $PubMsg->data()

Returns data from PubMsg. data will be a string.

$PubMsg->set_data($value)

Sets the value of data in PubMsg to value. value must be a string.

$has_sha256 = $PubMsg->has_sha256()

Returns 1 if the sha256 element of PubMsg is set, 0 otherwise.

$PubMsg->clear_sha256()

Clears the sha256 element(s) of PubMsg.

$sha256 = $PubMsg->sha256()

Returns sha256 from PubMsg. sha256 will be a string.

$PubMsg->set_sha256($value)

Sets the value of sha256 in PubMsg to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.PubMsg by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::SubscriptionRequest - Perl/XS interface to Net.NATS.Streaming.PB.SubscriptionRequest

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::SubscriptionRequest;

my $SubscriptionRequest = Net::NATS::Streaming::PB::SubscriptionRequest->new;
# Set fields in $SubscriptionRequest...
my $packSubscriptionRequest = $SubscriptionRequest->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::SubscriptionRequest;

my $packSubscriptionRequest; # Read this from somewhere...
my $SubscriptionRequest = Net::NATS::Streaming::PB::SubscriptionRequest->new;
if ( $SubscriptionRequest->unpack($packSubscriptionRequest) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::SubscriptionRequest defines the following classes:

Net::NATS::Streaming::PB::SubscriptionRequest

A wrapper around the Net.NATS.Streaming.PB.SubscriptionRequest message

Net::NATS::Streaming::PB::SubscriptionRequest Constructor

$SubscriptionRequest = Net::NATS::Streaming::PB::SubscriptionRequest->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::SubscriptionRequest. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::SubscriptionRequest Methods

$SubscriptionRequest2->copy_from($SubscriptionRequest1)

Copies the contents of SubscriptionRequest1 into SubscriptionRequest2. SubscriptionRequest2 is another instance of the same message type.

$SubscriptionRequest2->copy_from($hashref)

Copies the contents of hashref into SubscriptionRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$SubscriptionRequest2->merge_from($SubscriptionRequest1)

Merges the contents of SubscriptionRequest1 into SubscriptionRequest2. SubscriptionRequest2 is another instance of the same message type.

$SubscriptionRequest2->merge_from($hashref)

Merges the contents of hashref into SubscriptionRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$SubscriptionRequest->clear()

Clears the contents of SubscriptionRequest.

$init = $SubscriptionRequest->is_initialized()

Returns 1 if SubscriptionRequest has been initialized with data.

$errstr = $SubscriptionRequest->error_string()

Returns a comma-delimited string of initialization errors.

$SubscriptionRequest->discard_unknown_fields()

Discards unknown fields from SubscriptionRequest.

$dstr = $SubscriptionRequest->debug_string()

Returns a string representation of SubscriptionRequest.

$dstr = $SubscriptionRequest->short_debug_string()

Returns a short string representation of SubscriptionRequest.

$ok = $SubscriptionRequest->unpack($string)

Attempts to parse string into SubscriptionRequest, returning 1 on success and 0 on failure.

$string = $SubscriptionRequest->pack()

Serializes SubscriptionRequest into string.

$length = $SubscriptionRequest->length()

Returns the serialized length of SubscriptionRequest.

@fields = $SubscriptionRequest->fields()

Returns the defined fields of SubscriptionRequest.

$hashref = $SubscriptionRequest->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_clientID = $SubscriptionRequest->has_clientID()

Returns 1 if the clientID element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_clientID()

Clears the clientID element(s) of SubscriptionRequest.

$clientID = $SubscriptionRequest->clientID()

Returns clientID from SubscriptionRequest. clientID will be a string.

$SubscriptionRequest->set_clientID($value)

Sets the value of clientID in SubscriptionRequest to value. value must be a string.

$has_subject = $SubscriptionRequest->has_subject()

Returns 1 if the subject element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_subject()

Clears the subject element(s) of SubscriptionRequest.

$subject = $SubscriptionRequest->subject()

Returns subject from SubscriptionRequest. subject will be a string.

$SubscriptionRequest->set_subject($value)

Sets the value of subject in SubscriptionRequest to value. value must be a string.

$has_qGroup = $SubscriptionRequest->has_qGroup()

Returns 1 if the qGroup element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_qGroup()

Clears the qGroup element(s) of SubscriptionRequest.

$qGroup = $SubscriptionRequest->qGroup()

Returns qGroup from SubscriptionRequest. qGroup will be a string.

$SubscriptionRequest->set_qGroup($value)

Sets the value of qGroup in SubscriptionRequest to value. value must be a string.

$has_inbox = $SubscriptionRequest->has_inbox()

Returns 1 if the inbox element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_inbox()

Clears the inbox element(s) of SubscriptionRequest.

$inbox = $SubscriptionRequest->inbox()

Returns inbox from SubscriptionRequest. inbox will be a string.

$SubscriptionRequest->set_inbox($value)

Sets the value of inbox in SubscriptionRequest to value. value must be a string.

$has_maxInFlight = $SubscriptionRequest->has_maxInFlight()

Returns 1 if the maxInFlight element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_maxInFlight()

Clears the maxInFlight element(s) of SubscriptionRequest.

$maxInFlight = $SubscriptionRequest->maxInFlight()

Returns maxInFlight from SubscriptionRequest. maxInFlight will be a 32-bit signed integer.

$SubscriptionRequest->set_maxInFlight($value)

Sets the value of maxInFlight in SubscriptionRequest to value. value must be a 32-bit signed integer.

$has_ackWaitInSecs = $SubscriptionRequest->has_ackWaitInSecs()

Returns 1 if the ackWaitInSecs element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_ackWaitInSecs()

Clears the ackWaitInSecs element(s) of SubscriptionRequest.

$ackWaitInSecs = $SubscriptionRequest->ackWaitInSecs()

Returns ackWaitInSecs from SubscriptionRequest. ackWaitInSecs will be a 32-bit signed integer.

$SubscriptionRequest->set_ackWaitInSecs($value)

Sets the value of ackWaitInSecs in SubscriptionRequest to value. value must be a 32-bit signed integer.

$has_durableName = $SubscriptionRequest->has_durableName()

Returns 1 if the durableName element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_durableName()

Clears the durableName element(s) of SubscriptionRequest.

$durableName = $SubscriptionRequest->durableName()

Returns durableName from SubscriptionRequest. durableName will be a string.

$SubscriptionRequest->set_durableName($value)

Sets the value of durableName in SubscriptionRequest to value. value must be a string.

$has_startPosition = $SubscriptionRequest->has_startPosition()

Returns 1 if the startPosition element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_startPosition()

Clears the startPosition element(s) of SubscriptionRequest.

$startPosition = $SubscriptionRequest->startPosition()

Returns startPosition from SubscriptionRequest. startPosition will be a value of Net::NATS::Streaming::PB::StartPosition.

$SubscriptionRequest->set_startPosition($value)

Sets the value of startPosition in SubscriptionRequest to value. value must be a value of Net::NATS::Streaming::PB::StartPosition.

$has_startSequence = $SubscriptionRequest->has_startSequence()

Returns 1 if the startSequence element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_startSequence()

Clears the startSequence element(s) of SubscriptionRequest.

$startSequence = $SubscriptionRequest->startSequence()

Returns startSequence from SubscriptionRequest. startSequence will be a 64-bit unsigned integer.

$SubscriptionRequest->set_startSequence($value)

Sets the value of startSequence in SubscriptionRequest to value. value must be a 64-bit unsigned integer.

$has_startTimeDelta = $SubscriptionRequest->has_startTimeDelta()

Returns 1 if the startTimeDelta element of SubscriptionRequest is set, 0 otherwise.

$SubscriptionRequest->clear_startTimeDelta()

Clears the startTimeDelta element(s) of SubscriptionRequest.

$startTimeDelta = $SubscriptionRequest->startTimeDelta()

Returns startTimeDelta from SubscriptionRequest. startTimeDelta will be a 64-bit signed integer.

$SubscriptionRequest->set_startTimeDelta($value)

Sets the value of startTimeDelta in SubscriptionRequest to value. value must be a 64-bit signed integer.

AUTHOR

Generated from Net.NATS.Streaming.PB.SubscriptionRequest by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::SubscriptionResponse - Perl/XS interface to Net.NATS.Streaming.PB.SubscriptionResponse

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::SubscriptionResponse;

my $SubscriptionResponse = Net::NATS::Streaming::PB::SubscriptionResponse->new;
# Set fields in $SubscriptionResponse...
my $packSubscriptionResponse = $SubscriptionResponse->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::SubscriptionResponse;

my $packSubscriptionResponse; # Read this from somewhere...
my $SubscriptionResponse = Net::NATS::Streaming::PB::SubscriptionResponse->new;
if ( $SubscriptionResponse->unpack($packSubscriptionResponse) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::SubscriptionResponse defines the following classes:

Net::NATS::Streaming::PB::SubscriptionResponse

A wrapper around the Net.NATS.Streaming.PB.SubscriptionResponse message

Net::NATS::Streaming::PB::SubscriptionResponse Constructor

$SubscriptionResponse = Net::NATS::Streaming::PB::SubscriptionResponse->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::SubscriptionResponse. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::SubscriptionResponse Methods

$SubscriptionResponse2->copy_from($SubscriptionResponse1)

Copies the contents of SubscriptionResponse1 into SubscriptionResponse2. SubscriptionResponse2 is another instance of the same message type.

$SubscriptionResponse2->copy_from($hashref)

Copies the contents of hashref into SubscriptionResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$SubscriptionResponse2->merge_from($SubscriptionResponse1)

Merges the contents of SubscriptionResponse1 into SubscriptionResponse2. SubscriptionResponse2 is another instance of the same message type.

$SubscriptionResponse2->merge_from($hashref)

Merges the contents of hashref into SubscriptionResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.

$SubscriptionResponse->clear()

Clears the contents of SubscriptionResponse.

$init = $SubscriptionResponse->is_initialized()

Returns 1 if SubscriptionResponse has been initialized with data.

$errstr = $SubscriptionResponse->error_string()

Returns a comma-delimited string of initialization errors.

$SubscriptionResponse->discard_unknown_fields()

Discards unknown fields from SubscriptionResponse.

$dstr = $SubscriptionResponse->debug_string()

Returns a string representation of SubscriptionResponse.

$dstr = $SubscriptionResponse->short_debug_string()

Returns a short string representation of SubscriptionResponse.

$ok = $SubscriptionResponse->unpack($string)

Attempts to parse string into SubscriptionResponse, returning 1 on success and 0 on failure.

$string = $SubscriptionResponse->pack()

Serializes SubscriptionResponse into string.

$length = $SubscriptionResponse->length()

Returns the serialized length of SubscriptionResponse.

@fields = $SubscriptionResponse->fields()

Returns the defined fields of SubscriptionResponse.

$hashref = $SubscriptionResponse->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_ackInbox = $SubscriptionResponse->has_ackInbox()

Returns 1 if the ackInbox element of SubscriptionResponse is set, 0 otherwise.

$SubscriptionResponse->clear_ackInbox()

Clears the ackInbox element(s) of SubscriptionResponse.

$ackInbox = $SubscriptionResponse->ackInbox()

Returns ackInbox from SubscriptionResponse. ackInbox will be a string.

$SubscriptionResponse->set_ackInbox($value)

Sets the value of ackInbox in SubscriptionResponse to value. value must be a string.

$has_error = $SubscriptionResponse->has_error()

Returns 1 if the error element of SubscriptionResponse is set, 0 otherwise.

$SubscriptionResponse->clear_error()

Clears the error element(s) of SubscriptionResponse.

$error = $SubscriptionResponse->error()

Returns error from SubscriptionResponse. error will be a string.

$SubscriptionResponse->set_error($value)

Sets the value of error in SubscriptionResponse to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.SubscriptionResponse by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf

NAME

Net::NATS::Streaming::PB::UnsubscribeRequest - Perl/XS interface to Net.NATS.Streaming.PB.UnsubscribeRequest

SYNOPSIS

Serializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::UnsubscribeRequest;

my $UnsubscribeRequest = Net::NATS::Streaming::PB::UnsubscribeRequest->new;
# Set fields in $UnsubscribeRequest...
my $packUnsubscribeRequest = $UnsubscribeRequest->pack();

Unserializing messages

#!/usr/bin/perl

use strict;
use warnings;
use Net::NATS::Streaming::PB::UnsubscribeRequest;

my $packUnsubscribeRequest; # Read this from somewhere...
my $UnsubscribeRequest = Net::NATS::Streaming::PB::UnsubscribeRequest->new;
if ( $UnsubscribeRequest->unpack($packUnsubscribeRequest) ) {
  print "OK"
} else {
  print "NOT OK"
}

DESCRIPTION

Net::NATS::Streaming::PB::UnsubscribeRequest defines the following classes:

Net::NATS::Streaming::PB::UnsubscribeRequest

A wrapper around the Net.NATS.Streaming.PB.UnsubscribeRequest message

Net::NATS::Streaming::PB::UnsubscribeRequest Constructor

$UnsubscribeRequest = Net::NATS::Streaming::PB::UnsubscribeRequest->new( [$arg] )

Constructs an instance of Net::NATS::Streaming::PB::UnsubscribeRequest. If a hashref argument is supplied, it is copied into the message instance as if the copy_from() method were called immediately after construction. Otherwise, if a scalar argument is supplied, it is interpreted as a serialized instance of the message type, and the scalar is parsed to populate the message fields. Otherwise, if no argument is supplied, an empty message instance is constructed.

Net::NATS::Streaming::PB::UnsubscribeRequest Methods

$UnsubscribeRequest2->copy_from($UnsubscribeRequest1)

Copies the contents of UnsubscribeRequest1 into UnsubscribeRequest2. UnsubscribeRequest2 is another instance of the same message type.

$UnsubscribeRequest2->copy_from($hashref)

Copies the contents of hashref into UnsubscribeRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$UnsubscribeRequest2->merge_from($UnsubscribeRequest1)

Merges the contents of UnsubscribeRequest1 into UnsubscribeRequest2. UnsubscribeRequest2 is another instance of the same message type.

$UnsubscribeRequest2->merge_from($hashref)

Merges the contents of hashref into UnsubscribeRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.

$UnsubscribeRequest->clear()

Clears the contents of UnsubscribeRequest.

$init = $UnsubscribeRequest->is_initialized()

Returns 1 if UnsubscribeRequest has been initialized with data.

$errstr = $UnsubscribeRequest->error_string()

Returns a comma-delimited string of initialization errors.

$UnsubscribeRequest->discard_unknown_fields()

Discards unknown fields from UnsubscribeRequest.

$dstr = $UnsubscribeRequest->debug_string()

Returns a string representation of UnsubscribeRequest.

$dstr = $UnsubscribeRequest->short_debug_string()

Returns a short string representation of UnsubscribeRequest.

$ok = $UnsubscribeRequest->unpack($string)

Attempts to parse string into UnsubscribeRequest, returning 1 on success and 0 on failure.

$string = $UnsubscribeRequest->pack()

Serializes UnsubscribeRequest into string.

$length = $UnsubscribeRequest->length()

Returns the serialized length of UnsubscribeRequest.

@fields = $UnsubscribeRequest->fields()

Returns the defined fields of UnsubscribeRequest.

$hashref = $UnsubscribeRequest->to_hashref()

Exports the message to a hashref suitable for use in the copy_from or merge_from methods.

$has_clientID = $UnsubscribeRequest->has_clientID()

Returns 1 if the clientID element of UnsubscribeRequest is set, 0 otherwise.

$UnsubscribeRequest->clear_clientID()

Clears the clientID element(s) of UnsubscribeRequest.

$clientID = $UnsubscribeRequest->clientID()

Returns clientID from UnsubscribeRequest. clientID will be a string.

$UnsubscribeRequest->set_clientID($value)

Sets the value of clientID in UnsubscribeRequest to value. value must be a string.

$has_subject = $UnsubscribeRequest->has_subject()

Returns 1 if the subject element of UnsubscribeRequest is set, 0 otherwise.

$UnsubscribeRequest->clear_subject()

Clears the subject element(s) of UnsubscribeRequest.

$subject = $UnsubscribeRequest->subject()

Returns subject from UnsubscribeRequest. subject will be a string.

$UnsubscribeRequest->set_subject($value)

Sets the value of subject in UnsubscribeRequest to value. value must be a string.

$has_inbox = $UnsubscribeRequest->has_inbox()

Returns 1 if the inbox element of UnsubscribeRequest is set, 0 otherwise.

$UnsubscribeRequest->clear_inbox()

Clears the inbox element(s) of UnsubscribeRequest.

$inbox = $UnsubscribeRequest->inbox()

Returns inbox from UnsubscribeRequest. inbox will be a string.

$UnsubscribeRequest->set_inbox($value)

Sets the value of inbox in UnsubscribeRequest to value. value must be a string.

$has_durableName = $UnsubscribeRequest->has_durableName()

Returns 1 if the durableName element of UnsubscribeRequest is set, 0 otherwise.

$UnsubscribeRequest->clear_durableName()

Clears the durableName element(s) of UnsubscribeRequest.

$durableName = $UnsubscribeRequest->durableName()

Returns durableName from UnsubscribeRequest. durableName will be a string.

$UnsubscribeRequest->set_durableName($value)

Sets the value of durableName in UnsubscribeRequest to value. value must be a string.

AUTHOR

Generated from Net.NATS.Streaming.PB.UnsubscribeRequest by the protoc compiler.

SEE ALSO

http://code.google.com/p/protobuf