Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Generated unit test for google-apps-chat fails with ValueError: Protocol message Icon has no "material_icon" field. #2011

@parthea

Description

@parthea

See build log here from PR googleapis/google-cloud-python#12574

>           response = client.update_message(request)

tests/unit/gapic/chat_v1/test_chat_service.py:10332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
google/apps/chat_v1/services/chat_service/client.py:1564: in update_message
    request = gc_message.UpdateMessageRequest(request)
.nox/unit-3-8/lib/python3.8/site-packages/proto/message.py:609: in __init__
    pb_value = marshal.to_proto(pb_type, value)
.nox/unit-3-8/lib/python3.8/site-packages/proto/marshal/marshal.py:228: in to_proto
    pb_value = self.get_rule(proto_type=proto_type).to_proto(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <proto.marshal.rules.message.MessageRule object at 0x7f07f5713e50>
value = {'accessory_widgets': [{'button_list': {}}], 'action_response': {'dialog_action': {'action_status': {'status_code': 1,...nd_name_value', 'triggers_dialog': True, ...}, 'start_index': 1189, ...}], 'argument_text': 'argument_text_value', ...}

    def to_proto(self, value):
        if isinstance(value, self._wrapper):
            return self._wrapper.pb(value)
        if isinstance(value, dict) and not self.is_map:
            # We need to use the wrapper's marshaling to handle
            # potentially problematic nested messages.
            try:
                # Try the fast path first.
>               return self._descriptor(**value)
E               ValueError: Protocol message Icon has no "material_icon" field.

.nox/unit-3-8/lib/python3.8/site-packages/proto/marshal/rules/message.py:36: ValueError

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions