• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 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 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/devtools/cloudbuild/v1/cloudbuild.proto
18 
19 package com.google.cloudbuild.v1;
20 
21 public interface RepoSourceOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.RepoSource)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * ID of the project that owns the Cloud Source Repository. If omitted, the
31    * project ID requesting the build is assumed.
32    * </pre>
33    *
34    * <code>string project_id = 1;</code>
35    *
36    * @return The projectId.
37    */
getProjectId()38   java.lang.String getProjectId();
39   /**
40    *
41    *
42    * <pre>
43    * ID of the project that owns the Cloud Source Repository. If omitted, the
44    * project ID requesting the build is assumed.
45    * </pre>
46    *
47    * <code>string project_id = 1;</code>
48    *
49    * @return The bytes for projectId.
50    */
getProjectIdBytes()51   com.google.protobuf.ByteString getProjectIdBytes();
52 
53   /**
54    *
55    *
56    * <pre>
57    * Name of the Cloud Source Repository.
58    * </pre>
59    *
60    * <code>string repo_name = 2;</code>
61    *
62    * @return The repoName.
63    */
getRepoName()64   java.lang.String getRepoName();
65   /**
66    *
67    *
68    * <pre>
69    * Name of the Cloud Source Repository.
70    * </pre>
71    *
72    * <code>string repo_name = 2;</code>
73    *
74    * @return The bytes for repoName.
75    */
getRepoNameBytes()76   com.google.protobuf.ByteString getRepoNameBytes();
77 
78   /**
79    *
80    *
81    * <pre>
82    * Regex matching branches to build.
83    * The syntax of the regular expressions accepted is the syntax accepted by
84    * RE2 and described at https://github.com/google/re2/wiki/Syntax
85    * </pre>
86    *
87    * <code>string branch_name = 3;</code>
88    *
89    * @return Whether the branchName field is set.
90    */
hasBranchName()91   boolean hasBranchName();
92   /**
93    *
94    *
95    * <pre>
96    * Regex matching branches to build.
97    * The syntax of the regular expressions accepted is the syntax accepted by
98    * RE2 and described at https://github.com/google/re2/wiki/Syntax
99    * </pre>
100    *
101    * <code>string branch_name = 3;</code>
102    *
103    * @return The branchName.
104    */
getBranchName()105   java.lang.String getBranchName();
106   /**
107    *
108    *
109    * <pre>
110    * Regex matching branches to build.
111    * The syntax of the regular expressions accepted is the syntax accepted by
112    * RE2 and described at https://github.com/google/re2/wiki/Syntax
113    * </pre>
114    *
115    * <code>string branch_name = 3;</code>
116    *
117    * @return The bytes for branchName.
118    */
getBranchNameBytes()119   com.google.protobuf.ByteString getBranchNameBytes();
120 
121   /**
122    *
123    *
124    * <pre>
125    * Regex matching tags to build.
126    * The syntax of the regular expressions accepted is the syntax accepted by
127    * RE2 and described at https://github.com/google/re2/wiki/Syntax
128    * </pre>
129    *
130    * <code>string tag_name = 4;</code>
131    *
132    * @return Whether the tagName field is set.
133    */
hasTagName()134   boolean hasTagName();
135   /**
136    *
137    *
138    * <pre>
139    * Regex matching tags to build.
140    * The syntax of the regular expressions accepted is the syntax accepted by
141    * RE2 and described at https://github.com/google/re2/wiki/Syntax
142    * </pre>
143    *
144    * <code>string tag_name = 4;</code>
145    *
146    * @return The tagName.
147    */
getTagName()148   java.lang.String getTagName();
149   /**
150    *
151    *
152    * <pre>
153    * Regex matching tags to build.
154    * The syntax of the regular expressions accepted is the syntax accepted by
155    * RE2 and described at https://github.com/google/re2/wiki/Syntax
156    * </pre>
157    *
158    * <code>string tag_name = 4;</code>
159    *
160    * @return The bytes for tagName.
161    */
getTagNameBytes()162   com.google.protobuf.ByteString getTagNameBytes();
163 
164   /**
165    *
166    *
167    * <pre>
168    * Explicit commit SHA to build.
169    * </pre>
170    *
171    * <code>string commit_sha = 5;</code>
172    *
173    * @return Whether the commitSha field is set.
174    */
hasCommitSha()175   boolean hasCommitSha();
176   /**
177    *
178    *
179    * <pre>
180    * Explicit commit SHA to build.
181    * </pre>
182    *
183    * <code>string commit_sha = 5;</code>
184    *
185    * @return The commitSha.
186    */
getCommitSha()187   java.lang.String getCommitSha();
188   /**
189    *
190    *
191    * <pre>
192    * Explicit commit SHA to build.
193    * </pre>
194    *
195    * <code>string commit_sha = 5;</code>
196    *
197    * @return The bytes for commitSha.
198    */
getCommitShaBytes()199   com.google.protobuf.ByteString getCommitShaBytes();
200 
201   /**
202    *
203    *
204    * <pre>
205    * Directory, relative to the source root, in which to run the build.
206    * This must be a relative path. If a step's `dir` is specified and is an
207    * absolute path, this value is ignored for that step's execution.
208    * </pre>
209    *
210    * <code>string dir = 7;</code>
211    *
212    * @return The dir.
213    */
getDir()214   java.lang.String getDir();
215   /**
216    *
217    *
218    * <pre>
219    * Directory, relative to the source root, in which to run the build.
220    * This must be a relative path. If a step's `dir` is specified and is an
221    * absolute path, this value is ignored for that step's execution.
222    * </pre>
223    *
224    * <code>string dir = 7;</code>
225    *
226    * @return The bytes for dir.
227    */
getDirBytes()228   com.google.protobuf.ByteString getDirBytes();
229 
230   /**
231    *
232    *
233    * <pre>
234    * Only trigger a build if the revision regex does NOT match the revision
235    * regex.
236    * </pre>
237    *
238    * <code>bool invert_regex = 8;</code>
239    *
240    * @return The invertRegex.
241    */
getInvertRegex()242   boolean getInvertRegex();
243 
244   /**
245    *
246    *
247    * <pre>
248    * Substitutions to use in a triggered build.
249    * Should only be used with RunBuildTrigger
250    * </pre>
251    *
252    * <code>map&lt;string, string&gt; substitutions = 9;</code>
253    */
getSubstitutionsCount()254   int getSubstitutionsCount();
255   /**
256    *
257    *
258    * <pre>
259    * Substitutions to use in a triggered build.
260    * Should only be used with RunBuildTrigger
261    * </pre>
262    *
263    * <code>map&lt;string, string&gt; substitutions = 9;</code>
264    */
containsSubstitutions(java.lang.String key)265   boolean containsSubstitutions(java.lang.String key);
266   /** Use {@link #getSubstitutionsMap()} instead. */
267   @java.lang.Deprecated
getSubstitutions()268   java.util.Map<java.lang.String, java.lang.String> getSubstitutions();
269   /**
270    *
271    *
272    * <pre>
273    * Substitutions to use in a triggered build.
274    * Should only be used with RunBuildTrigger
275    * </pre>
276    *
277    * <code>map&lt;string, string&gt; substitutions = 9;</code>
278    */
getSubstitutionsMap()279   java.util.Map<java.lang.String, java.lang.String> getSubstitutionsMap();
280   /**
281    *
282    *
283    * <pre>
284    * Substitutions to use in a triggered build.
285    * Should only be used with RunBuildTrigger
286    * </pre>
287    *
288    * <code>map&lt;string, string&gt; substitutions = 9;</code>
289    */
290   /* nullable */
getSubstitutionsOrDefault( java.lang.String key, java.lang.String defaultValue)291   java.lang.String getSubstitutionsOrDefault(
292       java.lang.String key,
293       /* nullable */
294       java.lang.String defaultValue);
295   /**
296    *
297    *
298    * <pre>
299    * Substitutions to use in a triggered build.
300    * Should only be used with RunBuildTrigger
301    * </pre>
302    *
303    * <code>map&lt;string, string&gt; substitutions = 9;</code>
304    */
getSubstitutionsOrThrow(java.lang.String key)305   java.lang.String getSubstitutionsOrThrow(java.lang.String key);
306 
getRevisionCase()307   public com.google.cloudbuild.v1.RepoSource.RevisionCase getRevisionCase();
308 }
309