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 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
Ack1intoAck2.Ack2is another instance of the same message type. - $Ack2->copy_from($hashref)
-
Copies the contents of
hashrefintoAck2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $Ack2->merge_from($Ack1)
-
Merges the contents of
Ack1intoAck2.Ack2is another instance of the same message type. - $Ack2->merge_from($hashref)
-
Merges the contents of
hashrefintoAck2.hashrefis 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
Ackhas 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
stringintoAck, returning 1 on success and 0 on failure. - $string = $Ack->pack()
-
Serializes
Ackintostring. - $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_fromormerge_frommethods. - $has_subject = $Ack->has_subject()
-
Returns 1 if the
subjectelement ofAckis set, 0 otherwise. - $Ack->clear_subject()
-
Clears the
subjectelement(s) ofAck. - $subject = $Ack->subject()
-
Returns
subjectfromAck.subjectwill be a string. - $Ack->set_subject($value)
-
Sets the value of
subjectinAcktovalue.valuemust be a string. - $has_sequence = $Ack->has_sequence()
-
Returns 1 if the
sequenceelement ofAckis set, 0 otherwise. - $Ack->clear_sequence()
-
Clears the
sequenceelement(s) ofAck. - $sequence = $Ack->sequence()
-
Returns
sequencefromAck.sequencewill be a 64-bit unsigned integer. - $Ack->set_sequence($value)
-
Sets the value of
sequenceinAcktovalue.valuemust 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
CloseRequest1intoCloseRequest2.CloseRequest2is another instance of the same message type. - $CloseRequest2->copy_from($hashref)
-
Copies the contents of
hashrefintoCloseRequest2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $CloseRequest2->merge_from($CloseRequest1)
-
Merges the contents of
CloseRequest1intoCloseRequest2.CloseRequest2is another instance of the same message type. - $CloseRequest2->merge_from($hashref)
-
Merges the contents of
hashrefintoCloseRequest2.hashrefis 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
CloseRequesthas 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
stringintoCloseRequest, returning 1 on success and 0 on failure. - $string = $CloseRequest->pack()
-
Serializes
CloseRequestintostring. - $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_fromormerge_frommethods. - $has_clientID = $CloseRequest->has_clientID()
-
Returns 1 if the
clientIDelement ofCloseRequestis set, 0 otherwise. - $CloseRequest->clear_clientID()
-
Clears the
clientIDelement(s) ofCloseRequest. - $clientID = $CloseRequest->clientID()
-
Returns
clientIDfromCloseRequest.clientIDwill be a string. - $CloseRequest->set_clientID($value)
-
Sets the value of
clientIDinCloseRequesttovalue.valuemust 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
CloseResponse1intoCloseResponse2.CloseResponse2is another instance of the same message type. - $CloseResponse2->copy_from($hashref)
-
Copies the contents of
hashrefintoCloseResponse2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $CloseResponse2->merge_from($CloseResponse1)
-
Merges the contents of
CloseResponse1intoCloseResponse2.CloseResponse2is another instance of the same message type. - $CloseResponse2->merge_from($hashref)
-
Merges the contents of
hashrefintoCloseResponse2.hashrefis 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
CloseResponsehas 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
stringintoCloseResponse, returning 1 on success and 0 on failure. - $string = $CloseResponse->pack()
-
Serializes
CloseResponseintostring. - $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_fromormerge_frommethods. - $has_error = $CloseResponse->has_error()
-
Returns 1 if the
errorelement ofCloseResponseis set, 0 otherwise. - $CloseResponse->clear_error()
-
Clears the
errorelement(s) ofCloseResponse. - $error = $CloseResponse->error()
-
Returns
errorfromCloseResponse.errorwill be a string. - $CloseResponse->set_error($value)
-
Sets the value of
errorinCloseResponsetovalue.valuemust 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
ConnectRequest1intoConnectRequest2.ConnectRequest2is another instance of the same message type. - $ConnectRequest2->copy_from($hashref)
-
Copies the contents of
hashrefintoConnectRequest2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $ConnectRequest2->merge_from($ConnectRequest1)
-
Merges the contents of
ConnectRequest1intoConnectRequest2.ConnectRequest2is another instance of the same message type. - $ConnectRequest2->merge_from($hashref)
-
Merges the contents of
hashrefintoConnectRequest2.hashrefis 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
ConnectRequesthas 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
stringintoConnectRequest, returning 1 on success and 0 on failure. - $string = $ConnectRequest->pack()
-
Serializes
ConnectRequestintostring. - $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_fromormerge_frommethods. - $has_clientID = $ConnectRequest->has_clientID()
-
Returns 1 if the
clientIDelement ofConnectRequestis set, 0 otherwise. - $ConnectRequest->clear_clientID()
-
Clears the
clientIDelement(s) ofConnectRequest. - $clientID = $ConnectRequest->clientID()
-
Returns
clientIDfromConnectRequest.clientIDwill be a string. - $ConnectRequest->set_clientID($value)
-
Sets the value of
clientIDinConnectRequesttovalue.valuemust be a string. - $has_heartbeatInbox = $ConnectRequest->has_heartbeatInbox()
-
Returns 1 if the
heartbeatInboxelement ofConnectRequestis set, 0 otherwise. - $ConnectRequest->clear_heartbeatInbox()
-
Clears the
heartbeatInboxelement(s) ofConnectRequest. - $heartbeatInbox = $ConnectRequest->heartbeatInbox()
-
Returns
heartbeatInboxfromConnectRequest.heartbeatInboxwill be a string. - $ConnectRequest->set_heartbeatInbox($value)
-
Sets the value of
heartbeatInboxinConnectRequesttovalue.valuemust 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
ConnectResponse1intoConnectResponse2.ConnectResponse2is another instance of the same message type. - $ConnectResponse2->copy_from($hashref)
-
Copies the contents of
hashrefintoConnectResponse2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $ConnectResponse2->merge_from($ConnectResponse1)
-
Merges the contents of
ConnectResponse1intoConnectResponse2.ConnectResponse2is another instance of the same message type. - $ConnectResponse2->merge_from($hashref)
-
Merges the contents of
hashrefintoConnectResponse2.hashrefis 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
ConnectResponsehas 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
stringintoConnectResponse, returning 1 on success and 0 on failure. - $string = $ConnectResponse->pack()
-
Serializes
ConnectResponseintostring. - $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_fromormerge_frommethods. - $has_pubPrefix = $ConnectResponse->has_pubPrefix()
-
Returns 1 if the
pubPrefixelement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_pubPrefix()
-
Clears the
pubPrefixelement(s) ofConnectResponse. - $pubPrefix = $ConnectResponse->pubPrefix()
-
Returns
pubPrefixfromConnectResponse.pubPrefixwill be a string. - $ConnectResponse->set_pubPrefix($value)
-
Sets the value of
pubPrefixinConnectResponsetovalue.valuemust be a string. - $has_subRequests = $ConnectResponse->has_subRequests()
-
Returns 1 if the
subRequestselement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_subRequests()
-
Clears the
subRequestselement(s) ofConnectResponse. - $subRequests = $ConnectResponse->subRequests()
-
Returns
subRequestsfromConnectResponse.subRequestswill be a string. - $ConnectResponse->set_subRequests($value)
-
Sets the value of
subRequestsinConnectResponsetovalue.valuemust be a string. - $has_unsubRequests = $ConnectResponse->has_unsubRequests()
-
Returns 1 if the
unsubRequestselement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_unsubRequests()
-
Clears the
unsubRequestselement(s) ofConnectResponse. - $unsubRequests = $ConnectResponse->unsubRequests()
-
Returns
unsubRequestsfromConnectResponse.unsubRequestswill be a string. - $ConnectResponse->set_unsubRequests($value)
-
Sets the value of
unsubRequestsinConnectResponsetovalue.valuemust be a string. - $has_closeRequests = $ConnectResponse->has_closeRequests()
-
Returns 1 if the
closeRequestselement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_closeRequests()
-
Clears the
closeRequestselement(s) ofConnectResponse. - $closeRequests = $ConnectResponse->closeRequests()
-
Returns
closeRequestsfromConnectResponse.closeRequestswill be a string. - $ConnectResponse->set_closeRequests($value)
-
Sets the value of
closeRequestsinConnectResponsetovalue.valuemust be a string. - $has_error = $ConnectResponse->has_error()
-
Returns 1 if the
errorelement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_error()
-
Clears the
errorelement(s) ofConnectResponse. - $error = $ConnectResponse->error()
-
Returns
errorfromConnectResponse.errorwill be a string. - $ConnectResponse->set_error($value)
-
Sets the value of
errorinConnectResponsetovalue.valuemust be a string. - $has_subCloseRequests = $ConnectResponse->has_subCloseRequests()
-
Returns 1 if the
subCloseRequestselement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_subCloseRequests()
-
Clears the
subCloseRequestselement(s) ofConnectResponse. - $subCloseRequests = $ConnectResponse->subCloseRequests()
-
Returns
subCloseRequestsfromConnectResponse.subCloseRequestswill be a string. - $ConnectResponse->set_subCloseRequests($value)
-
Sets the value of
subCloseRequestsinConnectResponsetovalue.valuemust be a string. - $has_publicKey = $ConnectResponse->has_publicKey()
-
Returns 1 if the
publicKeyelement ofConnectResponseis set, 0 otherwise. - $ConnectResponse->clear_publicKey()
-
Clears the
publicKeyelement(s) ofConnectResponse. - $publicKey = $ConnectResponse->publicKey()
-
Returns
publicKeyfromConnectResponse.publicKeywill be a string. - $ConnectResponse->set_publicKey($value)
-
Sets the value of
publicKeyinConnectResponsetovalue.valuemust 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 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
MsgProto1intoMsgProto2.MsgProto2is another instance of the same message type. - $MsgProto2->copy_from($hashref)
-
Copies the contents of
hashrefintoMsgProto2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $MsgProto2->merge_from($MsgProto1)
-
Merges the contents of
MsgProto1intoMsgProto2.MsgProto2is another instance of the same message type. - $MsgProto2->merge_from($hashref)
-
Merges the contents of
hashrefintoMsgProto2.hashrefis 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
MsgProtohas 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
stringintoMsgProto, returning 1 on success and 0 on failure. - $string = $MsgProto->pack()
-
Serializes
MsgProtointostring. - $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_fromormerge_frommethods. - $has_sequence = $MsgProto->has_sequence()
-
Returns 1 if the
sequenceelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_sequence()
-
Clears the
sequenceelement(s) ofMsgProto. - $sequence = $MsgProto->sequence()
-
Returns
sequencefromMsgProto.sequencewill be a 64-bit unsigned integer. - $MsgProto->set_sequence($value)
-
Sets the value of
sequenceinMsgPrototovalue.valuemust be a 64-bit unsigned integer. - $has_subject = $MsgProto->has_subject()
-
Returns 1 if the
subjectelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_subject()
-
Clears the
subjectelement(s) ofMsgProto. - $subject = $MsgProto->subject()
-
Returns
subjectfromMsgProto.subjectwill be a string. - $MsgProto->set_subject($value)
-
Sets the value of
subjectinMsgPrototovalue.valuemust be a string. - $has_reply = $MsgProto->has_reply()
-
Returns 1 if the
replyelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_reply()
-
Clears the
replyelement(s) ofMsgProto. - $reply = $MsgProto->reply()
-
Returns
replyfromMsgProto.replywill be a string. - $MsgProto->set_reply($value)
-
Sets the value of
replyinMsgPrototovalue.valuemust be a string. - $has_data = $MsgProto->has_data()
-
Returns 1 if the
dataelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_data()
-
Clears the
dataelement(s) ofMsgProto. - $data = $MsgProto->data()
-
Returns
datafromMsgProto.datawill be a string. - $MsgProto->set_data($value)
-
Sets the value of
datainMsgPrototovalue.valuemust be a string. - $has_timestamp = $MsgProto->has_timestamp()
-
Returns 1 if the
timestampelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_timestamp()
-
Clears the
timestampelement(s) ofMsgProto. - $timestamp = $MsgProto->timestamp()
-
Returns
timestampfromMsgProto.timestampwill be a 64-bit signed integer. - $MsgProto->set_timestamp($value)
-
Sets the value of
timestampinMsgPrototovalue.valuemust be a 64-bit signed integer. - $has_redelivered = $MsgProto->has_redelivered()
-
Returns 1 if the
redeliveredelement ofMsgProtois set, 0 otherwise. - $MsgProto->clear_redelivered()
-
Clears the
redeliveredelement(s) ofMsgProto. - $redelivered = $MsgProto->redelivered()
-
Returns
redeliveredfromMsgProto.redeliveredwill be a Boolean value. - $MsgProto->set_redelivered($value)
-
Sets the value of
redeliveredinMsgPrototovalue.valuemust be a Boolean value. - $has_CRC32 = $MsgProto->has_CRC32()
-
Returns 1 if the
CRC32element ofMsgProtois set, 0 otherwise. - $MsgProto->clear_CRC32()
-
Clears the
CRC32element(s) ofMsgProto. - $CRC32 = $MsgProto->CRC32()
-
Returns
CRC32fromMsgProto.CRC32will be a 32-bit unsigned integer. - $MsgProto->set_CRC32($value)
-
Sets the value of
CRC32inMsgPrototovalue.valuemust 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 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
PubAck1intoPubAck2.PubAck2is another instance of the same message type. - $PubAck2->copy_from($hashref)
-
Copies the contents of
hashrefintoPubAck2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $PubAck2->merge_from($PubAck1)
-
Merges the contents of
PubAck1intoPubAck2.PubAck2is another instance of the same message type. - $PubAck2->merge_from($hashref)
-
Merges the contents of
hashrefintoPubAck2.hashrefis 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
PubAckhas 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
stringintoPubAck, returning 1 on success and 0 on failure. - $string = $PubAck->pack()
-
Serializes
PubAckintostring. - $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_fromormerge_frommethods. - $has_guid = $PubAck->has_guid()
-
Returns 1 if the
guidelement ofPubAckis set, 0 otherwise. - $PubAck->clear_guid()
-
Clears the
guidelement(s) ofPubAck. - $guid = $PubAck->guid()
-
Returns
guidfromPubAck.guidwill be a string. - $PubAck->set_guid($value)
-
Sets the value of
guidinPubAcktovalue.valuemust be a string. - $has_error = $PubAck->has_error()
-
Returns 1 if the
errorelement ofPubAckis set, 0 otherwise. - $PubAck->clear_error()
-
Clears the
errorelement(s) ofPubAck. - $error = $PubAck->error()
-
Returns
errorfromPubAck.errorwill be a string. - $PubAck->set_error($value)
-
Sets the value of
errorinPubAcktovalue.valuemust 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 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
PubMsg1intoPubMsg2.PubMsg2is another instance of the same message type. - $PubMsg2->copy_from($hashref)
-
Copies the contents of
hashrefintoPubMsg2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $PubMsg2->merge_from($PubMsg1)
-
Merges the contents of
PubMsg1intoPubMsg2.PubMsg2is another instance of the same message type. - $PubMsg2->merge_from($hashref)
-
Merges the contents of
hashrefintoPubMsg2.hashrefis 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
PubMsghas 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
stringintoPubMsg, returning 1 on success and 0 on failure. - $string = $PubMsg->pack()
-
Serializes
PubMsgintostring. - $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_fromormerge_frommethods. - $has_clientID = $PubMsg->has_clientID()
-
Returns 1 if the
clientIDelement ofPubMsgis set, 0 otherwise. - $PubMsg->clear_clientID()
-
Clears the
clientIDelement(s) ofPubMsg. - $clientID = $PubMsg->clientID()
-
Returns
clientIDfromPubMsg.clientIDwill be a string. - $PubMsg->set_clientID($value)
-
Sets the value of
clientIDinPubMsgtovalue.valuemust be a string. - $has_guid = $PubMsg->has_guid()
-
Returns 1 if the
guidelement ofPubMsgis set, 0 otherwise. - $PubMsg->clear_guid()
-
Clears the
guidelement(s) ofPubMsg. - $guid = $PubMsg->guid()
-
Returns
guidfromPubMsg.guidwill be a string. - $PubMsg->set_guid($value)
-
Sets the value of
guidinPubMsgtovalue.valuemust be a string. - $has_subject = $PubMsg->has_subject()
-
Returns 1 if the
subjectelement ofPubMsgis set, 0 otherwise. - $PubMsg->clear_subject()
-
Clears the
subjectelement(s) ofPubMsg. - $subject = $PubMsg->subject()
-
Returns
subjectfromPubMsg.subjectwill be a string. - $PubMsg->set_subject($value)
-
Sets the value of
subjectinPubMsgtovalue.valuemust be a string. - $has_reply = $PubMsg->has_reply()
-
Returns 1 if the
replyelement ofPubMsgis set, 0 otherwise. - $PubMsg->clear_reply()
-
Clears the
replyelement(s) ofPubMsg. - $reply = $PubMsg->reply()
-
Returns
replyfromPubMsg.replywill be a string. - $PubMsg->set_reply($value)
-
Sets the value of
replyinPubMsgtovalue.valuemust be a string. - $has_data = $PubMsg->has_data()
-
Returns 1 if the
dataelement ofPubMsgis set, 0 otherwise. - $PubMsg->clear_data()
-
Clears the
dataelement(s) ofPubMsg. - $data = $PubMsg->data()
-
Returns
datafromPubMsg.datawill be a string. - $PubMsg->set_data($value)
-
Sets the value of
datainPubMsgtovalue.valuemust be a string. - $has_sha256 = $PubMsg->has_sha256()
-
Returns 1 if the
sha256element ofPubMsgis set, 0 otherwise. - $PubMsg->clear_sha256()
-
Clears the
sha256element(s) ofPubMsg. - $sha256 = $PubMsg->sha256()
-
Returns
sha256fromPubMsg.sha256will be a string. - $PubMsg->set_sha256($value)
-
Sets the value of
sha256inPubMsgtovalue.valuemust 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
SubscriptionRequest1intoSubscriptionRequest2.SubscriptionRequest2is another instance of the same message type. - $SubscriptionRequest2->copy_from($hashref)
-
Copies the contents of
hashrefintoSubscriptionRequest2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $SubscriptionRequest2->merge_from($SubscriptionRequest1)
-
Merges the contents of
SubscriptionRequest1intoSubscriptionRequest2.SubscriptionRequest2is another instance of the same message type. - $SubscriptionRequest2->merge_from($hashref)
-
Merges the contents of
hashrefintoSubscriptionRequest2.hashrefis 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
SubscriptionRequesthas 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
stringintoSubscriptionRequest, returning 1 on success and 0 on failure. - $string = $SubscriptionRequest->pack()
-
Serializes
SubscriptionRequestintostring. - $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_fromormerge_frommethods. - $has_clientID = $SubscriptionRequest->has_clientID()
-
Returns 1 if the
clientIDelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_clientID()
-
Clears the
clientIDelement(s) ofSubscriptionRequest. - $clientID = $SubscriptionRequest->clientID()
-
Returns
clientIDfromSubscriptionRequest.clientIDwill be a string. - $SubscriptionRequest->set_clientID($value)
-
Sets the value of
clientIDinSubscriptionRequesttovalue.valuemust be a string. - $has_subject = $SubscriptionRequest->has_subject()
-
Returns 1 if the
subjectelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_subject()
-
Clears the
subjectelement(s) ofSubscriptionRequest. - $subject = $SubscriptionRequest->subject()
-
Returns
subjectfromSubscriptionRequest.subjectwill be a string. - $SubscriptionRequest->set_subject($value)
-
Sets the value of
subjectinSubscriptionRequesttovalue.valuemust be a string. - $has_qGroup = $SubscriptionRequest->has_qGroup()
-
Returns 1 if the
qGroupelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_qGroup()
-
Clears the
qGroupelement(s) ofSubscriptionRequest. - $qGroup = $SubscriptionRequest->qGroup()
-
Returns
qGroupfromSubscriptionRequest.qGroupwill be a string. - $SubscriptionRequest->set_qGroup($value)
-
Sets the value of
qGroupinSubscriptionRequesttovalue.valuemust be a string. - $has_inbox = $SubscriptionRequest->has_inbox()
-
Returns 1 if the
inboxelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_inbox()
-
Clears the
inboxelement(s) ofSubscriptionRequest. - $inbox = $SubscriptionRequest->inbox()
-
Returns
inboxfromSubscriptionRequest.inboxwill be a string. - $SubscriptionRequest->set_inbox($value)
-
Sets the value of
inboxinSubscriptionRequesttovalue.valuemust be a string. - $has_maxInFlight = $SubscriptionRequest->has_maxInFlight()
-
Returns 1 if the
maxInFlightelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_maxInFlight()
-
Clears the
maxInFlightelement(s) ofSubscriptionRequest. - $maxInFlight = $SubscriptionRequest->maxInFlight()
-
Returns
maxInFlightfromSubscriptionRequest.maxInFlightwill be a 32-bit signed integer. - $SubscriptionRequest->set_maxInFlight($value)
-
Sets the value of
maxInFlightinSubscriptionRequesttovalue.valuemust be a 32-bit signed integer. - $has_ackWaitInSecs = $SubscriptionRequest->has_ackWaitInSecs()
-
Returns 1 if the
ackWaitInSecselement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_ackWaitInSecs()
-
Clears the
ackWaitInSecselement(s) ofSubscriptionRequest. - $ackWaitInSecs = $SubscriptionRequest->ackWaitInSecs()
-
Returns
ackWaitInSecsfromSubscriptionRequest.ackWaitInSecswill be a 32-bit signed integer. - $SubscriptionRequest->set_ackWaitInSecs($value)
-
Sets the value of
ackWaitInSecsinSubscriptionRequesttovalue.valuemust be a 32-bit signed integer. - $has_durableName = $SubscriptionRequest->has_durableName()
-
Returns 1 if the
durableNameelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_durableName()
-
Clears the
durableNameelement(s) ofSubscriptionRequest. - $durableName = $SubscriptionRequest->durableName()
-
Returns
durableNamefromSubscriptionRequest.durableNamewill be a string. - $SubscriptionRequest->set_durableName($value)
-
Sets the value of
durableNameinSubscriptionRequesttovalue.valuemust be a string. - $has_startPosition = $SubscriptionRequest->has_startPosition()
-
Returns 1 if the
startPositionelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_startPosition()
-
Clears the
startPositionelement(s) ofSubscriptionRequest. - $startPosition = $SubscriptionRequest->startPosition()
-
Returns
startPositionfromSubscriptionRequest.startPositionwill be a value of Net::NATS::Streaming::PB::StartPosition. - $SubscriptionRequest->set_startPosition($value)
-
Sets the value of
startPositioninSubscriptionRequesttovalue.valuemust be a value of Net::NATS::Streaming::PB::StartPosition. - $has_startSequence = $SubscriptionRequest->has_startSequence()
-
Returns 1 if the
startSequenceelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_startSequence()
-
Clears the
startSequenceelement(s) ofSubscriptionRequest. - $startSequence = $SubscriptionRequest->startSequence()
-
Returns
startSequencefromSubscriptionRequest.startSequencewill be a 64-bit unsigned integer. - $SubscriptionRequest->set_startSequence($value)
-
Sets the value of
startSequenceinSubscriptionRequesttovalue.valuemust be a 64-bit unsigned integer. - $has_startTimeDelta = $SubscriptionRequest->has_startTimeDelta()
-
Returns 1 if the
startTimeDeltaelement ofSubscriptionRequestis set, 0 otherwise. - $SubscriptionRequest->clear_startTimeDelta()
-
Clears the
startTimeDeltaelement(s) ofSubscriptionRequest. - $startTimeDelta = $SubscriptionRequest->startTimeDelta()
-
Returns
startTimeDeltafromSubscriptionRequest.startTimeDeltawill be a 64-bit signed integer. - $SubscriptionRequest->set_startTimeDelta($value)
-
Sets the value of
startTimeDeltainSubscriptionRequesttovalue.valuemust 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
SubscriptionResponse1intoSubscriptionResponse2.SubscriptionResponse2is another instance of the same message type. - $SubscriptionResponse2->copy_from($hashref)
-
Copies the contents of
hashrefintoSubscriptionResponse2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $SubscriptionResponse2->merge_from($SubscriptionResponse1)
-
Merges the contents of
SubscriptionResponse1intoSubscriptionResponse2.SubscriptionResponse2is another instance of the same message type. - $SubscriptionResponse2->merge_from($hashref)
-
Merges the contents of
hashrefintoSubscriptionResponse2.hashrefis 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
SubscriptionResponsehas 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
stringintoSubscriptionResponse, returning 1 on success and 0 on failure. - $string = $SubscriptionResponse->pack()
-
Serializes
SubscriptionResponseintostring. - $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_fromormerge_frommethods. - $has_ackInbox = $SubscriptionResponse->has_ackInbox()
-
Returns 1 if the
ackInboxelement ofSubscriptionResponseis set, 0 otherwise. - $SubscriptionResponse->clear_ackInbox()
-
Clears the
ackInboxelement(s) ofSubscriptionResponse. - $ackInbox = $SubscriptionResponse->ackInbox()
-
Returns
ackInboxfromSubscriptionResponse.ackInboxwill be a string. - $SubscriptionResponse->set_ackInbox($value)
-
Sets the value of
ackInboxinSubscriptionResponsetovalue.valuemust be a string. - $has_error = $SubscriptionResponse->has_error()
-
Returns 1 if the
errorelement ofSubscriptionResponseis set, 0 otherwise. - $SubscriptionResponse->clear_error()
-
Clears the
errorelement(s) ofSubscriptionResponse. - $error = $SubscriptionResponse->error()
-
Returns
errorfromSubscriptionResponse.errorwill be a string. - $SubscriptionResponse->set_error($value)
-
Sets the value of
errorinSubscriptionResponsetovalue.valuemust 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
UnsubscribeRequest1intoUnsubscribeRequest2.UnsubscribeRequest2is another instance of the same message type. - $UnsubscribeRequest2->copy_from($hashref)
-
Copies the contents of
hashrefintoUnsubscribeRequest2.hashrefis a Data::Dumper-style representation of an instance of the message type. - $UnsubscribeRequest2->merge_from($UnsubscribeRequest1)
-
Merges the contents of
UnsubscribeRequest1intoUnsubscribeRequest2.UnsubscribeRequest2is another instance of the same message type. - $UnsubscribeRequest2->merge_from($hashref)
-
Merges the contents of
hashrefintoUnsubscribeRequest2.hashrefis 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
UnsubscribeRequesthas 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
stringintoUnsubscribeRequest, returning 1 on success and 0 on failure. - $string = $UnsubscribeRequest->pack()
-
Serializes
UnsubscribeRequestintostring. - $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_fromormerge_frommethods. - $has_clientID = $UnsubscribeRequest->has_clientID()
-
Returns 1 if the
clientIDelement ofUnsubscribeRequestis set, 0 otherwise. - $UnsubscribeRequest->clear_clientID()
-
Clears the
clientIDelement(s) ofUnsubscribeRequest. - $clientID = $UnsubscribeRequest->clientID()
-
Returns
clientIDfromUnsubscribeRequest.clientIDwill be a string. - $UnsubscribeRequest->set_clientID($value)
-
Sets the value of
clientIDinUnsubscribeRequesttovalue.valuemust be a string. - $has_subject = $UnsubscribeRequest->has_subject()
-
Returns 1 if the
subjectelement ofUnsubscribeRequestis set, 0 otherwise. - $UnsubscribeRequest->clear_subject()
-
Clears the
subjectelement(s) ofUnsubscribeRequest. - $subject = $UnsubscribeRequest->subject()
-
Returns
subjectfromUnsubscribeRequest.subjectwill be a string. - $UnsubscribeRequest->set_subject($value)
-
Sets the value of
subjectinUnsubscribeRequesttovalue.valuemust be a string. - $has_inbox = $UnsubscribeRequest->has_inbox()
-
Returns 1 if the
inboxelement ofUnsubscribeRequestis set, 0 otherwise. - $UnsubscribeRequest->clear_inbox()
-
Clears the
inboxelement(s) ofUnsubscribeRequest. - $inbox = $UnsubscribeRequest->inbox()
-
Returns
inboxfromUnsubscribeRequest.inboxwill be a string. - $UnsubscribeRequest->set_inbox($value)
-
Sets the value of
inboxinUnsubscribeRequesttovalue.valuemust be a string. - $has_durableName = $UnsubscribeRequest->has_durableName()
-
Returns 1 if the
durableNameelement ofUnsubscribeRequestis set, 0 otherwise. - $UnsubscribeRequest->clear_durableName()
-
Clears the
durableNameelement(s) ofUnsubscribeRequest. - $durableName = $UnsubscribeRequest->durableName()
-
Returns
durableNamefromUnsubscribeRequest.durableNamewill be a string. - $UnsubscribeRequest->set_durableName($value)
-
Sets the value of
durableNameinUnsubscribeRequesttovalue.valuemust be a string.
AUTHOR
Generated from Net.NATS.Streaming.PB.UnsubscribeRequest by the protoc compiler.
SEE ALSO
http://code.google.com/p/protobuf
REPOSITORY
https://github.com/sergeykolychev/perl-nats-streaming
COPYRIGHT & LICENSE
Copyright (C) 2017 by Sergey Kolychev <sergeykolychev.github@gmail.com>
This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0