| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/eventarc/publishing/apiv1", |
| 4 |
"version": "1.16.0", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.eventarc.publishing.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "eventarcpublishing_v1_generated_Publisher_Publish_sync", |
| 16 |
"title": "eventarcpublishing Publish Sample", |
| 17 |
"description": "Publish publish events to a message bus.", |
| 18 |
"file": "PublisherClient/Publish/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "Publish", |
| 22 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient.Publish", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "publishingpb.PublishRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "*publishingpb.PublishResponse", |
| 38 |
"client": { |
| 39 |
"shortName": "PublisherClient", |
| 40 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "Publish", |
| 44 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher.Publish", |
| 45 |
"service": { |
| 46 |
"shortName": "Publisher", |
| 47 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher" |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"origin": "API_DEFINITION", |
| 52 |
"segments": [ |
| 53 |
{ |
| 54 |
"start": 18, |
| 55 |
"end": 53, |
| 56 |
"type": "FULL" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
{ |
| 61 |
"regionTag": "eventarcpublishing_v1_generated_Publisher_PublishChannelConnectionEvents_sync", |
| 62 |
"title": "eventarcpublishing PublishChannelConnectionEvents Sample", |
| 63 |
"description": "PublishChannelConnectionEvents publish events to a ChannelConnection in a partner's project.", |
| 64 |
"file": "PublisherClient/PublishChannelConnectionEvents/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "PublishChannelConnectionEvents", |
| 68 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient.PublishChannelConnectionEvents", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "publishingpb.PublishChannelConnectionEventsRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"resultType": "*publishingpb.PublishChannelConnectionEventsResponse", |
| 84 |
"client": { |
| 85 |
"shortName": "PublisherClient", |
| 86 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" |
| 87 |
}, |
| 88 |
"method": { |
| 89 |
"shortName": "PublishChannelConnectionEvents", |
| 90 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEvents", |
| 91 |
"service": { |
| 92 |
"shortName": "Publisher", |
| 93 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher" |
| 94 |
} |
| 95 |
} |
| 96 |
}, |
| 97 |
"origin": "API_DEFINITION", |
| 98 |
"segments": [ |
| 99 |
{ |
| 100 |
"start": 18, |
| 101 |
"end": 53, |
| 102 |
"type": "FULL" |
| 103 |
} |
| 104 |
] |
| 105 |
}, |
| 106 |
{ |
| 107 |
"regionTag": "eventarcpublishing_v1_generated_Publisher_PublishEvents_sync", |
| 108 |
"title": "eventarcpublishing PublishEvents Sample", |
| 109 |
"description": "PublishEvents publish events to a subscriber's channel.", |
| 110 |
"file": "PublisherClient/PublishEvents/main.go", |
| 111 |
"language": "GO", |
| 112 |
"clientMethod": { |
| 113 |
"shortName": "PublishEvents", |
| 114 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient.PublishEvents", |
| 115 |
"parameters": [ |
| 116 |
{ |
| 117 |
"type": "context.Context", |
| 118 |
"name": "ctx" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "publishingpb.PublishEventsRequest", |
| 122 |
"name": "req" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "...gax.CallOption", |
| 126 |
"name": "opts" |
| 127 |
} |
| 128 |
], |
| 129 |
"resultType": "*publishingpb.PublishEventsResponse", |
| 130 |
"client": { |
| 131 |
"shortName": "PublisherClient", |
| 132 |
"fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" |
| 133 |
}, |
| 134 |
"method": { |
| 135 |
"shortName": "PublishEvents", |
| 136 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishEvents", |
| 137 |
"service": { |
| 138 |
"shortName": "Publisher", |
| 139 |
"fullName": "google.cloud.eventarc.publishing.v1.Publisher" |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"origin": "API_DEFINITION", |
| 144 |
"segments": [ |
| 145 |
{ |
| 146 |
"start": 18, |
| 147 |
"end": 53, |
| 148 |
"type": "FULL" |
| 149 |
} |
| 150 |
] |
| 151 |
} |
| 152 |
] |
| 153 |
} |