• 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/dialogflow/cx/v3beta1/flow.proto
18 
19 package com.google.cloud.dialogflow.cx.v3beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The request message for
26  * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlow].
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest}
30  */
31 public final class ExportFlowRequest extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest)
34     ExportFlowRequestOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use ExportFlowRequest.newBuilder() to construct.
ExportFlowRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private ExportFlowRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
ExportFlowRequest()41   private ExportFlowRequest() {
42     name_ = "";
43     flowUri_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new ExportFlowRequest();
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.dialogflow.cx.v3beta1.FlowProto
59         .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportFlowRequest_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.dialogflow.cx.v3beta1.FlowProto
66         .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportFlowRequest_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.class,
69             com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.Builder.class);
70   }
71 
72   public static final int NAME_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object name_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Required. The name of the flow to export.
81    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
82    * ID&gt;/flows/&lt;Flow ID&gt;`.
83    * </pre>
84    *
85    * <code>
86    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
87    * </code>
88    *
89    * @return The name.
90    */
91   @java.lang.Override
getName()92   public java.lang.String getName() {
93     java.lang.Object ref = name_;
94     if (ref instanceof java.lang.String) {
95       return (java.lang.String) ref;
96     } else {
97       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
98       java.lang.String s = bs.toStringUtf8();
99       name_ = s;
100       return s;
101     }
102   }
103   /**
104    *
105    *
106    * <pre>
107    * Required. The name of the flow to export.
108    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
109    * ID&gt;/flows/&lt;Flow ID&gt;`.
110    * </pre>
111    *
112    * <code>
113    * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
114    * </code>
115    *
116    * @return The bytes for name.
117    */
118   @java.lang.Override
getNameBytes()119   public com.google.protobuf.ByteString getNameBytes() {
120     java.lang.Object ref = name_;
121     if (ref instanceof java.lang.String) {
122       com.google.protobuf.ByteString b =
123           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
124       name_ = b;
125       return b;
126     } else {
127       return (com.google.protobuf.ByteString) ref;
128     }
129   }
130 
131   public static final int FLOW_URI_FIELD_NUMBER = 2;
132 
133   @SuppressWarnings("serial")
134   private volatile java.lang.Object flowUri_ = "";
135   /**
136    *
137    *
138    * <pre>
139    * Optional. The [Google Cloud
140    * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
141    * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
142    * unspecified, the serialized flow is returned inline.
143    * Dialogflow performs a write operation for the Cloud Storage object
144    * on the caller's behalf, so your request authentication must
145    * have write permissions for the object. For more information, see
146    * [Dialogflow access
147    * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
148    * </pre>
149    *
150    * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
151    *
152    * @return The flowUri.
153    */
154   @java.lang.Override
getFlowUri()155   public java.lang.String getFlowUri() {
156     java.lang.Object ref = flowUri_;
157     if (ref instanceof java.lang.String) {
158       return (java.lang.String) ref;
159     } else {
160       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
161       java.lang.String s = bs.toStringUtf8();
162       flowUri_ = s;
163       return s;
164     }
165   }
166   /**
167    *
168    *
169    * <pre>
170    * Optional. The [Google Cloud
171    * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
172    * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
173    * unspecified, the serialized flow is returned inline.
174    * Dialogflow performs a write operation for the Cloud Storage object
175    * on the caller's behalf, so your request authentication must
176    * have write permissions for the object. For more information, see
177    * [Dialogflow access
178    * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
179    * </pre>
180    *
181    * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
182    *
183    * @return The bytes for flowUri.
184    */
185   @java.lang.Override
getFlowUriBytes()186   public com.google.protobuf.ByteString getFlowUriBytes() {
187     java.lang.Object ref = flowUri_;
188     if (ref instanceof java.lang.String) {
189       com.google.protobuf.ByteString b =
190           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
191       flowUri_ = b;
192       return b;
193     } else {
194       return (com.google.protobuf.ByteString) ref;
195     }
196   }
197 
198   public static final int INCLUDE_REFERENCED_FLOWS_FIELD_NUMBER = 4;
199   private boolean includeReferencedFlows_ = false;
200   /**
201    *
202    *
203    * <pre>
204    * Optional. Whether to export flows referenced by the specified flow.
205    * </pre>
206    *
207    * <code>bool include_referenced_flows = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
208    *
209    * @return The includeReferencedFlows.
210    */
211   @java.lang.Override
getIncludeReferencedFlows()212   public boolean getIncludeReferencedFlows() {
213     return includeReferencedFlows_;
214   }
215 
216   private byte memoizedIsInitialized = -1;
217 
218   @java.lang.Override
isInitialized()219   public final boolean isInitialized() {
220     byte isInitialized = memoizedIsInitialized;
221     if (isInitialized == 1) return true;
222     if (isInitialized == 0) return false;
223 
224     memoizedIsInitialized = 1;
225     return true;
226   }
227 
228   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)229   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
230     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
231       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
232     }
233     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) {
234       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flowUri_);
235     }
236     if (includeReferencedFlows_ != false) {
237       output.writeBool(4, includeReferencedFlows_);
238     }
239     getUnknownFields().writeTo(output);
240   }
241 
242   @java.lang.Override
getSerializedSize()243   public int getSerializedSize() {
244     int size = memoizedSize;
245     if (size != -1) return size;
246 
247     size = 0;
248     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
249       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
250     }
251     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flowUri_)) {
252       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flowUri_);
253     }
254     if (includeReferencedFlows_ != false) {
255       size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, includeReferencedFlows_);
256     }
257     size += getUnknownFields().getSerializedSize();
258     memoizedSize = size;
259     return size;
260   }
261 
262   @java.lang.Override
equals(final java.lang.Object obj)263   public boolean equals(final java.lang.Object obj) {
264     if (obj == this) {
265       return true;
266     }
267     if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest)) {
268       return super.equals(obj);
269     }
270     com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest other =
271         (com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) obj;
272 
273     if (!getName().equals(other.getName())) return false;
274     if (!getFlowUri().equals(other.getFlowUri())) return false;
275     if (getIncludeReferencedFlows() != other.getIncludeReferencedFlows()) return false;
276     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
277     return true;
278   }
279 
280   @java.lang.Override
hashCode()281   public int hashCode() {
282     if (memoizedHashCode != 0) {
283       return memoizedHashCode;
284     }
285     int hash = 41;
286     hash = (19 * hash) + getDescriptor().hashCode();
287     hash = (37 * hash) + NAME_FIELD_NUMBER;
288     hash = (53 * hash) + getName().hashCode();
289     hash = (37 * hash) + FLOW_URI_FIELD_NUMBER;
290     hash = (53 * hash) + getFlowUri().hashCode();
291     hash = (37 * hash) + INCLUDE_REFERENCED_FLOWS_FIELD_NUMBER;
292     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeReferencedFlows());
293     hash = (29 * hash) + getUnknownFields().hashCode();
294     memoizedHashCode = hash;
295     return hash;
296   }
297 
parseFrom( java.nio.ByteBuffer data)298   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
299       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
300     return PARSER.parseFrom(data);
301   }
302 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)303   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
304       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
305       throws com.google.protobuf.InvalidProtocolBufferException {
306     return PARSER.parseFrom(data, extensionRegistry);
307   }
308 
parseFrom( com.google.protobuf.ByteString data)309   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
310       com.google.protobuf.ByteString data)
311       throws com.google.protobuf.InvalidProtocolBufferException {
312     return PARSER.parseFrom(data);
313   }
314 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)315   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
316       com.google.protobuf.ByteString data,
317       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318       throws com.google.protobuf.InvalidProtocolBufferException {
319     return PARSER.parseFrom(data, extensionRegistry);
320   }
321 
parseFrom(byte[] data)322   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(byte[] data)
323       throws com.google.protobuf.InvalidProtocolBufferException {
324     return PARSER.parseFrom(data);
325   }
326 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)327   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
328       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
329       throws com.google.protobuf.InvalidProtocolBufferException {
330     return PARSER.parseFrom(data, extensionRegistry);
331   }
332 
parseFrom( java.io.InputStream input)333   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
334       java.io.InputStream input) throws java.io.IOException {
335     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
336   }
337 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)338   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
339       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
340       throws java.io.IOException {
341     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
342         PARSER, input, extensionRegistry);
343   }
344 
parseDelimitedFrom( java.io.InputStream input)345   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseDelimitedFrom(
346       java.io.InputStream input) throws java.io.IOException {
347     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
348   }
349 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)350   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseDelimitedFrom(
351       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
352       throws java.io.IOException {
353     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
354         PARSER, input, extensionRegistry);
355   }
356 
parseFrom( com.google.protobuf.CodedInputStream input)357   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
358       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
359     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
360   }
361 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)362   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest parseFrom(
363       com.google.protobuf.CodedInputStream input,
364       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
365       throws java.io.IOException {
366     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
367         PARSER, input, extensionRegistry);
368   }
369 
370   @java.lang.Override
newBuilderForType()371   public Builder newBuilderForType() {
372     return newBuilder();
373   }
374 
newBuilder()375   public static Builder newBuilder() {
376     return DEFAULT_INSTANCE.toBuilder();
377   }
378 
newBuilder( com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest prototype)379   public static Builder newBuilder(
380       com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest prototype) {
381     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
382   }
383 
384   @java.lang.Override
toBuilder()385   public Builder toBuilder() {
386     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
387   }
388 
389   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)390   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
391     Builder builder = new Builder(parent);
392     return builder;
393   }
394   /**
395    *
396    *
397    * <pre>
398    * The request message for
399    * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlow].
400    * </pre>
401    *
402    * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest}
403    */
404   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
405       implements
406       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest)
407       com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequestOrBuilder {
getDescriptor()408     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
409       return com.google.cloud.dialogflow.cx.v3beta1.FlowProto
410           .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportFlowRequest_descriptor;
411     }
412 
413     @java.lang.Override
414     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()415         internalGetFieldAccessorTable() {
416       return com.google.cloud.dialogflow.cx.v3beta1.FlowProto
417           .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportFlowRequest_fieldAccessorTable
418           .ensureFieldAccessorsInitialized(
419               com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.class,
420               com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.Builder.class);
421     }
422 
423     // Construct using com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.newBuilder()
Builder()424     private Builder() {}
425 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)426     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
427       super(parent);
428     }
429 
430     @java.lang.Override
clear()431     public Builder clear() {
432       super.clear();
433       bitField0_ = 0;
434       name_ = "";
435       flowUri_ = "";
436       includeReferencedFlows_ = false;
437       return this;
438     }
439 
440     @java.lang.Override
getDescriptorForType()441     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
442       return com.google.cloud.dialogflow.cx.v3beta1.FlowProto
443           .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportFlowRequest_descriptor;
444     }
445 
446     @java.lang.Override
getDefaultInstanceForType()447     public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest getDefaultInstanceForType() {
448       return com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.getDefaultInstance();
449     }
450 
451     @java.lang.Override
build()452     public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest build() {
453       com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result = buildPartial();
454       if (!result.isInitialized()) {
455         throw newUninitializedMessageException(result);
456       }
457       return result;
458     }
459 
460     @java.lang.Override
buildPartial()461     public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest buildPartial() {
462       com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result =
463           new com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(this);
464       if (bitField0_ != 0) {
465         buildPartial0(result);
466       }
467       onBuilt();
468       return result;
469     }
470 
buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result)471     private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result) {
472       int from_bitField0_ = bitField0_;
473       if (((from_bitField0_ & 0x00000001) != 0)) {
474         result.name_ = name_;
475       }
476       if (((from_bitField0_ & 0x00000002) != 0)) {
477         result.flowUri_ = flowUri_;
478       }
479       if (((from_bitField0_ & 0x00000004) != 0)) {
480         result.includeReferencedFlows_ = includeReferencedFlows_;
481       }
482     }
483 
484     @java.lang.Override
clone()485     public Builder clone() {
486       return super.clone();
487     }
488 
489     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)490     public Builder setField(
491         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
492       return super.setField(field, value);
493     }
494 
495     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)496     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
497       return super.clearField(field);
498     }
499 
500     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)501     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
502       return super.clearOneof(oneof);
503     }
504 
505     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)506     public Builder setRepeatedField(
507         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
508       return super.setRepeatedField(field, index, value);
509     }
510 
511     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)512     public Builder addRepeatedField(
513         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
514       return super.addRepeatedField(field, value);
515     }
516 
517     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)518     public Builder mergeFrom(com.google.protobuf.Message other) {
519       if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) {
520         return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) other);
521       } else {
522         super.mergeFrom(other);
523         return this;
524       }
525     }
526 
mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest other)527     public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest other) {
528       if (other == com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.getDefaultInstance())
529         return this;
530       if (!other.getName().isEmpty()) {
531         name_ = other.name_;
532         bitField0_ |= 0x00000001;
533         onChanged();
534       }
535       if (!other.getFlowUri().isEmpty()) {
536         flowUri_ = other.flowUri_;
537         bitField0_ |= 0x00000002;
538         onChanged();
539       }
540       if (other.getIncludeReferencedFlows() != false) {
541         setIncludeReferencedFlows(other.getIncludeReferencedFlows());
542       }
543       this.mergeUnknownFields(other.getUnknownFields());
544       onChanged();
545       return this;
546     }
547 
548     @java.lang.Override
isInitialized()549     public final boolean isInitialized() {
550       return true;
551     }
552 
553     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)554     public Builder mergeFrom(
555         com.google.protobuf.CodedInputStream input,
556         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
557         throws java.io.IOException {
558       if (extensionRegistry == null) {
559         throw new java.lang.NullPointerException();
560       }
561       try {
562         boolean done = false;
563         while (!done) {
564           int tag = input.readTag();
565           switch (tag) {
566             case 0:
567               done = true;
568               break;
569             case 10:
570               {
571                 name_ = input.readStringRequireUtf8();
572                 bitField0_ |= 0x00000001;
573                 break;
574               } // case 10
575             case 18:
576               {
577                 flowUri_ = input.readStringRequireUtf8();
578                 bitField0_ |= 0x00000002;
579                 break;
580               } // case 18
581             case 32:
582               {
583                 includeReferencedFlows_ = input.readBool();
584                 bitField0_ |= 0x00000004;
585                 break;
586               } // case 32
587             default:
588               {
589                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
590                   done = true; // was an endgroup tag
591                 }
592                 break;
593               } // default:
594           } // switch (tag)
595         } // while (!done)
596       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
597         throw e.unwrapIOException();
598       } finally {
599         onChanged();
600       } // finally
601       return this;
602     }
603 
604     private int bitField0_;
605 
606     private java.lang.Object name_ = "";
607     /**
608      *
609      *
610      * <pre>
611      * Required. The name of the flow to export.
612      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
613      * ID&gt;/flows/&lt;Flow ID&gt;`.
614      * </pre>
615      *
616      * <code>
617      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
618      * </code>
619      *
620      * @return The name.
621      */
getName()622     public java.lang.String getName() {
623       java.lang.Object ref = name_;
624       if (!(ref instanceof java.lang.String)) {
625         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
626         java.lang.String s = bs.toStringUtf8();
627         name_ = s;
628         return s;
629       } else {
630         return (java.lang.String) ref;
631       }
632     }
633     /**
634      *
635      *
636      * <pre>
637      * Required. The name of the flow to export.
638      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
639      * ID&gt;/flows/&lt;Flow ID&gt;`.
640      * </pre>
641      *
642      * <code>
643      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
644      * </code>
645      *
646      * @return The bytes for name.
647      */
getNameBytes()648     public com.google.protobuf.ByteString getNameBytes() {
649       java.lang.Object ref = name_;
650       if (ref instanceof String) {
651         com.google.protobuf.ByteString b =
652             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
653         name_ = b;
654         return b;
655       } else {
656         return (com.google.protobuf.ByteString) ref;
657       }
658     }
659     /**
660      *
661      *
662      * <pre>
663      * Required. The name of the flow to export.
664      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
665      * ID&gt;/flows/&lt;Flow ID&gt;`.
666      * </pre>
667      *
668      * <code>
669      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
670      * </code>
671      *
672      * @param value The name to set.
673      * @return This builder for chaining.
674      */
setName(java.lang.String value)675     public Builder setName(java.lang.String value) {
676       if (value == null) {
677         throw new NullPointerException();
678       }
679       name_ = value;
680       bitField0_ |= 0x00000001;
681       onChanged();
682       return this;
683     }
684     /**
685      *
686      *
687      * <pre>
688      * Required. The name of the flow to export.
689      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
690      * ID&gt;/flows/&lt;Flow ID&gt;`.
691      * </pre>
692      *
693      * <code>
694      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
695      * </code>
696      *
697      * @return This builder for chaining.
698      */
clearName()699     public Builder clearName() {
700       name_ = getDefaultInstance().getName();
701       bitField0_ = (bitField0_ & ~0x00000001);
702       onChanged();
703       return this;
704     }
705     /**
706      *
707      *
708      * <pre>
709      * Required. The name of the flow to export.
710      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
711      * ID&gt;/flows/&lt;Flow ID&gt;`.
712      * </pre>
713      *
714      * <code>
715      * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
716      * </code>
717      *
718      * @param value The bytes for name to set.
719      * @return This builder for chaining.
720      */
setNameBytes(com.google.protobuf.ByteString value)721     public Builder setNameBytes(com.google.protobuf.ByteString value) {
722       if (value == null) {
723         throw new NullPointerException();
724       }
725       checkByteStringIsUtf8(value);
726       name_ = value;
727       bitField0_ |= 0x00000001;
728       onChanged();
729       return this;
730     }
731 
732     private java.lang.Object flowUri_ = "";
733     /**
734      *
735      *
736      * <pre>
737      * Optional. The [Google Cloud
738      * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
739      * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
740      * unspecified, the serialized flow is returned inline.
741      * Dialogflow performs a write operation for the Cloud Storage object
742      * on the caller's behalf, so your request authentication must
743      * have write permissions for the object. For more information, see
744      * [Dialogflow access
745      * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
746      * </pre>
747      *
748      * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
749      *
750      * @return The flowUri.
751      */
getFlowUri()752     public java.lang.String getFlowUri() {
753       java.lang.Object ref = flowUri_;
754       if (!(ref instanceof java.lang.String)) {
755         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
756         java.lang.String s = bs.toStringUtf8();
757         flowUri_ = s;
758         return s;
759       } else {
760         return (java.lang.String) ref;
761       }
762     }
763     /**
764      *
765      *
766      * <pre>
767      * Optional. The [Google Cloud
768      * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
769      * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
770      * unspecified, the serialized flow is returned inline.
771      * Dialogflow performs a write operation for the Cloud Storage object
772      * on the caller's behalf, so your request authentication must
773      * have write permissions for the object. For more information, see
774      * [Dialogflow access
775      * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
776      * </pre>
777      *
778      * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
779      *
780      * @return The bytes for flowUri.
781      */
getFlowUriBytes()782     public com.google.protobuf.ByteString getFlowUriBytes() {
783       java.lang.Object ref = flowUri_;
784       if (ref instanceof String) {
785         com.google.protobuf.ByteString b =
786             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
787         flowUri_ = b;
788         return b;
789       } else {
790         return (com.google.protobuf.ByteString) ref;
791       }
792     }
793     /**
794      *
795      *
796      * <pre>
797      * Optional. The [Google Cloud
798      * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
799      * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
800      * unspecified, the serialized flow is returned inline.
801      * Dialogflow performs a write operation for the Cloud Storage object
802      * on the caller's behalf, so your request authentication must
803      * have write permissions for the object. For more information, see
804      * [Dialogflow access
805      * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
806      * </pre>
807      *
808      * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
809      *
810      * @param value The flowUri to set.
811      * @return This builder for chaining.
812      */
setFlowUri(java.lang.String value)813     public Builder setFlowUri(java.lang.String value) {
814       if (value == null) {
815         throw new NullPointerException();
816       }
817       flowUri_ = value;
818       bitField0_ |= 0x00000002;
819       onChanged();
820       return this;
821     }
822     /**
823      *
824      *
825      * <pre>
826      * Optional. The [Google Cloud
827      * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
828      * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
829      * unspecified, the serialized flow is returned inline.
830      * Dialogflow performs a write operation for the Cloud Storage object
831      * on the caller's behalf, so your request authentication must
832      * have write permissions for the object. For more information, see
833      * [Dialogflow access
834      * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
835      * </pre>
836      *
837      * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
838      *
839      * @return This builder for chaining.
840      */
clearFlowUri()841     public Builder clearFlowUri() {
842       flowUri_ = getDefaultInstance().getFlowUri();
843       bitField0_ = (bitField0_ & ~0x00000002);
844       onChanged();
845       return this;
846     }
847     /**
848      *
849      *
850      * <pre>
851      * Optional. The [Google Cloud
852      * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
853      * The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`. If left
854      * unspecified, the serialized flow is returned inline.
855      * Dialogflow performs a write operation for the Cloud Storage object
856      * on the caller's behalf, so your request authentication must
857      * have write permissions for the object. For more information, see
858      * [Dialogflow access
859      * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
860      * </pre>
861      *
862      * <code>string flow_uri = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
863      *
864      * @param value The bytes for flowUri to set.
865      * @return This builder for chaining.
866      */
setFlowUriBytes(com.google.protobuf.ByteString value)867     public Builder setFlowUriBytes(com.google.protobuf.ByteString value) {
868       if (value == null) {
869         throw new NullPointerException();
870       }
871       checkByteStringIsUtf8(value);
872       flowUri_ = value;
873       bitField0_ |= 0x00000002;
874       onChanged();
875       return this;
876     }
877 
878     private boolean includeReferencedFlows_;
879     /**
880      *
881      *
882      * <pre>
883      * Optional. Whether to export flows referenced by the specified flow.
884      * </pre>
885      *
886      * <code>bool include_referenced_flows = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
887      *
888      * @return The includeReferencedFlows.
889      */
890     @java.lang.Override
getIncludeReferencedFlows()891     public boolean getIncludeReferencedFlows() {
892       return includeReferencedFlows_;
893     }
894     /**
895      *
896      *
897      * <pre>
898      * Optional. Whether to export flows referenced by the specified flow.
899      * </pre>
900      *
901      * <code>bool include_referenced_flows = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
902      *
903      * @param value The includeReferencedFlows to set.
904      * @return This builder for chaining.
905      */
setIncludeReferencedFlows(boolean value)906     public Builder setIncludeReferencedFlows(boolean value) {
907 
908       includeReferencedFlows_ = value;
909       bitField0_ |= 0x00000004;
910       onChanged();
911       return this;
912     }
913     /**
914      *
915      *
916      * <pre>
917      * Optional. Whether to export flows referenced by the specified flow.
918      * </pre>
919      *
920      * <code>bool include_referenced_flows = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
921      *
922      * @return This builder for chaining.
923      */
clearIncludeReferencedFlows()924     public Builder clearIncludeReferencedFlows() {
925       bitField0_ = (bitField0_ & ~0x00000004);
926       includeReferencedFlows_ = false;
927       onChanged();
928       return this;
929     }
930 
931     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)932     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
933       return super.setUnknownFields(unknownFields);
934     }
935 
936     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)937     public final Builder mergeUnknownFields(
938         final com.google.protobuf.UnknownFieldSet unknownFields) {
939       return super.mergeUnknownFields(unknownFields);
940     }
941 
942     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest)
943   }
944 
945   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest)
946   private static final com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest DEFAULT_INSTANCE;
947 
948   static {
949     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest();
950   }
951 
getDefaultInstance()952   public static com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest getDefaultInstance() {
953     return DEFAULT_INSTANCE;
954   }
955 
956   private static final com.google.protobuf.Parser<ExportFlowRequest> PARSER =
957       new com.google.protobuf.AbstractParser<ExportFlowRequest>() {
958         @java.lang.Override
959         public ExportFlowRequest parsePartialFrom(
960             com.google.protobuf.CodedInputStream input,
961             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
962             throws com.google.protobuf.InvalidProtocolBufferException {
963           Builder builder = newBuilder();
964           try {
965             builder.mergeFrom(input, extensionRegistry);
966           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
967             throw e.setUnfinishedMessage(builder.buildPartial());
968           } catch (com.google.protobuf.UninitializedMessageException e) {
969             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
970           } catch (java.io.IOException e) {
971             throw new com.google.protobuf.InvalidProtocolBufferException(e)
972                 .setUnfinishedMessage(builder.buildPartial());
973           }
974           return builder.buildPartial();
975         }
976       };
977 
parser()978   public static com.google.protobuf.Parser<ExportFlowRequest> parser() {
979     return PARSER;
980   }
981 
982   @java.lang.Override
getParserForType()983   public com.google.protobuf.Parser<ExportFlowRequest> getParserForType() {
984     return PARSER;
985   }
986 
987   @java.lang.Override
getDefaultInstanceForType()988   public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest getDefaultInstanceForType() {
989     return DEFAULT_INSTANCE;
990   }
991 }
992