Module ProMCStat_pb2 :: Class ProMCStat
[hide private]
[frames] | no frames]

Class ProMCStat

source code

                     object --+    
                              |    
google.protobuf.message.Message --+
                                  |
                                 ProMCStat

Nested Classes [hide private]
  __metaclass__
Metaclass for protocol message classes created at runtime from Descriptors.
  ProcessData
Instance Methods [hide private]
 
ByteSize(self)
Returns the serialized size of this message.
 
Clear(self)
Clears all data that was set in the message.
 
ClearField(self, field_name)
 
FindInitializationErrors(self)
Finds required fields which are not initialized.
 
HasField(self, field_name)
Checks if a certain field is set for the message.
 
IsInitialized(self, errors=None)
Checks if all required fields of a message are set.
 
ListFields(self)
Returns a list of (FieldDescriptor, value) tuples for all fields in the message which are not empty.
 
MergeFrom(self, msg)
Merges the contents of the specified message into current message.
 
MergeFromString(self, serialized)
Merges serialized protocol buffer data into this message.
 
SerializePartialToString(self)
Serializes the protocol message to a binary string.
 
SerializeToString(self)
Serializes the protocol message to a binary string.
 
SetInParent(self)
Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.
 
_InternalParse(self, buffer, pos, end)
 
_InternalSerialize(self, write_bytes)
 
_Modified(self)
Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.
 
_SetListener(self, listener)
Internal method used by the protocol message implementation.
 
__eq__(self, other)
Recursively compares two messages by value and structure.
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
Outputs a human-readable representation of the message.
 
__unicode__(self)
Outputs a human-readable representation of the message.

Inherited from google.protobuf.message.Message: ClearExtension, CopyFrom, HasExtension, ParseFromString, __deepcopy__, __getstate__, __hash__, __ne__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
FromString(s) source code
 
