Policy function ( String arg0 ) { try ( TopicAdminClient loc0 = TopicAdminClient . create ( ) ) { TopicName loc1 = TopicName . create ( projectId , arg0 ) ; Policy loc2 = loc0 . getIamPolicy ( loc1 . toString ( ) ) ; if ( loc2 == null ) { } return loc2 ; } }
example of getting a topic policy . concode_field_sep String projectId concode_field_sep TopicName deleteTopic concode_elem_sep TestIamPermissionsResponse testTopicPermissions concode_elem_sep Topic createTopic concode_elem_sep ListTopicSubscriptionsPagedResponse listTopicSubscriptions concode_elem_sep String getProjectId concode_elem_sep ListTopicsPagedResponse listTopics concode_elem_sep Topic getTopic concode_elem_sep Policy replaceTopicPolicy