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
Ack1
intoAck2
.Ack2
is another instance of the same message type. - $Ack2->copy_from($hashref)
-
Copies the contents of
hashref
intoAck2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $Ack2->merge_from($Ack1)
-
Merges the contents of
Ack1
intoAck2
.Ack2
is another instance of the same message type. - $Ack2->merge_from($hashref)
-
Merges the contents of
hashref
intoAck2
.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
intoAck
, returning 1 on success and 0 on failure. - $string = $Ack->pack()
-
Serializes
Ack
intostring
. - $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
ormerge_from
methods. - $has_subject = $Ack->has_subject()
-
Returns 1 if the
subject
element ofAck
is set, 0 otherwise. - $Ack->clear_subject()
-
Clears the
subject
element(s) ofAck
. - $subject = $Ack->subject()
-
Returns
subject
fromAck
.subject
will be a string. - $Ack->set_subject($value)
-
Sets the value of
subject
inAck
tovalue
.value
must be a string. - $has_sequence = $Ack->has_sequence()
-
Returns 1 if the
sequence
element ofAck
is set, 0 otherwise. - $Ack->clear_sequence()
-
Clears the
sequence
element(s) ofAck
. - $sequence = $Ack->sequence()
-
Returns
sequence
fromAck
.sequence
will be a 64-bit unsigned integer. - $Ack->set_sequence($value)
-
Sets the value of
sequence
inAck
tovalue
.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
intoCloseRequest2
.CloseRequest2
is another instance of the same message type. - $CloseRequest2->copy_from($hashref)
-
Copies the contents of
hashref
intoCloseRequest2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $CloseRequest2->merge_from($CloseRequest1)
-
Merges the contents of
CloseRequest1
intoCloseRequest2
.CloseRequest2
is another instance of the same message type. - $CloseRequest2->merge_from($hashref)
-
Merges the contents of
hashref
intoCloseRequest2
.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
intoCloseRequest
, returning 1 on success and 0 on failure. - $string = $CloseRequest->pack()
-
Serializes
CloseRequest
intostring
. - $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
ormerge_from
methods. - $has_clientID = $CloseRequest->has_clientID()
-
Returns 1 if the
clientID
element ofCloseRequest
is set, 0 otherwise. - $CloseRequest->clear_clientID()
-
Clears the
clientID
element(s) ofCloseRequest
. - $clientID = $CloseRequest->clientID()
-
Returns
clientID
fromCloseRequest
.clientID
will be a string. - $CloseRequest->set_clientID($value)
-
Sets the value of
clientID
inCloseRequest
tovalue
.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
intoCloseResponse2
.CloseResponse2
is another instance of the same message type. - $CloseResponse2->copy_from($hashref)
-
Copies the contents of
hashref
intoCloseResponse2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $CloseResponse2->merge_from($CloseResponse1)
-
Merges the contents of
CloseResponse1
intoCloseResponse2
.CloseResponse2
is another instance of the same message type. - $CloseResponse2->merge_from($hashref)
-
Merges the contents of
hashref
intoCloseResponse2
.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
intoCloseResponse
, returning 1 on success and 0 on failure. - $string = $CloseResponse->pack()
-
Serializes
CloseResponse
intostring
. - $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
ormerge_from
methods. - $has_error = $CloseResponse->has_error()
-
Returns 1 if the
error
element ofCloseResponse
is set, 0 otherwise. - $CloseResponse->clear_error()
-
Clears the
error
element(s) ofCloseResponse
. - $error = $CloseResponse->error()
-
Returns
error
fromCloseResponse
.error
will be a string. - $CloseResponse->set_error($value)
-
Sets the value of
error
inCloseResponse
tovalue
.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
intoConnectRequest2
.ConnectRequest2
is another instance of the same message type. - $ConnectRequest2->copy_from($hashref)
-
Copies the contents of
hashref
intoConnectRequest2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $ConnectRequest2->merge_from($ConnectRequest1)
-
Merges the contents of
ConnectRequest1
intoConnectRequest2
.ConnectRequest2
is another instance of the same message type. - $ConnectRequest2->merge_from($hashref)
-
Merges the contents of
hashref
intoConnectRequest2
.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
intoConnectRequest
, returning 1 on success and 0 on failure. - $string = $ConnectRequest->pack()
-
Serializes
ConnectRequest
intostring
. - $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
ormerge_from
methods. - $has_clientID = $ConnectRequest->has_clientID()
-
Returns 1 if the
clientID
element ofConnectRequest
is set, 0 otherwise. - $ConnectRequest->clear_clientID()
-
Clears the
clientID
element(s) ofConnectRequest
. - $clientID = $ConnectRequest->clientID()
-
Returns
clientID
fromConnectRequest
.clientID
will be a string. - $ConnectRequest->set_clientID($value)
-
Sets the value of
clientID
inConnectRequest
tovalue
.value
must be a string. - $has_heartbeatInbox = $ConnectRequest->has_heartbeatInbox()
-
Returns 1 if the
heartbeatInbox
element ofConnectRequest
is set, 0 otherwise. - $ConnectRequest->clear_heartbeatInbox()
-
Clears the
heartbeatInbox
element(s) ofConnectRequest
. - $heartbeatInbox = $ConnectRequest->heartbeatInbox()
-
Returns
heartbeatInbox
fromConnectRequest
.heartbeatInbox
will be a string. - $ConnectRequest->set_heartbeatInbox($value)
-
Sets the value of
heartbeatInbox
inConnectRequest
tovalue
.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
intoConnectResponse2
.ConnectResponse2
is another instance of the same message type. - $ConnectResponse2->copy_from($hashref)
-
Copies the contents of
hashref
intoConnectResponse2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $ConnectResponse2->merge_from($ConnectResponse1)
-
Merges the contents of
ConnectResponse1
intoConnectResponse2
.ConnectResponse2
is another instance of the same message type. - $ConnectResponse2->merge_from($hashref)
-
Merges the contents of
hashref
intoConnectResponse2
.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
intoConnectResponse
, returning 1 on success and 0 on failure. - $string = $ConnectResponse->pack()
-
Serializes
ConnectResponse
intostring
. - $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
ormerge_from
methods. - $has_pubPrefix = $ConnectResponse->has_pubPrefix()
-
Returns 1 if the
pubPrefix
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_pubPrefix()
-
Clears the
pubPrefix
element(s) ofConnectResponse
. - $pubPrefix = $ConnectResponse->pubPrefix()
-
Returns
pubPrefix
fromConnectResponse
.pubPrefix
will be a string. - $ConnectResponse->set_pubPrefix($value)
-
Sets the value of
pubPrefix
inConnectResponse
tovalue
.value
must be a string. - $has_subRequests = $ConnectResponse->has_subRequests()
-
Returns 1 if the
subRequests
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_subRequests()
-
Clears the
subRequests
element(s) ofConnectResponse
. - $subRequests = $ConnectResponse->subRequests()
-
Returns
subRequests
fromConnectResponse
.subRequests
will be a string. - $ConnectResponse->set_subRequests($value)
-
Sets the value of
subRequests
inConnectResponse
tovalue
.value
must be a string. - $has_unsubRequests = $ConnectResponse->has_unsubRequests()
-
Returns 1 if the
unsubRequests
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_unsubRequests()
-
Clears the
unsubRequests
element(s) ofConnectResponse
. - $unsubRequests = $ConnectResponse->unsubRequests()
-
Returns
unsubRequests
fromConnectResponse
.unsubRequests
will be a string. - $ConnectResponse->set_unsubRequests($value)
-
Sets the value of
unsubRequests
inConnectResponse
tovalue
.value
must be a string. - $has_closeRequests = $ConnectResponse->has_closeRequests()
-
Returns 1 if the
closeRequests
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_closeRequests()
-
Clears the
closeRequests
element(s) ofConnectResponse
. - $closeRequests = $ConnectResponse->closeRequests()
-
Returns
closeRequests
fromConnectResponse
.closeRequests
will be a string. - $ConnectResponse->set_closeRequests($value)
-
Sets the value of
closeRequests
inConnectResponse
tovalue
.value
must be a string. - $has_error = $ConnectResponse->has_error()
-
Returns 1 if the
error
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_error()
-
Clears the
error
element(s) ofConnectResponse
. - $error = $ConnectResponse->error()
-
Returns
error
fromConnectResponse
.error
will be a string. - $ConnectResponse->set_error($value)
-
Sets the value of
error
inConnectResponse
tovalue
.value
must be a string. - $has_subCloseRequests = $ConnectResponse->has_subCloseRequests()
-
Returns 1 if the
subCloseRequests
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_subCloseRequests()
-
Clears the
subCloseRequests
element(s) ofConnectResponse
. - $subCloseRequests = $ConnectResponse->subCloseRequests()
-
Returns
subCloseRequests
fromConnectResponse
.subCloseRequests
will be a string. - $ConnectResponse->set_subCloseRequests($value)
-
Sets the value of
subCloseRequests
inConnectResponse
tovalue
.value
must be a string. - $has_publicKey = $ConnectResponse->has_publicKey()
-
Returns 1 if the
publicKey
element ofConnectResponse
is set, 0 otherwise. - $ConnectResponse->clear_publicKey()
-
Clears the
publicKey
element(s) ofConnectResponse
. - $publicKey = $ConnectResponse->publicKey()
-
Returns
publicKey
fromConnectResponse
.publicKey
will be a string. - $ConnectResponse->set_publicKey($value)
-
Sets the value of
publicKey
inConnectResponse
tovalue
.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 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
intoMsgProto2
.MsgProto2
is another instance of the same message type. - $MsgProto2->copy_from($hashref)
-
Copies the contents of
hashref
intoMsgProto2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $MsgProto2->merge_from($MsgProto1)
-
Merges the contents of
MsgProto1
intoMsgProto2
.MsgProto2
is another instance of the same message type. - $MsgProto2->merge_from($hashref)
-
Merges the contents of
hashref
intoMsgProto2
.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
intoMsgProto
, returning 1 on success and 0 on failure. - $string = $MsgProto->pack()
-
Serializes
MsgProto
intostring
. - $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
ormerge_from
methods. - $has_sequence = $MsgProto->has_sequence()
-
Returns 1 if the
sequence
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_sequence()
-
Clears the
sequence
element(s) ofMsgProto
. - $sequence = $MsgProto->sequence()
-
Returns
sequence
fromMsgProto
.sequence
will be a 64-bit unsigned integer. - $MsgProto->set_sequence($value)
-
Sets the value of
sequence
inMsgProto
tovalue
.value
must be a 64-bit unsigned integer. - $has_subject = $MsgProto->has_subject()
-
Returns 1 if the
subject
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_subject()
-
Clears the
subject
element(s) ofMsgProto
. - $subject = $MsgProto->subject()
-
Returns
subject
fromMsgProto
.subject
will be a string. - $MsgProto->set_subject($value)
-
Sets the value of
subject
inMsgProto
tovalue
.value
must be a string. - $has_reply = $MsgProto->has_reply()
-
Returns 1 if the
reply
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_reply()
-
Clears the
reply
element(s) ofMsgProto
. - $reply = $MsgProto->reply()
-
Returns
reply
fromMsgProto
.reply
will be a string. - $MsgProto->set_reply($value)
-
Sets the value of
reply
inMsgProto
tovalue
.value
must be a string. - $has_data = $MsgProto->has_data()
-
Returns 1 if the
data
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_data()
-
Clears the
data
element(s) ofMsgProto
. - $data = $MsgProto->data()
-
Returns
data
fromMsgProto
.data
will be a string. - $MsgProto->set_data($value)
-
Sets the value of
data
inMsgProto
tovalue
.value
must be a string. - $has_timestamp = $MsgProto->has_timestamp()
-
Returns 1 if the
timestamp
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_timestamp()
-
Clears the
timestamp
element(s) ofMsgProto
. - $timestamp = $MsgProto->timestamp()
-
Returns
timestamp
fromMsgProto
.timestamp
will be a 64-bit signed integer. - $MsgProto->set_timestamp($value)
-
Sets the value of
timestamp
inMsgProto
tovalue
.value
must be a 64-bit signed integer. - $has_redelivered = $MsgProto->has_redelivered()
-
Returns 1 if the
redelivered
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_redelivered()
-
Clears the
redelivered
element(s) ofMsgProto
. - $redelivered = $MsgProto->redelivered()
-
Returns
redelivered
fromMsgProto
.redelivered
will be a Boolean value. - $MsgProto->set_redelivered($value)
-
Sets the value of
redelivered
inMsgProto
tovalue
.value
must be a Boolean value. - $has_CRC32 = $MsgProto->has_CRC32()
-
Returns 1 if the
CRC32
element ofMsgProto
is set, 0 otherwise. - $MsgProto->clear_CRC32()
-
Clears the
CRC32
element(s) ofMsgProto
. - $CRC32 = $MsgProto->CRC32()
-
Returns
CRC32
fromMsgProto
.CRC32
will be a 32-bit unsigned integer. - $MsgProto->set_CRC32($value)
-
Sets the value of
CRC32
inMsgProto
tovalue
.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 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
intoPubAck2
.PubAck2
is another instance of the same message type. - $PubAck2->copy_from($hashref)
-
Copies the contents of
hashref
intoPubAck2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $PubAck2->merge_from($PubAck1)
-
Merges the contents of
PubAck1
intoPubAck2
.PubAck2
is another instance of the same message type. - $PubAck2->merge_from($hashref)
-
Merges the contents of
hashref
intoPubAck2
.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
intoPubAck
, returning 1 on success and 0 on failure. - $string = $PubAck->pack()
-
Serializes
PubAck
intostring
. - $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
ormerge_from
methods. - $has_guid = $PubAck->has_guid()
-
Returns 1 if the
guid
element ofPubAck
is set, 0 otherwise. - $PubAck->clear_guid()
-
Clears the
guid
element(s) ofPubAck
. - $guid = $PubAck->guid()
-
Returns
guid
fromPubAck
.guid
will be a string. - $PubAck->set_guid($value)
-
Sets the value of
guid
inPubAck
tovalue
.value
must be a string. - $has_error = $PubAck->has_error()
-
Returns 1 if the
error
element ofPubAck
is set, 0 otherwise. - $PubAck->clear_error()
-
Clears the
error
element(s) ofPubAck
. - $error = $PubAck->error()
-
Returns
error
fromPubAck
.error
will be a string. - $PubAck->set_error($value)
-
Sets the value of
error
inPubAck
tovalue
.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 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
intoPubMsg2
.PubMsg2
is another instance of the same message type. - $PubMsg2->copy_from($hashref)
-
Copies the contents of
hashref
intoPubMsg2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $PubMsg2->merge_from($PubMsg1)
-
Merges the contents of
PubMsg1
intoPubMsg2
.PubMsg2
is another instance of the same message type. - $PubMsg2->merge_from($hashref)
-
Merges the contents of
hashref
intoPubMsg2
.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
intoPubMsg
, returning 1 on success and 0 on failure. - $string = $PubMsg->pack()
-
Serializes
PubMsg
intostring
. - $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
ormerge_from
methods. - $has_clientID = $PubMsg->has_clientID()
-
Returns 1 if the
clientID
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_clientID()
-
Clears the
clientID
element(s) ofPubMsg
. - $clientID = $PubMsg->clientID()
-
Returns
clientID
fromPubMsg
.clientID
will be a string. - $PubMsg->set_clientID($value)
-
Sets the value of
clientID
inPubMsg
tovalue
.value
must be a string. - $has_guid = $PubMsg->has_guid()
-
Returns 1 if the
guid
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_guid()
-
Clears the
guid
element(s) ofPubMsg
. - $guid = $PubMsg->guid()
-
Returns
guid
fromPubMsg
.guid
will be a string. - $PubMsg->set_guid($value)
-
Sets the value of
guid
inPubMsg
tovalue
.value
must be a string. - $has_subject = $PubMsg->has_subject()
-
Returns 1 if the
subject
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_subject()
-
Clears the
subject
element(s) ofPubMsg
. - $subject = $PubMsg->subject()
-
Returns
subject
fromPubMsg
.subject
will be a string. - $PubMsg->set_subject($value)
-
Sets the value of
subject
inPubMsg
tovalue
.value
must be a string. - $has_reply = $PubMsg->has_reply()
-
Returns 1 if the
reply
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_reply()
-
Clears the
reply
element(s) ofPubMsg
. - $reply = $PubMsg->reply()
-
Returns
reply
fromPubMsg
.reply
will be a string. - $PubMsg->set_reply($value)
-
Sets the value of
reply
inPubMsg
tovalue
.value
must be a string. - $has_data = $PubMsg->has_data()
-
Returns 1 if the
data
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_data()
-
Clears the
data
element(s) ofPubMsg
. - $data = $PubMsg->data()
-
Returns
data
fromPubMsg
.data
will be a string. - $PubMsg->set_data($value)
-
Sets the value of
data
inPubMsg
tovalue
.value
must be a string. - $has_sha256 = $PubMsg->has_sha256()
-
Returns 1 if the
sha256
element ofPubMsg
is set, 0 otherwise. - $PubMsg->clear_sha256()
-
Clears the
sha256
element(s) ofPubMsg
. - $sha256 = $PubMsg->sha256()
-
Returns
sha256
fromPubMsg
.sha256
will be a string. - $PubMsg->set_sha256($value)
-
Sets the value of
sha256
inPubMsg
tovalue
.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
intoSubscriptionRequest2
.SubscriptionRequest2
is another instance of the same message type. - $SubscriptionRequest2->copy_from($hashref)
-
Copies the contents of
hashref
intoSubscriptionRequest2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $SubscriptionRequest2->merge_from($SubscriptionRequest1)
-
Merges the contents of
SubscriptionRequest1
intoSubscriptionRequest2
.SubscriptionRequest2
is another instance of the same message type. - $SubscriptionRequest2->merge_from($hashref)
-
Merges the contents of
hashref
intoSubscriptionRequest2
.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
intoSubscriptionRequest
, returning 1 on success and 0 on failure. - $string = $SubscriptionRequest->pack()
-
Serializes
SubscriptionRequest
intostring
. - $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
ormerge_from
methods. - $has_clientID = $SubscriptionRequest->has_clientID()
-
Returns 1 if the
clientID
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_clientID()
-
Clears the
clientID
element(s) ofSubscriptionRequest
. - $clientID = $SubscriptionRequest->clientID()
-
Returns
clientID
fromSubscriptionRequest
.clientID
will be a string. - $SubscriptionRequest->set_clientID($value)
-
Sets the value of
clientID
inSubscriptionRequest
tovalue
.value
must be a string. - $has_subject = $SubscriptionRequest->has_subject()
-
Returns 1 if the
subject
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_subject()
-
Clears the
subject
element(s) ofSubscriptionRequest
. - $subject = $SubscriptionRequest->subject()
-
Returns
subject
fromSubscriptionRequest
.subject
will be a string. - $SubscriptionRequest->set_subject($value)
-
Sets the value of
subject
inSubscriptionRequest
tovalue
.value
must be a string. - $has_qGroup = $SubscriptionRequest->has_qGroup()
-
Returns 1 if the
qGroup
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_qGroup()
-
Clears the
qGroup
element(s) ofSubscriptionRequest
. - $qGroup = $SubscriptionRequest->qGroup()
-
Returns
qGroup
fromSubscriptionRequest
.qGroup
will be a string. - $SubscriptionRequest->set_qGroup($value)
-
Sets the value of
qGroup
inSubscriptionRequest
tovalue
.value
must be a string. - $has_inbox = $SubscriptionRequest->has_inbox()
-
Returns 1 if the
inbox
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_inbox()
-
Clears the
inbox
element(s) ofSubscriptionRequest
. - $inbox = $SubscriptionRequest->inbox()
-
Returns
inbox
fromSubscriptionRequest
.inbox
will be a string. - $SubscriptionRequest->set_inbox($value)
-
Sets the value of
inbox
inSubscriptionRequest
tovalue
.value
must be a string. - $has_maxInFlight = $SubscriptionRequest->has_maxInFlight()
-
Returns 1 if the
maxInFlight
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_maxInFlight()
-
Clears the
maxInFlight
element(s) ofSubscriptionRequest
. - $maxInFlight = $SubscriptionRequest->maxInFlight()
-
Returns
maxInFlight
fromSubscriptionRequest
.maxInFlight
will be a 32-bit signed integer. - $SubscriptionRequest->set_maxInFlight($value)
-
Sets the value of
maxInFlight
inSubscriptionRequest
tovalue
.value
must be a 32-bit signed integer. - $has_ackWaitInSecs = $SubscriptionRequest->has_ackWaitInSecs()
-
Returns 1 if the
ackWaitInSecs
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_ackWaitInSecs()
-
Clears the
ackWaitInSecs
element(s) ofSubscriptionRequest
. - $ackWaitInSecs = $SubscriptionRequest->ackWaitInSecs()
-
Returns
ackWaitInSecs
fromSubscriptionRequest
.ackWaitInSecs
will be a 32-bit signed integer. - $SubscriptionRequest->set_ackWaitInSecs($value)
-
Sets the value of
ackWaitInSecs
inSubscriptionRequest
tovalue
.value
must be a 32-bit signed integer. - $has_durableName = $SubscriptionRequest->has_durableName()
-
Returns 1 if the
durableName
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_durableName()
-
Clears the
durableName
element(s) ofSubscriptionRequest
. - $durableName = $SubscriptionRequest->durableName()
-
Returns
durableName
fromSubscriptionRequest
.durableName
will be a string. - $SubscriptionRequest->set_durableName($value)
-
Sets the value of
durableName
inSubscriptionRequest
tovalue
.value
must be a string. - $has_startPosition = $SubscriptionRequest->has_startPosition()
-
Returns 1 if the
startPosition
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_startPosition()
-
Clears the
startPosition
element(s) ofSubscriptionRequest
. - $startPosition = $SubscriptionRequest->startPosition()
-
Returns
startPosition
fromSubscriptionRequest
.startPosition
will be a value of Net::NATS::Streaming::PB::StartPosition. - $SubscriptionRequest->set_startPosition($value)
-
Sets the value of
startPosition
inSubscriptionRequest
tovalue
.value
must be a value of Net::NATS::Streaming::PB::StartPosition. - $has_startSequence = $SubscriptionRequest->has_startSequence()
-
Returns 1 if the
startSequence
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_startSequence()
-
Clears the
startSequence
element(s) ofSubscriptionRequest
. - $startSequence = $SubscriptionRequest->startSequence()
-
Returns
startSequence
fromSubscriptionRequest
.startSequence
will be a 64-bit unsigned integer. - $SubscriptionRequest->set_startSequence($value)
-
Sets the value of
startSequence
inSubscriptionRequest
tovalue
.value
must be a 64-bit unsigned integer. - $has_startTimeDelta = $SubscriptionRequest->has_startTimeDelta()
-
Returns 1 if the
startTimeDelta
element ofSubscriptionRequest
is set, 0 otherwise. - $SubscriptionRequest->clear_startTimeDelta()
-
Clears the
startTimeDelta
element(s) ofSubscriptionRequest
. - $startTimeDelta = $SubscriptionRequest->startTimeDelta()
-
Returns
startTimeDelta
fromSubscriptionRequest
.startTimeDelta
will be a 64-bit signed integer. - $SubscriptionRequest->set_startTimeDelta($value)
-
Sets the value of
startTimeDelta
inSubscriptionRequest
tovalue
.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
intoSubscriptionResponse2
.SubscriptionResponse2
is another instance of the same message type. - $SubscriptionResponse2->copy_from($hashref)
-
Copies the contents of
hashref
intoSubscriptionResponse2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $SubscriptionResponse2->merge_from($SubscriptionResponse1)
-
Merges the contents of
SubscriptionResponse1
intoSubscriptionResponse2
.SubscriptionResponse2
is another instance of the same message type. - $SubscriptionResponse2->merge_from($hashref)
-
Merges the contents of
hashref
intoSubscriptionResponse2
.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
intoSubscriptionResponse
, returning 1 on success and 0 on failure. - $string = $SubscriptionResponse->pack()
-
Serializes
SubscriptionResponse
intostring
. - $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
ormerge_from
methods. - $has_ackInbox = $SubscriptionResponse->has_ackInbox()
-
Returns 1 if the
ackInbox
element ofSubscriptionResponse
is set, 0 otherwise. - $SubscriptionResponse->clear_ackInbox()
-
Clears the
ackInbox
element(s) ofSubscriptionResponse
. - $ackInbox = $SubscriptionResponse->ackInbox()
-
Returns
ackInbox
fromSubscriptionResponse
.ackInbox
will be a string. - $SubscriptionResponse->set_ackInbox($value)
-
Sets the value of
ackInbox
inSubscriptionResponse
tovalue
.value
must be a string. - $has_error = $SubscriptionResponse->has_error()
-
Returns 1 if the
error
element ofSubscriptionResponse
is set, 0 otherwise. - $SubscriptionResponse->clear_error()
-
Clears the
error
element(s) ofSubscriptionResponse
. - $error = $SubscriptionResponse->error()
-
Returns
error
fromSubscriptionResponse
.error
will be a string. - $SubscriptionResponse->set_error($value)
-
Sets the value of
error
inSubscriptionResponse
tovalue
.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
intoUnsubscribeRequest2
.UnsubscribeRequest2
is another instance of the same message type. - $UnsubscribeRequest2->copy_from($hashref)
-
Copies the contents of
hashref
intoUnsubscribeRequest2
.hashref
is a Data::Dumper-style representation of an instance of the message type. - $UnsubscribeRequest2->merge_from($UnsubscribeRequest1)
-
Merges the contents of
UnsubscribeRequest1
intoUnsubscribeRequest2
.UnsubscribeRequest2
is another instance of the same message type. - $UnsubscribeRequest2->merge_from($hashref)
-
Merges the contents of
hashref
intoUnsubscribeRequest2
.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
intoUnsubscribeRequest
, returning 1 on success and 0 on failure. - $string = $UnsubscribeRequest->pack()
-
Serializes
UnsubscribeRequest
intostring
. - $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
ormerge_from
methods. - $has_clientID = $UnsubscribeRequest->has_clientID()
-
Returns 1 if the
clientID
element ofUnsubscribeRequest
is set, 0 otherwise. - $UnsubscribeRequest->clear_clientID()
-
Clears the
clientID
element(s) ofUnsubscribeRequest
. - $clientID = $UnsubscribeRequest->clientID()
-
Returns
clientID
fromUnsubscribeRequest
.clientID
will be a string. - $UnsubscribeRequest->set_clientID($value)
-
Sets the value of
clientID
inUnsubscribeRequest
tovalue
.value
must be a string. - $has_subject = $UnsubscribeRequest->has_subject()
-
Returns 1 if the
subject
element ofUnsubscribeRequest
is set, 0 otherwise. - $UnsubscribeRequest->clear_subject()
-
Clears the
subject
element(s) ofUnsubscribeRequest
. - $subject = $UnsubscribeRequest->subject()
-
Returns
subject
fromUnsubscribeRequest
.subject
will be a string. - $UnsubscribeRequest->set_subject($value)
-
Sets the value of
subject
inUnsubscribeRequest
tovalue
.value
must be a string. - $has_inbox = $UnsubscribeRequest->has_inbox()
-
Returns 1 if the
inbox
element ofUnsubscribeRequest
is set, 0 otherwise. - $UnsubscribeRequest->clear_inbox()
-
Clears the
inbox
element(s) ofUnsubscribeRequest
. - $inbox = $UnsubscribeRequest->inbox()
-
Returns
inbox
fromUnsubscribeRequest
.inbox
will be a string. - $UnsubscribeRequest->set_inbox($value)
-
Sets the value of
inbox
inUnsubscribeRequest
tovalue
.value
must be a string. - $has_durableName = $UnsubscribeRequest->has_durableName()
-
Returns 1 if the
durableName
element ofUnsubscribeRequest
is set, 0 otherwise. - $UnsubscribeRequest->clear_durableName()
-
Clears the
durableName
element(s) ofUnsubscribeRequest
. - $durableName = $UnsubscribeRequest->durableName()
-
Returns
durableName
fromUnsubscribeRequest
.durableName
will be a string. - $UnsubscribeRequest->set_durableName($value)
-
Sets the value of
durableName
inUnsubscribeRequest
tovalue
.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