tools/traffic_annotation/scripts/update_annotations_doc.py
def _create_group_or_sender_request(self, text, index, placeholder_type):
    """Returns the request for inserting the group or sender placeholders using
    the styling of |generator_utils.PLACEHOLDER_STYLES|.
    """
    assert placeholder_type in [Placeholder.GROUP, Placeholder.SENDER]
    text += "\n"
    req, idx = self._create_text_request(text, index)
    reqs = [req]
    reqs.append({
        "updateParagraphStyle": {
            "range": {
                "startIndex": index,
                "endIndex": index + idx
            },
            "paragraphStyle": {
                "namedStyleType":
                PLACEHOLDER_STYLES[placeholder_type]["namedStyleType"],
                "direction": "LEFT_TO_RIGHT",
                "spacingMode": "NEVER_COLLAPSE",
                "spaceAbove": {"unit": "PT"}
            },
            "fields": "*"
        }
    })
    reqs.append(self._format_text(index, index + idx, placeholder_type))
    return reqs, idx
Returns the request for inserting the group or sender placeholders using
    the styling of |generator_utils.PLACEHOLDER_STYLES|.
    
Returns the request for inserting the group or sender placeholders using
the styling of |generator_utils.PLACEHOLDER_STYLES|.
Returns the request for inserting the group or sender placeholders using the styling of |generator_utils . PLACEHOLDER_STYLES| .
def _create_group_or_sender_request(self, text, index, placeholder_type):
    assert placeholder_type in [Placeholder.GROUP, Placeholder.SENDER]
    text += "\n"
    req, idx = self._create_text_request(text, index)
    reqs = [req]
    reqs.append({
        "updateParagraphStyle": {
            "range": {
                "startIndex": index,
                "endIndex": index + idx
            },
            "paragraphStyle": {
                "namedStyleType":
                PLACEHOLDER_STYLES[placeholder_type]["namedStyleType"],
                "direction": "LEFT_TO_RIGHT",
                "spacingMode": "NEVER_COLLAPSE",
                "spaceAbove": {"unit": "PT"}
            },
            "fields": "*"
        }
    })
    reqs.append(self._format_text(index, index + idx, placeholder_type))
    return reqs, idx
def _create_group_or_sender_request ( self , text , index , placeholder_type ) : assert placeholder_type in [ Placeholder . GROUP , Placeholder . SENDER ] text += "\n" req , idx = self . _create_text_request ( text , index ) reqs = [ req ] reqs . append ( { "updateParagraphStyle" : { "range" : { "startIndex" : index , "endIndex" : index + idx } , "paragraphStyle" : { "namedStyleType" : PLACEHOLDER_STYLES [ placeholder_type ] [ "namedStyleType" ] , "direction" : "LEFT_TO_RIGHT" , "spacingMode" : "NEVER_COLLAPSE" , "spaceAbove" : { "unit" : "PT" } } , "fields" : "*" } } ) reqs . append ( self . _format_text ( index , index + idx , placeholder_type ) ) return reqs , idx
Returns the request for inserting the group or sender placeholders using
the styling of |generator_utils.PLACEHOLDER_STYLES|.
Returns the request for inserting the group or sender placeholders using the styling of |generator_utils . PLACEHOLDER_STYLES| .
"""Returns the request for inserting the group or sender placeholders using
    the styling of |generator_utils.PLACEHOLDER_STYLES|.
    """
self
text
index
placeholder_type