Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 05c1a75

Browse files
feat: Add Channel and ChannelConnection resources (#136)
* feat: Add Channel and ChannelConnection resources PiperOrigin-RevId: 425975821 Source-Link: googleapis/googleapis@3766798 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0332102d499db3d7d6e69551f2f595a9c08a30d9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDMzMjEwMmQ0OTlkYjNkN2Q2ZTY5NTUxZjJmNTk1YTljMDhhMzBkOSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1b26318 commit 05c1a75

File tree

69 files changed

+26405
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+26405
-652
lines changed

google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcClient.java

Lines changed: 1272 additions & 3 deletions
Large diffs are not rendered by default.

google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/EventarcSettings.java

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.cloud.eventarc.v1;
1818

19+
import static com.google.cloud.eventarc.v1.EventarcClient.ListChannelConnectionsPagedResponse;
20+
import static com.google.cloud.eventarc.v1.EventarcClient.ListChannelsPagedResponse;
1921
import static com.google.cloud.eventarc.v1.EventarcClient.ListTriggersPagedResponse;
2022

2123
import com.google.api.core.ApiFunction;
@@ -114,6 +116,89 @@ public UnaryCallSettings<DeleteTriggerRequest, Operation> deleteTriggerSettings(
114116
return ((EventarcStubSettings) getStubSettings()).deleteTriggerOperationSettings();
115117
}
116118

119+
/** Returns the object with the settings used for calls to getChannel. */
120+
public UnaryCallSettings<GetChannelRequest, Channel> getChannelSettings() {
121+
return ((EventarcStubSettings) getStubSettings()).getChannelSettings();
122+
}
123+
124+
/** Returns the object with the settings used for calls to listChannels. */
125+
public PagedCallSettings<ListChannelsRequest, ListChannelsResponse, ListChannelsPagedResponse>
126+
listChannelsSettings() {
127+
return ((EventarcStubSettings) getStubSettings()).listChannelsSettings();
128+
}
129+
130+
/** Returns the object with the settings used for calls to createChannel. */
131+
public UnaryCallSettings<CreateChannelRequest, Operation> createChannelSettings() {
132+
return ((EventarcStubSettings) getStubSettings()).createChannelSettings();
133+
}
134+
135+
/** Returns the object with the settings used for calls to createChannel. */
136+
public OperationCallSettings<CreateChannelRequest, Channel, OperationMetadata>
137+
createChannelOperationSettings() {
138+
return ((EventarcStubSettings) getStubSettings()).createChannelOperationSettings();
139+
}
140+
141+
/** Returns the object with the settings used for calls to updateChannel. */
142+
public UnaryCallSettings<UpdateChannelRequest, Operation> updateChannelSettings() {
143+
return ((EventarcStubSettings) getStubSettings()).updateChannelSettings();
144+
}
145+
146+
/** Returns the object with the settings used for calls to updateChannel. */
147+
public OperationCallSettings<UpdateChannelRequest, Channel, OperationMetadata>
148+
updateChannelOperationSettings() {
149+
return ((EventarcStubSettings) getStubSettings()).updateChannelOperationSettings();
150+
}
151+
152+
/** Returns the object with the settings used for calls to deleteChannel. */
153+
public UnaryCallSettings<DeleteChannelRequest, Operation> deleteChannelSettings() {
154+
return ((EventarcStubSettings) getStubSettings()).deleteChannelSettings();
155+
}
156+
157+
/** Returns the object with the settings used for calls to deleteChannel. */
158+
public OperationCallSettings<DeleteChannelRequest, Channel, OperationMetadata>
159+
deleteChannelOperationSettings() {
160+
return ((EventarcStubSettings) getStubSettings()).deleteChannelOperationSettings();
161+
}
162+
163+
/** Returns the object with the settings used for calls to getChannelConnection. */
164+
public UnaryCallSettings<GetChannelConnectionRequest, ChannelConnection>
165+
getChannelConnectionSettings() {
166+
return ((EventarcStubSettings) getStubSettings()).getChannelConnectionSettings();
167+
}
168+
169+
/** Returns the object with the settings used for calls to listChannelConnections. */
170+
public PagedCallSettings<
171+
ListChannelConnectionsRequest,
172+
ListChannelConnectionsResponse,
173+
ListChannelConnectionsPagedResponse>
174+
listChannelConnectionsSettings() {
175+
return ((EventarcStubSettings) getStubSettings()).listChannelConnectionsSettings();
176+
}
177+
178+
/** Returns the object with the settings used for calls to createChannelConnection. */
179+
public UnaryCallSettings<CreateChannelConnectionRequest, Operation>
180+
createChannelConnectionSettings() {
181+
return ((EventarcStubSettings) getStubSettings()).createChannelConnectionSettings();
182+
}
183+
184+
/** Returns the object with the settings used for calls to createChannelConnection. */
185+
public OperationCallSettings<CreateChannelConnectionRequest, ChannelConnection, OperationMetadata>
186+
createChannelConnectionOperationSettings() {
187+
return ((EventarcStubSettings) getStubSettings()).createChannelConnectionOperationSettings();
188+
}
189+
190+
/** Returns the object with the settings used for calls to deleteChannelConnection. */
191+
public UnaryCallSettings<DeleteChannelConnectionRequest, Operation>
192+
deleteChannelConnectionSettings() {
193+
return ((EventarcStubSettings) getStubSettings()).deleteChannelConnectionSettings();
194+
}
195+
196+
/** Returns the object with the settings used for calls to deleteChannelConnection. */
197+
public OperationCallSettings<DeleteChannelConnectionRequest, ChannelConnection, OperationMetadata>
198+
deleteChannelConnectionOperationSettings() {
199+
return ((EventarcStubSettings) getStubSettings()).deleteChannelConnectionOperationSettings();
200+
}
201+
117202
public static final EventarcSettings create(EventarcStubSettings stub) throws IOException {
118203
return new EventarcSettings.Builder(stub.toBuilder()).build();
119204
}
@@ -255,6 +340,92 @@ public UnaryCallSettings.Builder<DeleteTriggerRequest, Operation> deleteTriggerS
255340
return getStubSettingsBuilder().deleteTriggerOperationSettings();
256341
}
257342

