parameters: (self, mask1, mask2)
docstring: Intersects mask1 and mask2 into this FieldMask.
docstring_summary: Intersects mask1 and mask2 into this FieldMask.
docstring_tokens: Intersects mask1 and mask2 into this FieldMask .
function: def Intersect(self, mask1, mask2):
      """Intersects mask1 and mask2 into this FieldMask."""
      _CheckFieldMaskMessage(mask1)
      _CheckFieldMaskMessage(mask2)
      tree = _FieldMaskTree(mask1)
      intersection = _FieldMaskTree()
      for path in mask2.paths:
        tree.IntersectPath(path, intersection)
      intersection.ToFieldMask(self)
function_tokens: def Intersect ( self , mask1 , mask2 ) : _CheckFieldMaskMessage ( mask1 ) _CheckFieldMaskMessage ( mask2 ) tree = _FieldMaskTree ( mask1 ) intersection = _FieldMaskTree ( ) for path in mask2 . paths : tree . IntersectPath ( path , intersection ) intersection . ToFieldMask ( self )