• 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/cloud/functions/v1/functions.proto
18 
19 package com.google.cloud.functions.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Describes SourceRepository, used to represent parameters related to
26  * source repository where a function is hosted.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
30  */
31 public final class SourceRepository extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.functions.v1.SourceRepository)
34     SourceRepositoryOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use SourceRepository.newBuilder() to construct.
SourceRepository(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private SourceRepository(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
SourceRepository()41   private SourceRepository() {
42     url_ = "";
43     deployedUrl_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new SourceRepository();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.functions.v1.FunctionsProto
59         .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.functions.v1.FunctionsProto
66         .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.functions.v1.SourceRepository.class,
69             com.google.cloud.functions.v1.SourceRepository.Builder.class);
70   }
71 
72   public static final int URL_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object url_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * The URL pointing to the hosted repository where the function is defined.
81    * There are supported Cloud Source Repository URLs in the following
82    * formats:
83    * To refer to a specific commit:
84    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
85    * To refer to a moveable alias (branch):
86    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
87    * In particular, to refer to HEAD use `master` moveable alias.
88    * To refer to a specific fixed alias (tag):
89    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
90    * You can omit `paths/&#42;` if you want to use the main directory.
91    * </pre>
92    *
93    * <code>string url = 1;</code>
94    *
95    * @return The url.
96    */
97   @java.lang.Override
getUrl()98   public java.lang.String getUrl() {
99     java.lang.Object ref = url_;
100     if (ref instanceof java.lang.String) {
101       return (java.lang.String) ref;
102     } else {
103       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
104       java.lang.String s = bs.toStringUtf8();
105       url_ = s;
106       return s;
107     }
108   }
109   /**
110    *
111    *
112    * <pre>
113    * The URL pointing to the hosted repository where the function is defined.
114    * There are supported Cloud Source Repository URLs in the following
115    * formats:
116    * To refer to a specific commit:
117    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
118    * To refer to a moveable alias (branch):
119    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
120    * In particular, to refer to HEAD use `master` moveable alias.
121    * To refer to a specific fixed alias (tag):
122    * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
123    * You can omit `paths/&#42;` if you want to use the main directory.
124    * </pre>
125    *
126    * <code>string url = 1;</code>
127    *
128    * @return The bytes for url.
129    */
130   @java.lang.Override
getUrlBytes()131   public com.google.protobuf.ByteString getUrlBytes() {
132     java.lang.Object ref = url_;
133     if (ref instanceof java.lang.String) {
134       com.google.protobuf.ByteString b =
135           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
136       url_ = b;
137       return b;
138     } else {
139       return (com.google.protobuf.ByteString) ref;
140     }
141   }
142 
143   public static final int DEPLOYED_URL_FIELD_NUMBER = 2;
144 
145   @SuppressWarnings("serial")
146   private volatile java.lang.Object deployedUrl_ = "";
147   /**
148    *
149    *
150    * <pre>
151    * Output only. The URL pointing to the hosted repository where the function
152    * were defined at the time of deployment. It always points to a specific
153    * commit in the format described above.
154    * </pre>
155    *
156    * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
157    *
158    * @return The deployedUrl.
159    */
160   @java.lang.Override
getDeployedUrl()161   public java.lang.String getDeployedUrl() {
162     java.lang.Object ref = deployedUrl_;
163     if (ref instanceof java.lang.String) {
164       return (java.lang.String) ref;
165     } else {
166       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
167       java.lang.String s = bs.toStringUtf8();
168       deployedUrl_ = s;
169       return s;
170     }
171   }
172   /**
173    *
174    *
175    * <pre>
176    * Output only. The URL pointing to the hosted repository where the function
177    * were defined at the time of deployment. It always points to a specific
178    * commit in the format described above.
179    * </pre>
180    *
181    * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
182    *
183    * @return The bytes for deployedUrl.
184    */
185   @java.lang.Override
getDeployedUrlBytes()186   public com.google.protobuf.ByteString getDeployedUrlBytes() {
187     java.lang.Object ref = deployedUrl_;
188     if (ref instanceof java.lang.String) {
189       com.google.protobuf.ByteString b =
190           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
191       deployedUrl_ = b;
192       return b;
193     } else {
194       return (com.google.protobuf.ByteString) ref;
195     }
196   }
197 
198   private byte memoizedIsInitialized = -1;
199 
200   @java.lang.Override
isInitialized()201   public final boolean isInitialized() {
202     byte isInitialized = memoizedIsInitialized;
203     if (isInitialized == 1) return true;
204     if (isInitialized == 0) return false;
205 
206     memoizedIsInitialized = 1;
207     return true;
208   }
209 
210   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)211   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
212     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
213       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
214     }
215     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployedUrl_)) {
216       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployedUrl_);
217     }
218     getUnknownFields().writeTo(output);
219   }
220 
221   @java.lang.Override
getSerializedSize()222   public int getSerializedSize() {
223     int size = memoizedSize;
224     if (size != -1) return size;
225 
226     size = 0;
227     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) {
228       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
229     }
230     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployedUrl_)) {
231       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployedUrl_);
232     }
233     size += getUnknownFields().getSerializedSize();
234     memoizedSize = size;
235     return size;
236   }
237 
238   @java.lang.Override
equals(final java.lang.Object obj)239   public boolean equals(final java.lang.Object obj) {
240     if (obj == this) {
241       return true;
242     }
243     if (!(obj instanceof com.google.cloud.functions.v1.SourceRepository)) {
244       return super.equals(obj);
245     }
246     com.google.cloud.functions.v1.SourceRepository other =
247         (com.google.cloud.functions.v1.SourceRepository) obj;
248 
249     if (!getUrl().equals(other.getUrl())) return false;
250     if (!getDeployedUrl().equals(other.getDeployedUrl())) return false;
251     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
252     return true;
253   }
254 
255   @java.lang.Override
hashCode()256   public int hashCode() {
257     if (memoizedHashCode != 0) {
258       return memoizedHashCode;
259     }
260     int hash = 41;
261     hash = (19 * hash) + getDescriptor().hashCode();
262     hash = (37 * hash) + URL_FIELD_NUMBER;
263     hash = (53 * hash) + getUrl().hashCode();
264     hash = (37 * hash) + DEPLOYED_URL_FIELD_NUMBER;
265     hash = (53 * hash) + getDeployedUrl().hashCode();
266     hash = (29 * hash) + getUnknownFields().hashCode();
267     memoizedHashCode = hash;
268     return hash;
269   }
270 
parseFrom(java.nio.ByteBuffer data)271   public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.nio.ByteBuffer data)
272       throws com.google.protobuf.InvalidProtocolBufferException {
273     return PARSER.parseFrom(data);
274   }
275 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)276   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
277       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278       throws com.google.protobuf.InvalidProtocolBufferException {
279     return PARSER.parseFrom(data, extensionRegistry);
280   }
281 
parseFrom( com.google.protobuf.ByteString data)282   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
283       com.google.protobuf.ByteString data)
284       throws com.google.protobuf.InvalidProtocolBufferException {
285     return PARSER.parseFrom(data);
286   }
287 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)288   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
289       com.google.protobuf.ByteString data,
290       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291       throws com.google.protobuf.InvalidProtocolBufferException {
292     return PARSER.parseFrom(data, extensionRegistry);
293   }
294 
parseFrom(byte[] data)295   public static com.google.cloud.functions.v1.SourceRepository parseFrom(byte[] data)
296       throws com.google.protobuf.InvalidProtocolBufferException {
297     return PARSER.parseFrom(data);
298   }
299 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)300   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
301       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
302       throws com.google.protobuf.InvalidProtocolBufferException {
303     return PARSER.parseFrom(data, extensionRegistry);
304   }
305 
parseFrom(java.io.InputStream input)306   public static com.google.cloud.functions.v1.SourceRepository parseFrom(java.io.InputStream input)
307       throws java.io.IOException {
308     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
309   }
310 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)311   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
312       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313       throws java.io.IOException {
314     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
315         PARSER, input, extensionRegistry);
316   }
317 
parseDelimitedFrom( java.io.InputStream input)318   public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom(
319       java.io.InputStream input) throws java.io.IOException {
320     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
321   }
322 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)323   public static com.google.cloud.functions.v1.SourceRepository parseDelimitedFrom(
324       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
325       throws java.io.IOException {
326     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
327         PARSER, input, extensionRegistry);
328   }
329 
parseFrom( com.google.protobuf.CodedInputStream input)330   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
331       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
332     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
333   }
334 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)335   public static com.google.cloud.functions.v1.SourceRepository parseFrom(
336       com.google.protobuf.CodedInputStream input,
337       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
338       throws java.io.IOException {
339     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
340         PARSER, input, extensionRegistry);
341   }
342 
343   @java.lang.Override
newBuilderForType()344   public Builder newBuilderForType() {
345     return newBuilder();
346   }
347 
newBuilder()348   public static Builder newBuilder() {
349     return DEFAULT_INSTANCE.toBuilder();
350   }
351 
newBuilder(com.google.cloud.functions.v1.SourceRepository prototype)352   public static Builder newBuilder(com.google.cloud.functions.v1.SourceRepository prototype) {
353     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
354   }
355 
356   @java.lang.Override
toBuilder()357   public Builder toBuilder() {
358     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
359   }
360 
361   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)362   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
363     Builder builder = new Builder(parent);
364     return builder;
365   }
366   /**
367    *
368    *
369    * <pre>
370    * Describes SourceRepository, used to represent parameters related to
371    * source repository where a function is hosted.
372    * </pre>
373    *
374    * Protobuf type {@code google.cloud.functions.v1.SourceRepository}
375    */
376   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
377       implements
378       // @@protoc_insertion_point(builder_implements:google.cloud.functions.v1.SourceRepository)
379       com.google.cloud.functions.v1.SourceRepositoryOrBuilder {
getDescriptor()380     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
381       return com.google.cloud.functions.v1.FunctionsProto
382           .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
383     }
384 
385     @java.lang.Override
386     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()387         internalGetFieldAccessorTable() {
388       return com.google.cloud.functions.v1.FunctionsProto
389           .internal_static_google_cloud_functions_v1_SourceRepository_fieldAccessorTable
390           .ensureFieldAccessorsInitialized(
391               com.google.cloud.functions.v1.SourceRepository.class,
392               com.google.cloud.functions.v1.SourceRepository.Builder.class);
393     }
394 
395     // Construct using com.google.cloud.functions.v1.SourceRepository.newBuilder()
Builder()396     private Builder() {}
397 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)398     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
399       super(parent);
400     }
401 
402     @java.lang.Override
clear()403     public Builder clear() {
404       super.clear();
405       bitField0_ = 0;
406       url_ = "";
407       deployedUrl_ = "";
408       return this;
409     }
410 
411     @java.lang.Override
getDescriptorForType()412     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
413       return com.google.cloud.functions.v1.FunctionsProto
414           .internal_static_google_cloud_functions_v1_SourceRepository_descriptor;
415     }
416 
417     @java.lang.Override
getDefaultInstanceForType()418     public com.google.cloud.functions.v1.SourceRepository getDefaultInstanceForType() {
419       return com.google.cloud.functions.v1.SourceRepository.getDefaultInstance();
420     }
421 
422     @java.lang.Override
build()423     public com.google.cloud.functions.v1.SourceRepository build() {
424       com.google.cloud.functions.v1.SourceRepository result = buildPartial();
425       if (!result.isInitialized()) {
426         throw newUninitializedMessageException(result);
427       }
428       return result;
429     }
430 
431     @java.lang.Override
buildPartial()432     public com.google.cloud.functions.v1.SourceRepository buildPartial() {
433       com.google.cloud.functions.v1.SourceRepository result =
434           new com.google.cloud.functions.v1.SourceRepository(this);
435       if (bitField0_ != 0) {
436         buildPartial0(result);
437       }
438       onBuilt();
439       return result;
440     }
441 
buildPartial0(com.google.cloud.functions.v1.SourceRepository result)442     private void buildPartial0(com.google.cloud.functions.v1.SourceRepository result) {
443       int from_bitField0_ = bitField0_;
444       if (((from_bitField0_ & 0x00000001) != 0)) {
445         result.url_ = url_;
446       }
447       if (((from_bitField0_ & 0x00000002) != 0)) {
448         result.deployedUrl_ = deployedUrl_;
449       }
450     }
451 
452     @java.lang.Override
clone()453     public Builder clone() {
454       return super.clone();
455     }
456 
457     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)458     public Builder setField(
459         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
460       return super.setField(field, value);
461     }
462 
463     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)464     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
465       return super.clearField(field);
466     }
467 
468     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)469     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
470       return super.clearOneof(oneof);
471     }
472 
473     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)474     public Builder setRepeatedField(
475         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
476       return super.setRepeatedField(field, index, value);
477     }
478 
479     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)480     public Builder addRepeatedField(
481         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
482       return super.addRepeatedField(field, value);
483     }
484 
485     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)486     public Builder mergeFrom(com.google.protobuf.Message other) {
487       if (other instanceof com.google.cloud.functions.v1.SourceRepository) {
488         return mergeFrom((com.google.cloud.functions.v1.SourceRepository) other);
489       } else {
490         super.mergeFrom(other);
491         return this;
492       }
493     }
494 
mergeFrom(com.google.cloud.functions.v1.SourceRepository other)495     public Builder mergeFrom(com.google.cloud.functions.v1.SourceRepository other) {
496       if (other == com.google.cloud.functions.v1.SourceRepository.getDefaultInstance()) return this;
497       if (!other.getUrl().isEmpty()) {
498         url_ = other.url_;
499         bitField0_ |= 0x00000001;
500         onChanged();
501       }
502       if (!other.getDeployedUrl().isEmpty()) {
503         deployedUrl_ = other.deployedUrl_;
504         bitField0_ |= 0x00000002;
505         onChanged();
506       }
507       this.mergeUnknownFields(other.getUnknownFields());
508       onChanged();
509       return this;
510     }
511 
512     @java.lang.Override
isInitialized()513     public final boolean isInitialized() {
514       return true;
515     }
516 
517     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)518     public Builder mergeFrom(
519         com.google.protobuf.CodedInputStream input,
520         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
521         throws java.io.IOException {
522       if (extensionRegistry == null) {
523         throw new java.lang.NullPointerException();
524       }
525       try {
526         boolean done = false;
527         while (!done) {
528           int tag = input.readTag();
529           switch (tag) {
530             case 0:
531               done = true;
532               break;
533             case 10:
534               {
535                 url_ = input.readStringRequireUtf8();
536                 bitField0_ |= 0x00000001;
537                 break;
538               } // case 10
539             case 18:
540               {
541                 deployedUrl_ = input.readStringRequireUtf8();
542                 bitField0_ |= 0x00000002;
543                 break;
544               } // case 18
545             default:
546               {
547                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
548                   done = true; // was an endgroup tag
549                 }
550                 break;
551               } // default:
552           } // switch (tag)
553         } // while (!done)
554       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
555         throw e.unwrapIOException();
556       } finally {
557         onChanged();
558       } // finally
559       return this;
560     }
561 
562     private int bitField0_;
563 
564     private java.lang.Object url_ = "";
565     /**
566      *
567      *
568      * <pre>
569      * The URL pointing to the hosted repository where the function is defined.
570      * There are supported Cloud Source Repository URLs in the following
571      * formats:
572      * To refer to a specific commit:
573      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
574      * To refer to a moveable alias (branch):
575      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
576      * In particular, to refer to HEAD use `master` moveable alias.
577      * To refer to a specific fixed alias (tag):
578      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
579      * You can omit `paths/&#42;` if you want to use the main directory.
580      * </pre>
581      *
582      * <code>string url = 1;</code>
583      *
584      * @return The url.
585      */
getUrl()586     public java.lang.String getUrl() {
587       java.lang.Object ref = url_;
588       if (!(ref instanceof java.lang.String)) {
589         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
590         java.lang.String s = bs.toStringUtf8();
591         url_ = s;
592         return s;
593       } else {
594         return (java.lang.String) ref;
595       }
596     }
597     /**
598      *
599      *
600      * <pre>
601      * The URL pointing to the hosted repository where the function is defined.
602      * There are supported Cloud Source Repository URLs in the following
603      * formats:
604      * To refer to a specific commit:
605      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
606      * To refer to a moveable alias (branch):
607      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
608      * In particular, to refer to HEAD use `master` moveable alias.
609      * To refer to a specific fixed alias (tag):
610      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
611      * You can omit `paths/&#42;` if you want to use the main directory.
612      * </pre>
613      *
614      * <code>string url = 1;</code>
615      *
616      * @return The bytes for url.
617      */
getUrlBytes()618     public com.google.protobuf.ByteString getUrlBytes() {
619       java.lang.Object ref = url_;
620       if (ref instanceof String) {
621         com.google.protobuf.ByteString b =
622             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
623         url_ = b;
624         return b;
625       } else {
626         return (com.google.protobuf.ByteString) ref;
627       }
628     }
629     /**
630      *
631      *
632      * <pre>
633      * The URL pointing to the hosted repository where the function is defined.
634      * There are supported Cloud Source Repository URLs in the following
635      * formats:
636      * To refer to a specific commit:
637      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
638      * To refer to a moveable alias (branch):
639      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
640      * In particular, to refer to HEAD use `master` moveable alias.
641      * To refer to a specific fixed alias (tag):
642      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
643      * You can omit `paths/&#42;` if you want to use the main directory.
644      * </pre>
645      *
646      * <code>string url = 1;</code>
647      *
648      * @param value The url to set.
649      * @return This builder for chaining.
650      */
setUrl(java.lang.String value)651     public Builder setUrl(java.lang.String value) {
652       if (value == null) {
653         throw new NullPointerException();
654       }
655       url_ = value;
656       bitField0_ |= 0x00000001;
657       onChanged();
658       return this;
659     }
660     /**
661      *
662      *
663      * <pre>
664      * The URL pointing to the hosted repository where the function is defined.
665      * There are supported Cloud Source Repository URLs in the following
666      * formats:
667      * To refer to a specific commit:
668      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
669      * To refer to a moveable alias (branch):
670      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
671      * In particular, to refer to HEAD use `master` moveable alias.
672      * To refer to a specific fixed alias (tag):
673      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
674      * You can omit `paths/&#42;` if you want to use the main directory.
675      * </pre>
676      *
677      * <code>string url = 1;</code>
678      *
679      * @return This builder for chaining.
680      */
clearUrl()681     public Builder clearUrl() {
682       url_ = getDefaultInstance().getUrl();
683       bitField0_ = (bitField0_ & ~0x00000001);
684       onChanged();
685       return this;
686     }
687     /**
688      *
689      *
690      * <pre>
691      * The URL pointing to the hosted repository where the function is defined.
692      * There are supported Cloud Source Repository URLs in the following
693      * formats:
694      * To refer to a specific commit:
695      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;revisions/&#42;&#47;paths/&#42;`
696      * To refer to a moveable alias (branch):
697      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;moveable-aliases/&#42;&#47;paths/&#42;`
698      * In particular, to refer to HEAD use `master` moveable alias.
699      * To refer to a specific fixed alias (tag):
700      * `https://source.developers.google.com/projects/&#42;&#47;repos/&#42;&#47;fixed-aliases/&#42;&#47;paths/&#42;`
701      * You can omit `paths/&#42;` if you want to use the main directory.
702      * </pre>
703      *
704      * <code>string url = 1;</code>
705      *
706      * @param value The bytes for url to set.
707      * @return This builder for chaining.
708      */
setUrlBytes(com.google.protobuf.ByteString value)709     public Builder setUrlBytes(com.google.protobuf.ByteString value) {
710       if (value == null) {
711         throw new NullPointerException();
712       }
713       checkByteStringIsUtf8(value);
714       url_ = value;
715       bitField0_ |= 0x00000001;
716       onChanged();
717       return this;
718     }
719 
720     private java.lang.Object deployedUrl_ = "";
721     /**
722      *
723      *
724      * <pre>
725      * Output only. The URL pointing to the hosted repository where the function
726      * were defined at the time of deployment. It always points to a specific
727      * commit in the format described above.
728      * </pre>
729      *
730      * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
731      *
732      * @return The deployedUrl.
733      */
getDeployedUrl()734     public java.lang.String getDeployedUrl() {
735       java.lang.Object ref = deployedUrl_;
736       if (!(ref instanceof java.lang.String)) {
737         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
738         java.lang.String s = bs.toStringUtf8();
739         deployedUrl_ = s;
740         return s;
741       } else {
742         return (java.lang.String) ref;
743       }
744     }
745     /**
746      *
747      *
748      * <pre>
749      * Output only. The URL pointing to the hosted repository where the function
750      * were defined at the time of deployment. It always points to a specific
751      * commit in the format described above.
752      * </pre>
753      *
754      * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
755      *
756      * @return The bytes for deployedUrl.
757      */
getDeployedUrlBytes()758     public com.google.protobuf.ByteString getDeployedUrlBytes() {
759       java.lang.Object ref = deployedUrl_;
760       if (ref instanceof String) {
761         com.google.protobuf.ByteString b =
762             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
763         deployedUrl_ = b;
764         return b;
765       } else {
766         return (com.google.protobuf.ByteString) ref;
767       }
768     }
769     /**
770      *
771      *
772      * <pre>
773      * Output only. The URL pointing to the hosted repository where the function
774      * were defined at the time of deployment. It always points to a specific
775      * commit in the format described above.
776      * </pre>
777      *
778      * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
779      *
780      * @param value The deployedUrl to set.
781      * @return This builder for chaining.
782      */
setDeployedUrl(java.lang.String value)783     public Builder setDeployedUrl(java.lang.String value) {
784       if (value == null) {
785         throw new NullPointerException();
786       }
787       deployedUrl_ = value;
788       bitField0_ |= 0x00000002;
789       onChanged();
790       return this;
791     }
792     /**
793      *
794      *
795      * <pre>
796      * Output only. The URL pointing to the hosted repository where the function
797      * were defined at the time of deployment. It always points to a specific
798      * commit in the format described above.
799      * </pre>
800      *
801      * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
802      *
803      * @return This builder for chaining.
804      */
clearDeployedUrl()805     public Builder clearDeployedUrl() {
806       deployedUrl_ = getDefaultInstance().getDeployedUrl();
807       bitField0_ = (bitField0_ & ~0x00000002);
808       onChanged();
809       return this;
810     }
811     /**
812      *
813      *
814      * <pre>
815      * Output only. The URL pointing to the hosted repository where the function
816      * were defined at the time of deployment. It always points to a specific
817      * commit in the format described above.
818      * </pre>
819      *
820      * <code>string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
821      *
822      * @param value The bytes for deployedUrl to set.
823      * @return This builder for chaining.
824      */
setDeployedUrlBytes(com.google.protobuf.ByteString value)825     public Builder setDeployedUrlBytes(com.google.protobuf.ByteString value) {
826       if (value == null) {
827         throw new NullPointerException();
828       }
829       checkByteStringIsUtf8(value);
830       deployedUrl_ = value;
831       bitField0_ |= 0x00000002;
832       onChanged();
833       return this;
834     }
835 
836     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)837     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
838       return super.setUnknownFields(unknownFields);
839     }
840 
841     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)842     public final Builder mergeUnknownFields(
843         final com.google.protobuf.UnknownFieldSet unknownFields) {
844       return super.mergeUnknownFields(unknownFields);
845     }
846 
847     // @@protoc_insertion_point(builder_scope:google.cloud.functions.v1.SourceRepository)
848   }
849 
850   // @@protoc_insertion_point(class_scope:google.cloud.functions.v1.SourceRepository)
851   private static final com.google.cloud.functions.v1.SourceRepository DEFAULT_INSTANCE;
852 
853   static {
854     DEFAULT_INSTANCE = new com.google.cloud.functions.v1.SourceRepository();
855   }
856 
getDefaultInstance()857   public static com.google.cloud.functions.v1.SourceRepository getDefaultInstance() {
858     return DEFAULT_INSTANCE;
859   }
860 
861   private static final com.google.protobuf.Parser<SourceRepository> PARSER =
862       new com.google.protobuf.AbstractParser<SourceRepository>() {
863         @java.lang.Override
864         public SourceRepository parsePartialFrom(
865             com.google.protobuf.CodedInputStream input,
866             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
867             throws com.google.protobuf.InvalidProtocolBufferException {
868           Builder builder = newBuilder();
869           try {
870             builder.mergeFrom(input, extensionRegistry);
871           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
872             throw e.setUnfinishedMessage(builder.buildPartial());
873           } catch (com.google.protobuf.UninitializedMessageException e) {
874             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
875           } catch (java.io.IOException e) {
876             throw new com.google.protobuf.InvalidProtocolBufferException(e)
877                 .setUnfinishedMessage(builder.buildPartial());
878           }
879           return builder.buildPartial();
880         }
881       };
882 
parser()883   public static com.google.protobuf.Parser<SourceRepository> parser() {
884     return PARSER;
885   }
886 
887   @java.lang.Override
getParserForType()888   public com.google.protobuf.Parser<SourceRepository> getParserForType() {
889     return PARSER;
890   }
891 
892   @java.lang.Override
getDefaultInstanceForType()893   public com.google.cloud.functions.v1.SourceRepository getDefaultInstanceForType() {
894     return DEFAULT_INSTANCE;
895   }
896 }
897