Net::NATS::Streaming::PB - Perl/XS interface to NATS Streaming Google protobuffers
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>
http://code.google.com/p/protobuf
Net::NATS::Streaming::PB::Ack - Perl/XS interface to Net.NATS.Streaming.PB.Ack
#!/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();
#!/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" }
Net::NATS::Streaming::PB::Ack defines the following classes:
Net::NATS::Streaming::PB::Ack
A wrapper around the Net.NATS.Streaming.PB.Ack message
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.
Copies the contents of Ack1 into Ack2. Ack2 is another instance of the same message type.
Ack1
Ack2
Copies the contents of hashref into Ack2. hashref is a Data::Dumper-style representation of an instance of the message type.
hashref
Merges the contents of Ack1 into Ack2. Ack2 is another instance of the same message type.
Merges the contents of hashref into Ack2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of Ack.
Ack
Returns 1 if Ack has been initialized with data.
Returns a comma-delimited string of initialization errors.
Discards unknown fields from Ack.
Returns a string representation of Ack.
Returns a short string representation of Ack.
Attempts to parse string into Ack, returning 1 on success and 0 on failure.
string
Serializes Ack into string.
Returns the serialized length of Ack.
Returns the defined fields of Ack.
Exports the message to a hashref suitable for use in the copy_from or merge_from methods.
copy_from
merge_from
Returns 1 if the subject element of Ack is set, 0 otherwise.
subject
Clears the subject element(s) of Ack.
Returns subject from Ack. subject will be a string.
Sets the value of subject in Ack to value. value must be a string.
value
Returns 1 if the sequence element of Ack is set, 0 otherwise.
sequence
Clears the sequence element(s) of Ack.
Returns sequence from Ack. sequence will be a 64-bit unsigned integer.
Sets the value of sequence in Ack to value. value must be a 64-bit unsigned integer.
Generated from Net.NATS.Streaming.PB.Ack by the protoc compiler.
Net::NATS::Streaming::PB::CloseRequest - Perl/XS interface to Net.NATS.Streaming.PB.CloseRequest
#!/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();
#!/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" }
Net::NATS::Streaming::PB::CloseRequest defines the following classes:
Net::NATS::Streaming::PB::CloseRequest
A wrapper around the Net.NATS.Streaming.PB.CloseRequest message
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.
Copies the contents of CloseRequest1 into CloseRequest2. CloseRequest2 is another instance of the same message type.
CloseRequest1
CloseRequest2
Copies the contents of hashref into CloseRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of CloseRequest1 into CloseRequest2. CloseRequest2 is another instance of the same message type.
Merges the contents of hashref into CloseRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of CloseRequest.
CloseRequest
Returns 1 if CloseRequest has been initialized with data.
Discards unknown fields from CloseRequest.
Returns a string representation of CloseRequest.
Returns a short string representation of CloseRequest.
Attempts to parse string into CloseRequest, returning 1 on success and 0 on failure.
Serializes CloseRequest into string.
Returns the serialized length of CloseRequest.
Returns the defined fields of CloseRequest.
Returns 1 if the clientID element of CloseRequest is set, 0 otherwise.
clientID
Clears the clientID element(s) of CloseRequest.
Returns clientID from CloseRequest. clientID will be a string.
Sets the value of clientID in CloseRequest to value. value must be a string.
Generated from Net.NATS.Streaming.PB.CloseRequest by the protoc compiler.
Net::NATS::Streaming::PB::CloseResponse - Perl/XS interface to Net.NATS.Streaming.PB.CloseResponse
#!/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();
#!/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" }
Net::NATS::Streaming::PB::CloseResponse defines the following classes:
Net::NATS::Streaming::PB::CloseResponse
A wrapper around the Net.NATS.Streaming.PB.CloseResponse message
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.
Copies the contents of CloseResponse1 into CloseResponse2. CloseResponse2 is another instance of the same message type.
CloseResponse1
CloseResponse2
Copies the contents of hashref into CloseResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of CloseResponse1 into CloseResponse2. CloseResponse2 is another instance of the same message type.
Merges the contents of hashref into CloseResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of CloseResponse.
CloseResponse
Returns 1 if CloseResponse has been initialized with data.
Discards unknown fields from CloseResponse.
Returns a string representation of CloseResponse.
Returns a short string representation of CloseResponse.
Attempts to parse string into CloseResponse, returning 1 on success and 0 on failure.
Serializes CloseResponse into string.
Returns the serialized length of CloseResponse.
Returns the defined fields of CloseResponse.
Returns 1 if the error element of CloseResponse is set, 0 otherwise.
error
Clears the error element(s) of CloseResponse.
Returns error from CloseResponse. error will be a string.
Sets the value of error in CloseResponse to value. value must be a string.
Generated from Net.NATS.Streaming.PB.CloseResponse by the protoc compiler.
Net::NATS::Streaming::PB::ConnectRequest - Perl/XS interface to Net.NATS.Streaming.PB.ConnectRequest
#!/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();
#!/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" }
Net::NATS::Streaming::PB::ConnectRequest defines the following classes:
Net::NATS::Streaming::PB::ConnectRequest
A wrapper around the Net.NATS.Streaming.PB.ConnectRequest message
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.
Copies the contents of ConnectRequest1 into ConnectRequest2. ConnectRequest2 is another instance of the same message type.
ConnectRequest1
ConnectRequest2
Copies the contents of hashref into ConnectRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of ConnectRequest1 into ConnectRequest2. ConnectRequest2 is another instance of the same message type.
Merges the contents of hashref into ConnectRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of ConnectRequest.
ConnectRequest
Returns 1 if ConnectRequest has been initialized with data.
Discards unknown fields from ConnectRequest.
Returns a string representation of ConnectRequest.
Returns a short string representation of ConnectRequest.
Attempts to parse string into ConnectRequest, returning 1 on success and 0 on failure.
Serializes ConnectRequest into string.
Returns the serialized length of ConnectRequest.
Returns the defined fields of ConnectRequest.
Returns 1 if the clientID element of ConnectRequest is set, 0 otherwise.
Clears the clientID element(s) of ConnectRequest.
Returns clientID from ConnectRequest. clientID will be a string.
Sets the value of clientID in ConnectRequest to value. value must be a string.
Returns 1 if the heartbeatInbox element of ConnectRequest is set, 0 otherwise.
heartbeatInbox
Clears the heartbeatInbox element(s) of ConnectRequest.
Returns heartbeatInbox from ConnectRequest. heartbeatInbox will be a string.
Sets the value of heartbeatInbox in ConnectRequest to value. value must be a string.
Generated from Net.NATS.Streaming.PB.ConnectRequest by the protoc compiler.
Net::NATS::Streaming::PB::ConnectResponse - Perl/XS interface to Net.NATS.Streaming.PB.ConnectResponse
#!/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();
#!/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" }
Net::NATS::Streaming::PB::ConnectResponse defines the following classes:
Net::NATS::Streaming::PB::ConnectResponse
A wrapper around the Net.NATS.Streaming.PB.ConnectResponse message
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.
Copies the contents of ConnectResponse1 into ConnectResponse2. ConnectResponse2 is another instance of the same message type.
ConnectResponse1
ConnectResponse2
Copies the contents of hashref into ConnectResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of ConnectResponse1 into ConnectResponse2. ConnectResponse2 is another instance of the same message type.
Merges the contents of hashref into ConnectResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of ConnectResponse.
ConnectResponse
Returns 1 if ConnectResponse has been initialized with data.
Discards unknown fields from ConnectResponse.
Returns a string representation of ConnectResponse.
Returns a short string representation of ConnectResponse.
Attempts to parse string into ConnectResponse, returning 1 on success and 0 on failure.
Serializes ConnectResponse into string.
Returns the serialized length of ConnectResponse.
Returns the defined fields of ConnectResponse.
Returns 1 if the pubPrefix element of ConnectResponse is set, 0 otherwise.
pubPrefix
Clears the pubPrefix element(s) of ConnectResponse.
Returns pubPrefix from ConnectResponse. pubPrefix will be a string.
Sets the value of pubPrefix in ConnectResponse to value. value must be a string.
Returns 1 if the subRequests element of ConnectResponse is set, 0 otherwise.
subRequests
Clears the subRequests element(s) of ConnectResponse.
Returns subRequests from ConnectResponse. subRequests will be a string.
Sets the value of subRequests in ConnectResponse to value. value must be a string.
Returns 1 if the unsubRequests element of ConnectResponse is set, 0 otherwise.
unsubRequests
Clears the unsubRequests element(s) of ConnectResponse.
Returns unsubRequests from ConnectResponse. unsubRequests will be a string.
Sets the value of unsubRequests in ConnectResponse to value. value must be a string.
Returns 1 if the closeRequests element of ConnectResponse is set, 0 otherwise.
closeRequests
Clears the closeRequests element(s) of ConnectResponse.
Returns closeRequests from ConnectResponse. closeRequests will be a string.
Sets the value of closeRequests in ConnectResponse to value. value must be a string.
Returns 1 if the error element of ConnectResponse is set, 0 otherwise.
Clears the error element(s) of ConnectResponse.
Returns error from ConnectResponse. error will be a string.
Sets the value of error in ConnectResponse to value. value must be a string.
Returns 1 if the subCloseRequests element of ConnectResponse is set, 0 otherwise.
subCloseRequests
Clears the subCloseRequests element(s) of ConnectResponse.
Returns subCloseRequests from ConnectResponse. subCloseRequests will be a string.
Sets the value of subCloseRequests in ConnectResponse to value. value must be a string.
Returns 1 if the publicKey element of ConnectResponse is set, 0 otherwise.
publicKey
Clears the publicKey element(s) of ConnectResponse.
Returns publicKey from ConnectResponse. publicKey will be a string.
Sets the value of publicKey in ConnectResponse to value. value must be a string.
Generated from Net.NATS.Streaming.PB.ConnectResponse by the protoc compiler.
Net::NATS::Streaming::PB::MsgProto - Perl/XS interface to Net.NATS.Streaming.PB.MsgProto
#!/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();
#!/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" }
Net::NATS::Streaming::PB::MsgProto defines the following classes:
Net::NATS::Streaming::PB::MsgProto
A wrapper around the Net.NATS.Streaming.PB.MsgProto message
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.
Copies the contents of MsgProto1 into MsgProto2. MsgProto2 is another instance of the same message type.
MsgProto1
MsgProto2
Copies the contents of hashref into MsgProto2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of MsgProto1 into MsgProto2. MsgProto2 is another instance of the same message type.
Merges the contents of hashref into MsgProto2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of MsgProto.
MsgProto
Returns 1 if MsgProto has been initialized with data.
Discards unknown fields from MsgProto.
Returns a string representation of MsgProto.
Returns a short string representation of MsgProto.
Attempts to parse string into MsgProto, returning 1 on success and 0 on failure.
Serializes MsgProto into string.
Returns the serialized length of MsgProto.
Returns the defined fields of MsgProto.
Returns 1 if the sequence element of MsgProto is set, 0 otherwise.
Clears the sequence element(s) of MsgProto.
Returns sequence from MsgProto. sequence will be a 64-bit unsigned integer.
Sets the value of sequence in MsgProto to value. value must be a 64-bit unsigned integer.
Returns 1 if the subject element of MsgProto is set, 0 otherwise.
Clears the subject element(s) of MsgProto.
Returns subject from MsgProto. subject will be a string.
Sets the value of subject in MsgProto to value. value must be a string.
Returns 1 if the reply element of MsgProto is set, 0 otherwise.
reply
Clears the reply element(s) of MsgProto.
Returns reply from MsgProto. reply will be a string.
Sets the value of reply in MsgProto to value. value must be a string.
Returns 1 if the data element of MsgProto is set, 0 otherwise.
data
Clears the data element(s) of MsgProto.
Returns data from MsgProto. data will be a string.
Sets the value of data in MsgProto to value. value must be a string.
Returns 1 if the timestamp element of MsgProto is set, 0 otherwise.
timestamp
Clears the timestamp element(s) of MsgProto.
Returns timestamp from MsgProto. timestamp will be a 64-bit signed integer.
Sets the value of timestamp in MsgProto to value. value must be a 64-bit signed integer.
Returns 1 if the redelivered element of MsgProto is set, 0 otherwise.
redelivered
Clears the redelivered element(s) of MsgProto.
Returns redelivered from MsgProto. redelivered will be a Boolean value.
Sets the value of redelivered in MsgProto to value. value must be a Boolean value.
Returns 1 if the CRC32 element of MsgProto is set, 0 otherwise.
CRC32
Clears the CRC32 element(s) of MsgProto.
Returns CRC32 from MsgProto. CRC32 will be a 32-bit unsigned integer.
Sets the value of CRC32 in MsgProto to value. value must be a 32-bit unsigned integer.
Generated from Net.NATS.Streaming.PB.MsgProto by the protoc compiler.
Net::NATS::Streaming::PB::PubAck - Perl/XS interface to Net.NATS.Streaming.PB.PubAck
#!/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();
#!/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" }
Net::NATS::Streaming::PB::PubAck defines the following classes:
Net::NATS::Streaming::PB::PubAck
A wrapper around the Net.NATS.Streaming.PB.PubAck message
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.
Copies the contents of PubAck1 into PubAck2. PubAck2 is another instance of the same message type.
PubAck1
PubAck2
Copies the contents of hashref into PubAck2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of PubAck1 into PubAck2. PubAck2 is another instance of the same message type.
Merges the contents of hashref into PubAck2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of PubAck.
PubAck
Returns 1 if PubAck has been initialized with data.
Discards unknown fields from PubAck.
Returns a string representation of PubAck.
Returns a short string representation of PubAck.
Attempts to parse string into PubAck, returning 1 on success and 0 on failure.
Serializes PubAck into string.
Returns the serialized length of PubAck.
Returns the defined fields of PubAck.
Returns 1 if the guid element of PubAck is set, 0 otherwise.
guid
Clears the guid element(s) of PubAck.
Returns guid from PubAck. guid will be a string.
Sets the value of guid in PubAck to value. value must be a string.
Returns 1 if the error element of PubAck is set, 0 otherwise.
Clears the error element(s) of PubAck.
Returns error from PubAck. error will be a string.
Sets the value of error in PubAck to value. value must be a string.
Generated from Net.NATS.Streaming.PB.PubAck by the protoc compiler.
Net::NATS::Streaming::PB::PubMsg - Perl/XS interface to Net.NATS.Streaming.PB.PubMsg
#!/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();
#!/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" }
Net::NATS::Streaming::PB::PubMsg defines the following classes:
Net::NATS::Streaming::PB::PubMsg
A wrapper around the Net.NATS.Streaming.PB.PubMsg message
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.
Copies the contents of PubMsg1 into PubMsg2. PubMsg2 is another instance of the same message type.
PubMsg1
PubMsg2
Copies the contents of hashref into PubMsg2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of PubMsg1 into PubMsg2. PubMsg2 is another instance of the same message type.
Merges the contents of hashref into PubMsg2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of PubMsg.
PubMsg
Returns 1 if PubMsg has been initialized with data.
Discards unknown fields from PubMsg.
Returns a string representation of PubMsg.
Returns a short string representation of PubMsg.
Attempts to parse string into PubMsg, returning 1 on success and 0 on failure.
Serializes PubMsg into string.
Returns the serialized length of PubMsg.
Returns the defined fields of PubMsg.
Returns 1 if the clientID element of PubMsg is set, 0 otherwise.
Clears the clientID element(s) of PubMsg.
Returns clientID from PubMsg. clientID will be a string.
Sets the value of clientID in PubMsg to value. value must be a string.
Returns 1 if the guid element of PubMsg is set, 0 otherwise.
Clears the guid element(s) of PubMsg.
Returns guid from PubMsg. guid will be a string.
Sets the value of guid in PubMsg to value. value must be a string.
Returns 1 if the subject element of PubMsg is set, 0 otherwise.
Clears the subject element(s) of PubMsg.
Returns subject from PubMsg. subject will be a string.
Sets the value of subject in PubMsg to value. value must be a string.
Returns 1 if the reply element of PubMsg is set, 0 otherwise.
Clears the reply element(s) of PubMsg.
Returns reply from PubMsg. reply will be a string.
Sets the value of reply in PubMsg to value. value must be a string.
Returns 1 if the data element of PubMsg is set, 0 otherwise.
Clears the data element(s) of PubMsg.
Returns data from PubMsg. data will be a string.
Sets the value of data in PubMsg to value. value must be a string.
Returns 1 if the sha256 element of PubMsg is set, 0 otherwise.
sha256
Clears the sha256 element(s) of PubMsg.
Returns sha256 from PubMsg. sha256 will be a string.
Sets the value of sha256 in PubMsg to value. value must be a string.
Generated from Net.NATS.Streaming.PB.PubMsg by the protoc compiler.
Net::NATS::Streaming::PB::SubscriptionRequest - Perl/XS interface to Net.NATS.Streaming.PB.SubscriptionRequest
#!/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();
#!/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" }
Net::NATS::Streaming::PB::SubscriptionRequest defines the following classes:
Net::NATS::Streaming::PB::SubscriptionRequest
A wrapper around the Net.NATS.Streaming.PB.SubscriptionRequest message
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.
Copies the contents of SubscriptionRequest1 into SubscriptionRequest2. SubscriptionRequest2 is another instance of the same message type.
SubscriptionRequest1
SubscriptionRequest2
Copies the contents of hashref into SubscriptionRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of SubscriptionRequest1 into SubscriptionRequest2. SubscriptionRequest2 is another instance of the same message type.
Merges the contents of hashref into SubscriptionRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of SubscriptionRequest.
SubscriptionRequest
Returns 1 if SubscriptionRequest has been initialized with data.
Discards unknown fields from SubscriptionRequest.
Returns a string representation of SubscriptionRequest.
Returns a short string representation of SubscriptionRequest.
Attempts to parse string into SubscriptionRequest, returning 1 on success and 0 on failure.
Serializes SubscriptionRequest into string.
Returns the serialized length of SubscriptionRequest.
Returns the defined fields of SubscriptionRequest.
Returns 1 if the clientID element of SubscriptionRequest is set, 0 otherwise.
Clears the clientID element(s) of SubscriptionRequest.
Returns clientID from SubscriptionRequest. clientID will be a string.
Sets the value of clientID in SubscriptionRequest to value. value must be a string.
Returns 1 if the subject element of SubscriptionRequest is set, 0 otherwise.
Clears the subject element(s) of SubscriptionRequest.
Returns subject from SubscriptionRequest. subject will be a string.
Sets the value of subject in SubscriptionRequest to value. value must be a string.
Returns 1 if the qGroup element of SubscriptionRequest is set, 0 otherwise.
qGroup
Clears the qGroup element(s) of SubscriptionRequest.
Returns qGroup from SubscriptionRequest. qGroup will be a string.
Sets the value of qGroup in SubscriptionRequest to value. value must be a string.
Returns 1 if the inbox element of SubscriptionRequest is set, 0 otherwise.
inbox
Clears the inbox element(s) of SubscriptionRequest.
Returns inbox from SubscriptionRequest. inbox will be a string.
Sets the value of inbox in SubscriptionRequest to value. value must be a string.
Returns 1 if the maxInFlight element of SubscriptionRequest is set, 0 otherwise.
maxInFlight
Clears the maxInFlight element(s) of SubscriptionRequest.
Returns maxInFlight from SubscriptionRequest. maxInFlight will be a 32-bit signed integer.
Sets the value of maxInFlight in SubscriptionRequest to value. value must be a 32-bit signed integer.
Returns 1 if the ackWaitInSecs element of SubscriptionRequest is set, 0 otherwise.
ackWaitInSecs
Clears the ackWaitInSecs element(s) of SubscriptionRequest.
Returns ackWaitInSecs from SubscriptionRequest. ackWaitInSecs will be a 32-bit signed integer.
Sets the value of ackWaitInSecs in SubscriptionRequest to value. value must be a 32-bit signed integer.
Returns 1 if the durableName element of SubscriptionRequest is set, 0 otherwise.
durableName
Clears the durableName element(s) of SubscriptionRequest.
Returns durableName from SubscriptionRequest. durableName will be a string.
Sets the value of durableName in SubscriptionRequest to value. value must be a string.
Returns 1 if the startPosition element of SubscriptionRequest is set, 0 otherwise.
startPosition
Clears the startPosition element(s) of SubscriptionRequest.
Returns startPosition from SubscriptionRequest. startPosition will be a value of Net::NATS::Streaming::PB::StartPosition.
Sets the value of startPosition in SubscriptionRequest to value. value must be a value of Net::NATS::Streaming::PB::StartPosition.
Returns 1 if the startSequence element of SubscriptionRequest is set, 0 otherwise.
startSequence
Clears the startSequence element(s) of SubscriptionRequest.
Returns startSequence from SubscriptionRequest. startSequence will be a 64-bit unsigned integer.
Sets the value of startSequence in SubscriptionRequest to value. value must be a 64-bit unsigned integer.
Returns 1 if the startTimeDelta element of SubscriptionRequest is set, 0 otherwise.
startTimeDelta
Clears the startTimeDelta element(s) of SubscriptionRequest.
Returns startTimeDelta from SubscriptionRequest. startTimeDelta will be a 64-bit signed integer.
Sets the value of startTimeDelta in SubscriptionRequest to value. value must be a 64-bit signed integer.
Generated from Net.NATS.Streaming.PB.SubscriptionRequest by the protoc compiler.
Net::NATS::Streaming::PB::SubscriptionResponse - Perl/XS interface to Net.NATS.Streaming.PB.SubscriptionResponse
#!/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();
#!/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" }
Net::NATS::Streaming::PB::SubscriptionResponse defines the following classes:
Net::NATS::Streaming::PB::SubscriptionResponse
A wrapper around the Net.NATS.Streaming.PB.SubscriptionResponse message
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.
Copies the contents of SubscriptionResponse1 into SubscriptionResponse2. SubscriptionResponse2 is another instance of the same message type.
SubscriptionResponse1
SubscriptionResponse2
Copies the contents of hashref into SubscriptionResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of SubscriptionResponse1 into SubscriptionResponse2. SubscriptionResponse2 is another instance of the same message type.
Merges the contents of hashref into SubscriptionResponse2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of SubscriptionResponse.
SubscriptionResponse
Returns 1 if SubscriptionResponse has been initialized with data.
Discards unknown fields from SubscriptionResponse.
Returns a string representation of SubscriptionResponse.
Returns a short string representation of SubscriptionResponse.
Attempts to parse string into SubscriptionResponse, returning 1 on success and 0 on failure.
Serializes SubscriptionResponse into string.
Returns the serialized length of SubscriptionResponse.
Returns the defined fields of SubscriptionResponse.
Returns 1 if the ackInbox element of SubscriptionResponse is set, 0 otherwise.
ackInbox
Clears the ackInbox element(s) of SubscriptionResponse.
Returns ackInbox from SubscriptionResponse. ackInbox will be a string.
Sets the value of ackInbox in SubscriptionResponse to value. value must be a string.
Returns 1 if the error element of SubscriptionResponse is set, 0 otherwise.
Clears the error element(s) of SubscriptionResponse.
Returns error from SubscriptionResponse. error will be a string.
Sets the value of error in SubscriptionResponse to value. value must be a string.
Generated from Net.NATS.Streaming.PB.SubscriptionResponse by the protoc compiler.
Net::NATS::Streaming::PB::UnsubscribeRequest - Perl/XS interface to Net.NATS.Streaming.PB.UnsubscribeRequest
#!/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();
#!/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" }
Net::NATS::Streaming::PB::UnsubscribeRequest defines the following classes:
Net::NATS::Streaming::PB::UnsubscribeRequest
A wrapper around the Net.NATS.Streaming.PB.UnsubscribeRequest message
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.
Copies the contents of UnsubscribeRequest1 into UnsubscribeRequest2. UnsubscribeRequest2 is another instance of the same message type.
UnsubscribeRequest1
UnsubscribeRequest2
Copies the contents of hashref into UnsubscribeRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Merges the contents of UnsubscribeRequest1 into UnsubscribeRequest2. UnsubscribeRequest2 is another instance of the same message type.
Merges the contents of hashref into UnsubscribeRequest2. hashref is a Data::Dumper-style representation of an instance of the message type.
Clears the contents of UnsubscribeRequest.
UnsubscribeRequest
Returns 1 if UnsubscribeRequest has been initialized with data.
Discards unknown fields from UnsubscribeRequest.
Returns a string representation of UnsubscribeRequest.
Returns a short string representation of UnsubscribeRequest.
Attempts to parse string into UnsubscribeRequest, returning 1 on success and 0 on failure.
Serializes UnsubscribeRequest into string.
Returns the serialized length of UnsubscribeRequest.
Returns the defined fields of UnsubscribeRequest.
Returns 1 if the clientID element of UnsubscribeRequest is set, 0 otherwise.
Clears the clientID element(s) of UnsubscribeRequest.
Returns clientID from UnsubscribeRequest. clientID will be a string.
Sets the value of clientID in UnsubscribeRequest to value. value must be a string.
Returns 1 if the subject element of UnsubscribeRequest is set, 0 otherwise.
Clears the subject element(s) of UnsubscribeRequest.
Returns subject from UnsubscribeRequest. subject will be a string.
Sets the value of subject in UnsubscribeRequest to value. value must be a string.
Returns 1 if the inbox element of UnsubscribeRequest is set, 0 otherwise.
Clears the inbox element(s) of UnsubscribeRequest.
Returns inbox from UnsubscribeRequest. inbox will be a string.
Sets the value of inbox in UnsubscribeRequest to value. value must be a string.
Returns 1 if the durableName element of UnsubscribeRequest is set, 0 otherwise.
Clears the durableName element(s) of UnsubscribeRequest.
Returns durableName from UnsubscribeRequest. durableName will be a string.
Sets the value of durableName in UnsubscribeRequest to value. value must be a string.
Generated from Net.NATS.Streaming.PB.UnsubscribeRequest by the protoc compiler.
To install Net::NATS::Streaming::PB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::NATS::Streaming::PB
CPAN shell
perl -MCPAN -e shell install Net::NATS::Streaming::PB
For more information on module installation, please visit the detailed CPAN module installation guide.