#  google.protobuf.empty_pb2  ¶

Generated protocol buffer code.

_class_ ` google.protobuf.empty_pb2. ` ` Empty ` (  _**kwargs_ )  ¶

    

` ByteSize ` (  )  ¶

    

` Clear ` (  )  ¶

    

` ClearExtension ` (  _extension_handle_ )  ¶

    

Clears the contents of a given extension.

Parameters  :

    

**extension_handle** – The handle for the extension to clear.

` ClearField ` (  _field_name_ )  ¶

    

` CopyFrom ` (  _other_msg_ )  ¶

    

Copies the content of the specified message into the current message.

The method clears the current message and then merges the specified message
using MergeFrom.

Parameters  :

    

**other_msg** ( [ _Message_ ](message.html#google.protobuf.message.Message
"google.protobuf.message.Message") ) – A message to copy into the current one.

` DESCRIPTOR ` _= <google.protobuf.descriptor.Descriptor object> _ ¶

    

` DiscardUnknownFields ` (  )  ¶

    

` FindInitializationErrors ` (  )  ¶

    

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”.

_static_ ` FromString ` (  _s_ )  ¶

    

` HasExtension ` (  _extension_handle_ )  ¶

    

Checks if a certain extension is present for this message.

Extensions are retrieved using the ` Extensions  ` mapping (if present).

Parameters  :

    

**extension_handle** – The handle for the extension to check.

Returns  :

    

Whether the extension is present for this message.

Return type  :

    

[ bool ](https://docs.python.org/3/library/functions.html#bool "\(in Python
v3.10\)")

Raises  :

    

[ **KeyError** ](https://docs.python.org/3/library/exceptions.html#KeyError
"\(in Python v3.10\)") – if the extension is repeated. Similar to repeated
fields, there is no separate notion of presence: a “not present” repeated
extension is an empty list.

` HasField ` (  _field_name_ )  ¶

    

` IsInitialized ` (  _errors=None_ )  ¶

    

Checks if all required fields of a message are set.

Parameters  :

    

**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.

` ListFields ` (  )  ¶

    

` MergeFrom ` (  _msg_ )  ¶

    

` MergeFromString ` (  _serialized_ )  ¶

    

` ParseFromString ` (  _serialized_ )  ¶

    

Parse serialized protocol buffer data into this message.

Like  ` MergeFromString()  ` , except we clear the object first.

Raises  :

    

**message.DecodeError if the input cannot be parsed.** –

_static_ ` RegisterExtension ` (  _extension_handle_ )  ¶

    

` SerializePartialToString ` (  _**kwargs_ )  ¶

    

` SerializeToString ` (  _**kwargs_ )  ¶

    

` SetInParent ` (  )  ¶

    

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

` UnknownFields ` (  )  ¶

    

` WhichOneof ` (  _oneof_name_ )  ¶

    

Returns the name of the currently set field inside a oneof, or None.

###  [ Table of Contents ](../../index.html)

  * [ google.protobuf ](../protobuf.html)
  * [ google.protobuf.any_pb2 ](any_pb2.html)
  * [ google.protobuf.descriptor ](descriptor.html)
  * [ google.protobuf.descriptor_database ](descriptor_database.html)
  * [ google.protobuf.descriptor_pb2 ](descriptor_pb2.html)
  * [ google.protobuf.descriptor_pool ](descriptor_pool.html)
  * [ google.protobuf.duration_pb2 ](duration_pb2.html)
  * google.protobuf.empty_pb2 
  * [ google.protobuf.field_mask_pb2 ](field_mask_pb2.html)
  * [ google.protobuf.internal.containers ](internal/containers.html)
  * [ google.protobuf.json_format ](json_format.html)
  * [ google.protobuf.message ](message.html)
  * [ google.protobuf.message_factory ](message_factory.html)
  * [ google.protobuf.proto_builder ](proto_builder.html)
  * [ google.protobuf.reflection ](reflection.html)
  * [ google.protobuf.service ](service.html)
  * [ goog