1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.cloud.devtools.cloudbuild.v1.stub; 18 19 import static com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient.ListBuildTriggersPagedResponse; 20 import static com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient.ListBuildsPagedResponse; 21 import static com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient.ListWorkerPoolsPagedResponse; 22 23 import com.google.api.gax.core.BackgroundResource; 24 import com.google.api.gax.rpc.OperationCallable; 25 import com.google.api.gax.rpc.UnaryCallable; 26 import com.google.cloudbuild.v1.ApproveBuildRequest; 27 import com.google.cloudbuild.v1.Build; 28 import com.google.cloudbuild.v1.BuildOperationMetadata; 29 import com.google.cloudbuild.v1.BuildTrigger; 30 import com.google.cloudbuild.v1.CancelBuildRequest; 31 import com.google.cloudbuild.v1.CreateBuildRequest; 32 import com.google.cloudbuild.v1.CreateBuildTriggerRequest; 33 import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; 34 import com.google.cloudbuild.v1.CreateWorkerPoolRequest; 35 import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; 36 import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; 37 import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; 38 import com.google.cloudbuild.v1.GetBuildRequest; 39 import com.google.cloudbuild.v1.GetBuildTriggerRequest; 40 import com.google.cloudbuild.v1.GetWorkerPoolRequest; 41 import com.google.cloudbuild.v1.ListBuildTriggersRequest; 42 import com.google.cloudbuild.v1.ListBuildTriggersResponse; 43 import com.google.cloudbuild.v1.ListBuildsRequest; 44 import com.google.cloudbuild.v1.ListBuildsResponse; 45 import com.google.cloudbuild.v1.ListWorkerPoolsRequest; 46 import com.google.cloudbuild.v1.ListWorkerPoolsResponse; 47 import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest; 48 import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse; 49 import com.google.cloudbuild.v1.RetryBuildRequest; 50 import com.google.cloudbuild.v1.RunBuildTriggerRequest; 51 import com.google.cloudbuild.v1.UpdateBuildTriggerRequest; 52 import com.google.cloudbuild.v1.UpdateWorkerPoolOperationMetadata; 53 import com.google.cloudbuild.v1.UpdateWorkerPoolRequest; 54 import com.google.cloudbuild.v1.WorkerPool; 55 import com.google.longrunning.Operation; 56 import com.google.longrunning.stub.OperationsStub; 57 import com.google.protobuf.Empty; 58 import javax.annotation.Generated; 59 60 // AUTO-GENERATED DOCUMENTATION AND CLASS. 61 /** 62 * Base stub class for the CloudBuild service API. 63 * 64 * <p>This class is for advanced usage and reflects the underlying API directly. 65 */ 66 @Generated("by gapic-generator-java") 67 public abstract class CloudBuildStub implements BackgroundResource { 68 getOperationsStub()69 public OperationsStub getOperationsStub() { 70 return null; 71 } 72 getHttpJsonOperationsStub()73 public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { 74 return null; 75 } 76 77 public OperationCallable<CreateBuildRequest, Build, BuildOperationMetadata> createBuildOperationCallable()78 createBuildOperationCallable() { 79 throw new UnsupportedOperationException("Not implemented: createBuildOperationCallable()"); 80 } 81 createBuildCallable()82 public UnaryCallable<CreateBuildRequest, Operation> createBuildCallable() { 83 throw new UnsupportedOperationException("Not implemented: createBuildCallable()"); 84 } 85 getBuildCallable()86 public UnaryCallable<GetBuildRequest, Build> getBuildCallable() { 87 throw new UnsupportedOperationException("Not implemented: getBuildCallable()"); 88 } 89 listBuildsPagedCallable()90 public UnaryCallable<ListBuildsRequest, ListBuildsPagedResponse> listBuildsPagedCallable() { 91 throw new UnsupportedOperationException("Not implemented: listBuildsPagedCallable()"); 92 } 93 listBuildsCallable()94 public UnaryCallable<ListBuildsRequest, ListBuildsResponse> listBuildsCallable() { 95 throw new UnsupportedOperationException("Not implemented: listBuildsCallable()"); 96 } 97 cancelBuildCallable()98 public UnaryCallable<CancelBuildRequest, Build> cancelBuildCallable() { 99 throw new UnsupportedOperationException("Not implemented: cancelBuildCallable()"); 100 } 101 102 public OperationCallable<RetryBuildRequest, Build, BuildOperationMetadata> retryBuildOperationCallable()103 retryBuildOperationCallable() { 104 throw new UnsupportedOperationException("Not implemented: retryBuildOperationCallable()"); 105 } 106 retryBuildCallable()107 public UnaryCallable<RetryBuildRequest, Operation> retryBuildCallable() { 108 throw new UnsupportedOperationException("Not implemented: retryBuildCallable()"); 109 } 110 111 public OperationCallable<ApproveBuildRequest, Build, BuildOperationMetadata> approveBuildOperationCallable()112 approveBuildOperationCallable() { 113 throw new UnsupportedOperationException("Not implemented: approveBuildOperationCallable()"); 114 } 115 approveBuildCallable()116 public UnaryCallable<ApproveBuildRequest, Operation> approveBuildCallable() { 117 throw new UnsupportedOperationException("Not implemented: approveBuildCallable()"); 118 } 119 createBuildTriggerCallable()120 public UnaryCallable<CreateBuildTriggerRequest, BuildTrigger> createBuildTriggerCallable() { 121 throw new UnsupportedOperationException("Not implemented: createBuildTriggerCallable()"); 122 } 123 getBuildTriggerCallable()124 public UnaryCallable<GetBuildTriggerRequest, BuildTrigger> getBuildTriggerCallable() { 125 throw new UnsupportedOperationException("Not implemented: getBuildTriggerCallable()"); 126 } 127 128 public UnaryCallable<ListBuildTriggersRequest, ListBuildTriggersPagedResponse> listBuildTriggersPagedCallable()129 listBuildTriggersPagedCallable() { 130 throw new UnsupportedOperationException("Not implemented: listBuildTriggersPagedCallable()"); 131 } 132 133 public UnaryCallable<ListBuildTriggersRequest, ListBuildTriggersResponse> listBuildTriggersCallable()134 listBuildTriggersCallable() { 135 throw new UnsupportedOperationException("Not implemented: listBuildTriggersCallable()"); 136 } 137 deleteBuildTriggerCallable()138 public UnaryCallable<DeleteBuildTriggerRequest, Empty> deleteBuildTriggerCallable() { 139 throw new UnsupportedOperationException("Not implemented: deleteBuildTriggerCallable()"); 140 } 141 updateBuildTriggerCallable()142 public UnaryCallable<UpdateBuildTriggerRequest, BuildTrigger> updateBuildTriggerCallable() { 143 throw new UnsupportedOperationException("Not implemented: updateBuildTriggerCallable()"); 144 } 145 146 public OperationCallable<RunBuildTriggerRequest, Build, BuildOperationMetadata> runBuildTriggerOperationCallable()147 runBuildTriggerOperationCallable() { 148 throw new UnsupportedOperationException("Not implemented: runBuildTriggerOperationCallable()"); 149 } 150 runBuildTriggerCallable()151 public UnaryCallable<RunBuildTriggerRequest, Operation> runBuildTriggerCallable() { 152 throw new UnsupportedOperationException("Not implemented: runBuildTriggerCallable()"); 153 } 154 155 public UnaryCallable<ReceiveTriggerWebhookRequest, ReceiveTriggerWebhookResponse> receiveTriggerWebhookCallable()156 receiveTriggerWebhookCallable() { 157 throw new UnsupportedOperationException("Not implemented: receiveTriggerWebhookCallable()"); 158 } 159 160 public OperationCallable<CreateWorkerPoolRequest, WorkerPool, CreateWorkerPoolOperationMetadata> createWorkerPoolOperationCallable()161 createWorkerPoolOperationCallable() { 162 throw new UnsupportedOperationException("Not implemented: createWorkerPoolOperationCallable()"); 163 } 164 createWorkerPoolCallable()165 public UnaryCallable<CreateWorkerPoolRequest, Operation> createWorkerPoolCallable() { 166 throw new UnsupportedOperationException("Not implemented: createWorkerPoolCallable()"); 167 } 168 getWorkerPoolCallable()169 public UnaryCallable<GetWorkerPoolRequest, WorkerPool> getWorkerPoolCallable() { 170 throw new UnsupportedOperationException("Not implemented: getWorkerPoolCallable()"); 171 } 172 173 public OperationCallable<DeleteWorkerPoolRequest, Empty, DeleteWorkerPoolOperationMetadata> deleteWorkerPoolOperationCallable()174 deleteWorkerPoolOperationCallable() { 175 throw new UnsupportedOperationException("Not implemented: deleteWorkerPoolOperationCallable()"); 176 } 177 deleteWorkerPoolCallable()178 public UnaryCallable<DeleteWorkerPoolRequest, Operation> deleteWorkerPoolCallable() { 179 throw new UnsupportedOperationException("Not implemented: deleteWorkerPoolCallable()"); 180 } 181 182 public OperationCallable<UpdateWorkerPoolRequest, WorkerPool, UpdateWorkerPoolOperationMetadata> updateWorkerPoolOperationCallable()183 updateWorkerPoolOperationCallable() { 184 throw new UnsupportedOperationException("Not implemented: updateWorkerPoolOperationCallable()"); 185 } 186 updateWorkerPoolCallable()187 public UnaryCallable<UpdateWorkerPoolRequest, Operation> updateWorkerPoolCallable() { 188 throw new UnsupportedOperationException("Not implemented: updateWorkerPoolCallable()"); 189 } 190 191 public UnaryCallable<ListWorkerPoolsRequest, ListWorkerPoolsPagedResponse> listWorkerPoolsPagedCallable()192 listWorkerPoolsPagedCallable() { 193 throw new UnsupportedOperationException("Not implemented: listWorkerPoolsPagedCallable()"); 194 } 195 listWorkerPoolsCallable()196 public UnaryCallable<ListWorkerPoolsRequest, ListWorkerPoolsResponse> listWorkerPoolsCallable() { 197 throw new UnsupportedOperationException("Not implemented: listWorkerPoolsCallable()"); 198 } 199 200 @Override close()201 public abstract void close(); 202 } 203