343+
/** Returns the builder for the settings used for calls to getChannel. */
344+
public UnaryCallSettings.Builder<GetChannelRequest, Channel> getChannelSettings() {
345+
return getStubSettingsBuilder().getChannelSettings();
346+
}
347+
348+
/** Returns the builder for the settings used for calls to listChannels. */
349+
public PagedCallSettings.Builder<
350+
ListChannelsRequest, ListChannelsResponse, ListChannelsPagedResponse>
351+
listChannelsSettings() {
352+
return getStubSettingsBuilder().listChannelsSettings();
353+
}
354+
355+
/** Returns the builder for the settings used for calls to createChannel. */
356+
public UnaryCallSettings.Builder<CreateChannelRequest, Operation> createChannelSettings() {
357+
return getStubSettingsBuilder().createChannelSettings();
358+
}
359+
360+
/** Returns the builder for the settings used for calls to createChannel. */
361+
public OperationCallSettings.Builder<CreateChannelRequest, Channel, OperationMetadata>
362+
createChannelOperationSettings() {
363+
return getStubSettingsBuilder().createChannelOperationSettings();
364+
}
365+
366+
/** Returns the builder for the settings used for calls to updateChannel. */
367+
public UnaryCallSettings.Builder<UpdateChannelRequest, Operation> updateChannelSettings() {
368+
return getStubSettingsBuilder().updateChannelSettings();
369+
}
370+
371+
/** Returns the builder for the settings used for calls to updateChannel. */
372+
public OperationCallSettings.Builder<UpdateChannelRequest, Channel, OperationMetadata>
373+
updateChannelOperationSettings() {
374+
return getStubSettingsBuilder().updateChannelOperationSettings();
375+
}
376+
377+
/** Returns the builder for the settings used for calls to deleteChannel. */
378+
public UnaryCallSettings.Builder<DeleteChannelRequest, Operation> deleteChannelSettings() {
379+
return getStubSettingsBuilder().deleteChannelSettings();
380+
}
381+
382+
/** Returns the builder for the settings used for calls to deleteChannel. */
383+
public OperationCallSettings.Builder<DeleteChannelRequest, Channel, OperationMetadata>
384+
deleteChannelOperationSettings() {
385+
return getStubSettingsBuilder().deleteChannelOperationSettings();
386+
}
387+
388+
/** Returns the builder for the settings used for calls to getChannelConnection. */
389+
public UnaryCallSettings.Builder<GetChannelConnectionRequest, ChannelConnection>
390+
getChannelConnectionSettings() {
391+
return getStubSettingsBuilder().getChannelConnectionSettings();
392+
}
393+
394+
/** Returns the builder for the settings used for calls to listChannelConnections. */
395+
public PagedCallSettings.Builder<
396+
ListChannelConnectionsRequest,
397+
ListChannelConnectionsResponse,
398+
ListChannelConnectionsPagedResponse>
399+
listChannelConnectionsSettings() {
400+
return getStubSettingsBuilder().listChannelConnectionsSettings();
401+
}
402+
403+
/** Returns the builder for the settings used for calls to createChannelConnection. */
404+
public UnaryCallSettings.Builder<CreateChannelConnectionRequest, Operation>
405+
createChannelConnectionSettings() {
406+
return getStubSettingsBuilder().createChannelConnectionSettings();
407+
}
408+
409+
/** Returns the builder for the settings used for calls to createChannelConnection. */
410+
public OperationCallSettings.Builder<
411+
CreateChannelConnectionRequest, ChannelConnection, OperationMetadata>
412+
createChannelConnectionOperationSettings() {
413+
return getStubSettingsBuilder().createChannelConnectionOperationSettings();
414+
}
415+
416+
/** Returns the builder for the settings used for calls to deleteChannelConnection. */
417+
public UnaryCallSettings.Builder<DeleteChannelConnectionRequest, Operation>
418+
deleteChannelConnectionSettings() {
419+
return getStubSettingsBuilder().deleteChannelConnectionSettings();
420+
}
421+
422+
/** Returns the builder for the settings used for calls to deleteChannelConnection. */
423+
public OperationCallSettings.Builder<
424+
DeleteChannelConnectionRequest, ChannelConnection, OperationMetadata>
425+
deleteChannelConnectionOperationSettings() {
426+
return getStubSettingsBuilder().deleteChannelConnectionOperationSettings();
427+
}
428+
258429
@Override
259430
public EventarcSettings build() throws IOException {
260431
return new EventarcSettings(this);

google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/gapic_metadata.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,45 @@
1010
"grpc": {
1111
"libraryClient": "EventarcClient",
1212
"rpcs": {
13+
"CreateChannel": {
14+
"methods": ["createChannelAsync", "createChannelAsync", "createChannelAsync", "createChannelOperationCallable", "createChannelCallable"]
15+
},
16+
"CreateChannelConnection": {
17+
"methods": ["createChannelConnectionAsync", "createChannelConnectionAsync", "createChannelConnectionAsync", "createChannelConnectionOperationCallable", "createChannelConnectionCallable"]
18+
},
1319
"CreateTrigger": {
1420
"methods": ["createTriggerAsync", "createTriggerAsync", "createTriggerAsync", "createTriggerOperationCallable", "createTriggerCallable"]
1521
},
22+
"DeleteChannel": {
23+
"methods": ["deleteChannelAsync", "deleteChannelAsync", "deleteChannelAsync", "deleteChannelOperationCallable", "deleteChannelCallable"]
24+
},
25+
"DeleteChannelConnection": {
26+
"methods": ["deleteChannelConnectionAsync", "deleteChannelConnectionAsync", "deleteChannelConnectionAsync", "deleteChannelConnectionOperationCallable", "deleteChannelConnectionCallable"]
27+
},
1628
"DeleteTrigger": {
1729
"methods": ["deleteTriggerAsync", "deleteTriggerAsync", "deleteTriggerAsync", "deleteTriggerOperationCallable", "deleteTriggerCallable"]
1830
},
31+
"GetChannel": {
32+
"methods": ["getChannel", "getChannel", "getChannel", "getChannelCallable"]
33+
},
34+
"GetChannelConnection": {
35+
"methods": ["getChannelConnection", "getChannelConnection", "getChannelConnection", "getChannelConnectionCallable"]
36+
},
1937
"GetTrigger": {
2038
"methods": ["getTrigger", "getTrigger", "getTrigger", "getTriggerCallable"]
2139
},
40+
"ListChannelConnections": {
41+
"methods": ["listChannelConnections", "listChannelConnections", "listChannelConnections", "listChannelConnectionsPagedCallable", "listChannelConnectionsCallable"]
42+
},
43+
"ListChannels": {
44+
"methods": ["listChannels", "listChannels", "listChannels", "listChannelsPagedCallable", "listChannelsCallable"]
45+
},
2246
"ListTriggers": {
2347
"methods": ["listTriggers", "listTriggers", "listTriggers", "listTriggersPagedCallable", "listTriggersCallable"]
2448
},
49+
"UpdateChannel": {
50+
"methods": ["updateChannelAsync", "updateChannelAsync", "updateChannelOperationCallable", "updateChannelCallable"]
51+
},
2552
"UpdateTrigger": {
2653
"methods": ["updateTriggerAsync", "updateTriggerAsync", "updateTriggerOperationCallable", "updateTriggerCallable"]
2754
}

google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
*/
1616

1717
/**
18-
* The interfaces provided are listed below, along with usage samples.
18+
* A client to Eventarc API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
1921
*
2022
* <p>======================= EventarcClient =======================
2123
*

google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/EventarcStub.java

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,33 @@
1616

1717
package com.google.cloud.eventarc.v1.stub;
1818

19+
import static com.google.cloud.eventarc.v1.EventarcClient.ListChannelConnectionsPagedResponse;
20+
import static com.google.cloud.eventarc.v1.EventarcClient.ListChannelsPagedResponse;
1921
import static com.google.cloud.eventarc.v1.EventarcClient.ListTriggersPagedResponse;
2022

2123
import com.google.api.gax.core.BackgroundResource;
2224
import com.google.api.gax.rpc.OperationCallable;
2325
import com.google.api.gax.rpc.UnaryCallable;
26+
import com.google.cloud.eventarc.v1.Channel;
27+
import com.google.cloud.eventarc.v1.ChannelConnection;
28+
import com.google.cloud.eventarc.v1.CreateChannelConnectionRequest;
29+
import com.google.cloud.eventarc.v1.CreateChannelRequest;
2430
import com.google.cloud.eventarc.v1.CreateTriggerRequest;
31+
import com.google.cloud.eventarc.v1.DeleteChannelConnectionRequest;
32+
import com.google.cloud.eventarc.v1.DeleteChannelRequest;
2533
import com.google.cloud.eventarc.v1.DeleteTriggerRequest;
34+
import com.google.cloud.eventarc.v1.GetChannelConnectionRequest;
35+
import com.google.cloud.eventarc.v1.GetChannelRequest;
2636
import com.google.cloud.eventarc.v1.GetTriggerRequest;
37+
import com.google.cloud.eventarc.v1.ListChannelConnectionsRequest;
38+
import com.google.cloud.eventarc.v1.ListChannelConnectionsResponse;
39+
import com.google.cloud.eventarc.v1.ListChannelsRequest;
40+
import com.google.cloud.eventarc.v1.ListChannelsResponse;
2741
import com.google.cloud.eventarc.v1.ListTriggersRequest;
2842
import com.google.cloud.eventarc.v1.ListTriggersResponse;
2943
import com.google.cloud.eventarc.v1.OperationMetadata;
3044
import com.google.cloud.eventarc.v1.Trigger;
45+
import com.google.cloud.eventarc.v1.UpdateChannelRequest;
3146
import com.google.cloud.eventarc.v1.UpdateTriggerRequest;
3247
import com.google.longrunning.Operation;
3348
import com.google.longrunning.stub.OperationsStub;
@@ -85,6 +100,83 @@ public UnaryCallable<DeleteTriggerRequest, Operation> deleteTriggerCallable() {
85100
throw new UnsupportedOperationException("Not implemented: deleteTriggerCallable()");
86101
}
87102

103+
public UnaryCallable<GetChannelRequest, Channel> getChannelCallable() {
104+
throw new UnsupportedOperationException("Not implemented: getChannelCallable()");
105+
}
106+
107+
public UnaryCallable<ListChannelsRequest, ListChannelsPagedResponse> listChannelsPagedCallable() {
108+
throw new UnsupportedOperationException("Not implemented: listChannelsPagedCallable()");
109+
}
110+
111+
public UnaryCallable<ListChannelsRequest, ListChannelsResponse> listChannelsCallable() {
112+
throw new UnsupportedOperationException("Not implemented: listChannelsCallable()");
113+
}
114+
115+
public OperationCallable<CreateChannelRequest, Channel, OperationMetadata>
116+
createChannelOperationCallable() {
117+
throw new UnsupportedOperationException("Not implemented: createChannelOperationCallable()");
118+
}
119+
120+
public UnaryCallable<CreateChannelRequest, Operation> createChannelCallable() {
121+
throw new UnsupportedOperationException("Not implemented: createChannelCallable()");
122+
}
123+
124+
public OperationCallable<UpdateChannelRequest, Channel, OperationMetadata>
125+
updateChannelOperationCallable() {
126+
throw new UnsupportedOperationException("Not implemented: updateChannelOperationCallable()");
127+
}
128+
129+
public UnaryCallable<UpdateChannelRequest, Operation> updateChannelCallable() {
130+
throw new UnsupportedOperationException("Not implemented: updateChannelCallable()");
131+
}
132+
133+
public OperationCallable<DeleteChannelRequest, Channel, OperationMetadata>
134+
deleteChannelOperationCallable() {
135+
throw new UnsupportedOperationException("Not implemented: deleteChannelOperationCallable()");
136+
}
137+
138+
public UnaryCallable<DeleteChannelRequest, Operation> deleteChannelCallable() {
139+
throw new UnsupportedOperationException("Not implemented: deleteChannelCallable()");
140+
}
141+
142+
public UnaryCallable<GetChannelConnectionRequest, ChannelConnection>
143+
getChannelConnectionCallable() {
144+
throw new UnsupportedOperationException("Not implemented: getChannelConnectionCallable()");
145+
}
146+
147+
public UnaryCallable<ListChannelConnectionsRequest, ListChannelConnectionsPagedResponse>
148+
listChannelConnectionsPagedCallable() {
149+
throw new UnsupportedOperationException(
150+
"Not implemented: listChannelConnectionsPagedCallable()");
151+
}
152+
153+
public UnaryCallable<ListChannelConnectionsRequest, ListChannelConnectionsResponse>
154+
listChannelConnectionsCallable() {
155+
throw new UnsupportedOperationException("Not implemented: listChannelConnectionsCallable()");
156+
}
157+
158+
public OperationCallable<CreateChannelConnectionRequest, ChannelConnection, OperationMetadata>
159+
createChannelConnectionOperationCallable() {
160+
throw new UnsupportedOperationException(
161+
"Not implemented: createChannelConnectionOperationCallable()");
162+
}
163+
164+
public UnaryCallable<CreateChannelConnectionRequest, Operation>
165+
createChannelConnectionCallable() {
166+
throw new UnsupportedOperationException("Not implemented: createChannelConnectionCallable()");
167+
}
168+
169+
public OperationCallable<DeleteChannelConnectionRequest, ChannelConnection, OperationMetadata>
170+
deleteChannelConnectionOperationCallable() {
171+
throw new UnsupportedOperationException(
172+
"Not implemented: deleteChannelConnectionOperationCallable()");
173+
}
174+
175+
public UnaryCallable<DeleteChannelConnectionRequest, Operation>
176+
deleteChannelConnectionCallable() {
177+
throw new UnsupportedOperationException("Not implemented: deleteChannelConnectionCallable()");
178+
}
179+
88180
@Override
89181
public abstract void close();
90182
}

0 commit comments

Comments
 (0)