RegisterExtension(extension_handle) source code
Class Variables [hide private]
  DESCRIPTOR = _descriptor.Descriptor(name= 'ProMCStat', full_na...
  CROSS_SECTION_ACCUMULATED_FIELD_NUMBER = 3
  CROSS_SECTION_ERROR_ACCUMULATED_FIELD_NUMBER = 4
  LUMINOSITY_ACCUMULATED_FIELD_NUMBER = 5
  NACCEPTED_FIELD_NUMBER = 8
  NEVENTS_FAILED_FIELD_NUMBER = 2
  NEVENTS_REQUESTED_FIELD_NUMBER = 1
  NSELECTED_FIELD_NUMBER = 7
  NTRIED_FIELD_NUMBER = 6
  PROCESSDATA_FIELD_NUMBER = 10
  _decoders_by_tag = {'\x08': <function DecodeField at 0x1a4d1b8...
  _extensions_by_name = {}
  _extensions_by_number = {}
Properties [hide private]
  _cached_byte_size
  _cached_byte_size_dirty
  _fields
  _is_present_in_parent
  _listener
  _listener_for_children
  _unknown_fields
  cross_section_accumulated
Magic attribute generated for "cross_section_accumulated" proto field.
  cross_section_error_accumulated
Magic attribute generated for "cross_section_error_accumulated" proto field.
  luminosity_accumulated
Magic attribute generated for "luminosity_accumulated" proto field.
  nAccepted
Magic attribute generated for "nAccepted" proto field.
  nSelected
Magic attribute generated for "nSelected" proto field.
  nTried
Magic attribute generated for "nTried" proto field.
  nevents_failed
Magic attribute generated for "nevents_failed" proto field.
  nevents_requested
Magic attribute generated for "nevents_requested" proto field.
  processData
Magic attribute generated for "processData" proto field.

Inherited from object: __class__

Method Details [hide private]

ByteSize(self)

 

Returns the serialized size of this message. Recursively calls ByteSize() on all contained messages.

Overrides: google.protobuf.message.Message.ByteSize
(inherited documentation)

Clear(self)

 

Clears all data that was set in the message.

Overrides: google.protobuf.message.Message.Clear
(inherited documentation)

ClearField(self, field_name)

 
Overrides: google.protobuf.message.Message.ClearField

FindInitializationErrors(self)

 
Finds required fields which are not initialized.

Returns:
  A list of strings.  Each string is a path to an uninitialized field from
  the top-level message, e.g. "foo.bar[5].baz".

HasField(self, field_name)

 

Checks if a certain field is set for the message. Note if the field_name is not defined in the message descriptor, ValueError will be raised.

Overrides: google.protobuf.message.Message.HasField
(inherited documentation)

IsInitialized(self, errors=None)

 
Checks if all required fields of a message are set.

Args:
  errors:  A list which, if provided, will be populated with the field
           paths of all missing required fields.

Returns:
  True iff the specified message has all required fields set.

Overrides: google.protobuf.message.Message.IsInitialized

ListFields(self)

 

Returns a list of (FieldDescriptor, value) tuples for all fields in the message which are not empty. A singular field is non-empty if HasField() would return true, and a repeated field is non-empty if it contains at least one element. The fields are ordered by field number

Overrides: google.protobuf.message.Message.ListFields
(inherited documentation)

MergeFrom(self, msg)

 
Merges the contents of the specified message into current message.

This method merges the contents of the specified message into the current
message. Singular fields that are set in the specified message overwrite
the corresponding fields in the current message. Repeated fields are
appended. Singular sub-messages and groups are recursively merged.

Args:
  other_msg: Message to merge into the current message.

Overrides: google.protobuf.message.Message.MergeFrom
(inherited documentation)

MergeFromString(self, serialized)

 
Merges serialized protocol buffer data into this message.

When we find a field in |serialized| that is already present
in this message:
  - If it's a "repeated" field, we append to the end of our list.
  - Else, if it's a scalar, we overwrite our field.
  - Else, (it's a nonrepeated composite), we recursively merge
    into the existing composite.

TODO(robinson): Document handling of unknown fields.

Args:
  serialized: Any object that allows us to call buffer(serialized)
    to access a string of bytes using the buffer interface.

TODO(robinson): When we switch to a helper, this will return None.

Returns:
  The number of bytes read from |serialized|.
  For non-group messages, this will always be len(serialized),
  but for messages which are actually groups, this will
  generally be less than len(serialized), since we must
  stop when we reach an END_GROUP tag.  Note that if
  we *do* stop because of an END_GROUP tag, the number
  of bytes returned does not include the bytes
  for the END_GROUP tag information.

Overrides: google.protobuf.message.Message.MergeFromString
(inherited documentation)

SerializePartialToString(self)

 
Serializes the protocol message to a binary string.

This method is similar to SerializeToString but doesn't check if the
message is initialized.

Returns:
  A string representation of the partial message.

Overrides: google.protobuf.message.Message.SerializePartialToString
(inherited documentation)

SerializeToString(self)

 
Serializes the protocol message to a binary string.

Returns:
  A binary string representation of the message if all of the required
  fields in the message are set (i.e. the message is initialized).

Raises:
  message.EncodeError if the message isn't initialized.

Overrides: google.protobuf.message.Message.SerializeToString
(inherited documentation)

SetInParent(self)

 

Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.

Overrides: google.protobuf.message.Message.SetInParent

_SetListener(self, listener)

 

Internal method used by the protocol message implementation. Clients should not call this directly.

Sets a listener that this message will call on certain state transitions.

The purpose of this method is to register back-edges from children to parents at runtime, for the purpose of setting "has" bits and byte-size-dirty bits in the parent and ancestor objects whenever a child or descendant object is modified.

If the client wants to disconnect this Message from the object tree, she explicitly sets callback to None.

If message_listener is None, unregisters any existing listener. Otherwise, message_listener must implement the MessageListener interface in internal/message_listener.py, and we discard any listener registered via a previous _SetListener() call.

Overrides: google.protobuf.message.Message._SetListener
(inherited documentation)

__eq__(self, other)
(Equality operator)

 

Recursively compares two messages by value and structure.

Overrides: google.protobuf.message.Message.__eq__
(inherited documentation)

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

Outputs a human-readable representation of the message.

Overrides: object.__str__
(inherited documentation)

__unicode__(self)

 

Outputs a human-readable representation of the message.

Overrides: google.protobuf.message.Message.__unicode__
(inherited documentation)

Class Variable Details [hide private]

DESCRIPTOR

Value:
_descriptor.Descriptor(name= 'ProMCStat', full_name= 'promc.ProMCStat'\
, filename= None, file= DESCRIPTOR, containing_type= None, fields= [_d\
escriptor.FieldDescriptor(name= 'nevents_requested', full_name= 'promc\
.ProMCStat.nevents_requested', index= 0, number= 1, type= 5, cpp_type=\
 1, label= 1, has_default_value= False, default_value= 0, message_type\
= None, enum_type= None, containing_type= None, is_extension= False, e\
xtension_scope= None, options= None), _descriptor.FieldDescriptor(name\
= 'nevents_failed', full_name= 'promc.ProMCStat.nevents_failed', index\
...

_decoders_by_tag

Value:
{'\x08': <function DecodeField at 0x1a4d1b8>,
 '\x10': <function DecodeField at 0x1a4d398>,
 '\x19': <function DecodeField at 0x1a4d578>,
 '!': <function DecodeField at 0x1a4d758>,
 ')': <function DecodeField at 0x1a4d938>,
 '0': <function DecodeField at 0x1a4db18>,
 '8': <function DecodeField at 0x1a4dcf8>,
 '@': <function DecodeField at 0x1a4ded8>,
...

Property Details [hide private]

cross_section_accumulated

Magic attribute generated for "cross_section_accumulated" proto field.

Get Method:
unreachable.getter(self) - Getter for cross_section_accumulated.
Set Method:
unreachable.setter(self, new_value) - Setter for cross_section_accumulated.

cross_section_error_accumulated

Magic attribute generated for "cross_section_error_accumulated" proto field.

Get Method:
unreachable.getter(self) - Getter for cross_section_error_accumulated.
Set Method:
unreachable.setter(self, new_value) - Setter for cross_section_error_accumulated.

luminosity_accumulated

Magic attribute generated for "luminosity_accumulated" proto field.

Get Method:
unreachable.getter(self) - Getter for luminosity_accumulated.
Set Method:
unreachable.setter(self, new_value) - Setter for luminosity_accumulated.

nAccepted

Magic attribute generated for "nAccepted" proto field.

Get Method:
unreachable.getter(self) - Getter for nAccepted.
Set Method:
unreachable.setter(self, new_value) - Setter for nAccepted.

nSelected

Magic attribute generated for "nSelected" proto field.

Get Method:
unreachable.getter(self) - Getter for nSelected.
Set Method:
unreachable.setter(self, new_value) - Setter for nSelected.

nTried

Magic attribute generated for "nTried" proto field.

Get Method:
unreachable.getter(self) - Getter for nTried.
Set Method:
unreachable.setter(self, new_value) - Setter for nTried.

nevents_failed

Magic attribute generated for "nevents_failed" proto field.

Get Method:
unreachable.getter(self) - Getter for nevents_failed.
Set Method:
unreachable.setter(self, new_value) - Setter for nevents_failed.

nevents_requested

Magic attribute generated for "nevents_requested" proto field.

Get Method:
unreachable.getter(self) - Getter for nevents_requested.
Set Method:
unreachable.setter(self, new_value) - Setter for nevents_requested.

processData

Magic attribute generated for "processData" proto field.

Get Method:
unreachable.getter(self) - Getter for processData.
Set Method:
unreachable.setter(self, new_value)