All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dialogflow/cx/v3beta1/flow.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.dialogflow.cx.v3beta1;

/**
 *
 *
 * 
 * The request message for
 * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow].
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} */ public final class ImportFlowRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) ImportFlowRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ImportFlowRequest.newBuilder() to construct. private ImportFlowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImportFlowRequest() { parent_ = ""; importOption_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportFlowRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.FlowProto .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportFlowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.FlowProto .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportFlowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.class, com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.Builder.class); } /** * * *
   * Import option.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption} */ public enum ImportOption implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified. Treated as `KEEP`.
     * 
* * IMPORT_OPTION_UNSPECIFIED = 0; */ IMPORT_OPTION_UNSPECIFIED(0), /** * * *
     * Always respect settings in exported flow content. It may cause a
     * import failure if some settings (e.g. custom NLU) are not supported in
     * the agent to import into.
     * 
* * KEEP = 1; */ KEEP(1), /** * * *
     * Fallback to default settings if some settings are not supported in the
     * agent to import into. E.g. Standard NLU will be used if custom NLU is
     * not available.
     * 
* * FALLBACK = 2; */ FALLBACK(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified. Treated as `KEEP`.
     * 
* * IMPORT_OPTION_UNSPECIFIED = 0; */ public static final int IMPORT_OPTION_UNSPECIFIED_VALUE = 0; /** * * *
     * Always respect settings in exported flow content. It may cause a
     * import failure if some settings (e.g. custom NLU) are not supported in
     * the agent to import into.
     * 
* * KEEP = 1; */ public static final int KEEP_VALUE = 1; /** * * *
     * Fallback to default settings if some settings are not supported in the
     * agent to import into. E.g. Standard NLU will be used if custom NLU is
     * not available.
     * 
* * FALLBACK = 2; */ public static final int FALLBACK_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ImportOption valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static ImportOption forNumber(int value) { switch (value) { case 0: return IMPORT_OPTION_UNSPECIFIED; case 1: return KEEP; case 2: return FALLBACK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ImportOption findValueByNumber(int number) { return ImportOption.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.getDescriptor() .getEnumTypes() .get(0); } private static final ImportOption[] VALUES = values(); public static ImportOption valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ImportOption(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption) } private int bitField0_; private int flowCase_ = 0; @SuppressWarnings("serial") private java.lang.Object flow_; public enum FlowCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FLOW_URI(2), FLOW_CONTENT(3), FLOW_NOT_SET(0); private final int value; private FlowCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FlowCase valueOf(int value) { return forNumber(value); } public static FlowCase forNumber(int value) { switch (value) { case 2: return FLOW_URI; case 3: return FLOW_CONTENT; case 0: return FLOW_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FlowCase getFlowCase() { return FlowCase.forNumber(flowCase_); } public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** * * *
   * Required. The agent to import the flow into.
   * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** * * *
   * Required. The agent to import the flow into.
   * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
   * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FLOW_URI_FIELD_NUMBER = 2; /** * * *
   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
   * to import flow from. The format of this URI must be
   * `gs://<bucket-name>/<object-name>`.
   *
   * Dialogflow performs a read operation for the Cloud Storage object
   * on the caller's behalf, so your request authentication must
   * have read permissions for the object. For more information, see
   * [Dialogflow access
   * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
   * 
* * string flow_uri = 2; * * @return Whether the flowUri field is set. */ public boolean hasFlowUri() { return flowCase_ == 2; } /** * * *
   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
   * to import flow from. The format of this URI must be
   * `gs://<bucket-name>/<object-name>`.
   *
   * Dialogflow performs a read operation for the Cloud Storage object
   * on the caller's behalf, so your request authentication must
   * have read permissions for the object. For more information, see
   * [Dialogflow access
   * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
   * 
* * string flow_uri = 2; * * @return The flowUri. */ public java.lang.String getFlowUri() { java.lang.Object ref = ""; if (flowCase_ == 2) { ref = flow_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (flowCase_ == 2) { flow_ = s; } return s; } } /** * * *
   * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
   * to import flow from. The format of this URI must be
   * `gs://<bucket-name>/<object-name>`.
   *
   * Dialogflow performs a read operation for the Cloud Storage object
   * on the caller's behalf, so your request authentication must
   * have read permissions for the object. For more information, see
   * [Dialogflow access
   * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
   * 
* * string flow_uri = 2; * * @return The bytes for flowUri. */ public com.google.protobuf.ByteString getFlowUriBytes() { java.lang.Object ref = ""; if (flowCase_ == 2) { ref = flow_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (flowCase_ == 2) { flow_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FLOW_CONTENT_FIELD_NUMBER = 3; /** * * *
   * Uncompressed raw byte content for flow.
   * 
* * bytes flow_content = 3; * * @return Whether the flowContent field is set. */ @java.lang.Override public boolean hasFlowContent() { return flowCase_ == 3; } /** * * *
   * Uncompressed raw byte content for flow.
   * 
* * bytes flow_content = 3; * * @return The flowContent. */ @java.lang.Override public com.google.protobuf.ByteString getFlowContent() { if (flowCase_ == 3) { return (com.google.protobuf.ByteString) flow_; } return com.google.protobuf.ByteString.EMPTY; } public static final int IMPORT_OPTION_FIELD_NUMBER = 4; private int importOption_ = 0; /** * * *
   * Flow import mode. If not specified, `KEEP` is assumed.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @return The enum numeric value on the wire for importOption. */ @java.lang.Override public int getImportOptionValue() { return importOption_; } /** * * *
   * Flow import mode. If not specified, `KEEP` is assumed.
   * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @return The importOption. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption getImportOption() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption result = com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.forNumber( importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.UNRECOGNIZED : result; } public static final int FLOW_IMPORT_STRATEGY_FIELD_NUMBER = 5; private com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flowImportStrategy_; /** * * *
   * Optional. Specifies the import strategy used when resolving resource
   * conflicts.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the flowImportStrategy field is set. */ @java.lang.Override public boolean hasFlowImportStrategy() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Optional. Specifies the import strategy used when resolving resource
   * conflicts.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The flowImportStrategy. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy getFlowImportStrategy() { return flowImportStrategy_ == null ? com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.getDefaultInstance() : flowImportStrategy_; } /** * * *
   * Optional. Specifies the import strategy used when resolving resource
   * conflicts.
   * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategyOrBuilder getFlowImportStrategyOrBuilder() { return flowImportStrategy_ == null ? com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.getDefaultInstance() : flowImportStrategy_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (flowCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flow_); } if (flowCase_ == 3) { output.writeBytes(3, (com.google.protobuf.ByteString) flow_); } if (importOption_ != com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption .IMPORT_OPTION_UNSPECIFIED .getNumber()) { output.writeEnum(4, importOption_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getFlowImportStrategy()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (flowCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flow_); } if (flowCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeBytesSize( 3, (com.google.protobuf.ByteString) flow_); } if (importOption_ != com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption .IMPORT_OPTION_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, importOption_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFlowImportStrategy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest other = (com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) obj; if (!getParent().equals(other.getParent())) return false; if (importOption_ != other.importOption_) return false; if (hasFlowImportStrategy() != other.hasFlowImportStrategy()) return false; if (hasFlowImportStrategy()) { if (!getFlowImportStrategy().equals(other.getFlowImportStrategy())) return false; } if (!getFlowCase().equals(other.getFlowCase())) return false; switch (flowCase_) { case 2: if (!getFlowUri().equals(other.getFlowUri())) return false; break; case 3: if (!getFlowContent().equals(other.getFlowContent())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + IMPORT_OPTION_FIELD_NUMBER; hash = (53 * hash) + importOption_; if (hasFlowImportStrategy()) { hash = (37 * hash) + FLOW_IMPORT_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getFlowImportStrategy().hashCode(); } switch (flowCase_) { case 2: hash = (37 * hash) + FLOW_URI_FIELD_NUMBER; hash = (53 * hash) + getFlowUri().hashCode(); break; case 3: hash = (37 * hash) + FLOW_CONTENT_FIELD_NUMBER; hash = (53 * hash) + getFlowContent().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * The request message for
   * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow].
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.FlowProto .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportFlowRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3beta1.FlowProto .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportFlowRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.class, com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFlowImportStrategyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; importOption_ = 0; flowImportStrategy_ = null; if (flowImportStrategyBuilder_ != null) { flowImportStrategyBuilder_.dispose(); flowImportStrategyBuilder_ = null; } flowCase_ = 0; flow_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3beta1.FlowProto .internal_static_google_cloud_dialogflow_cx_v3beta1_ImportFlowRequest_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest build() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.importOption_ = importOption_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.flowImportStrategy_ = flowImportStrategyBuilder_ == null ? flowImportStrategy_ : flowImportStrategyBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs( com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result) { result.flowCase_ = flowCase_; result.flow_ = this.flow_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) { return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } if (other.importOption_ != 0) { setImportOptionValue(other.getImportOptionValue()); } if (other.hasFlowImportStrategy()) { mergeFlowImportStrategy(other.getFlowImportStrategy()); } switch (other.getFlowCase()) { case FLOW_URI: { flowCase_ = 2; flow_ = other.flow_; onChanged(); break; } case FLOW_CONTENT: { setFlowContent(other.getFlowContent()); break; } case FLOW_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { parent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); flowCase_ = 2; flow_ = s; break; } // case 18 case 26: { flow_ = input.readBytes(); flowCase_ = 3; break; } // case 26 case 32: { importOption_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage( getFlowImportStrategyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int flowCase_ = 0; private java.lang.Object flow_; public FlowCase getFlowCase() { return FlowCase.forNumber(flowCase_); } public Builder clearFlow() { flowCase_ = 0; flow_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object parent_ = ""; /** * * *
     * Required. The agent to import the flow into.
     * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The agent to import the flow into.
     * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The agent to import the flow into.
     * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The parent to set. * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. The agent to import the flow into.
     * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Required. The agent to import the flow into.
     * Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
     * 
* * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for parent to set. * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @return Whether the flowUri field is set. */ @java.lang.Override public boolean hasFlowUri() { return flowCase_ == 2; } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @return The flowUri. */ @java.lang.Override public java.lang.String getFlowUri() { java.lang.Object ref = ""; if (flowCase_ == 2) { ref = flow_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (flowCase_ == 2) { flow_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @return The bytes for flowUri. */ @java.lang.Override public com.google.protobuf.ByteString getFlowUriBytes() { java.lang.Object ref = ""; if (flowCase_ == 2) { ref = flow_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (flowCase_ == 2) { flow_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @param value The flowUri to set. * @return This builder for chaining. */ public Builder setFlowUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } flowCase_ = 2; flow_ = value; onChanged(); return this; } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @return This builder for chaining. */ public Builder clearFlowUri() { if (flowCase_ == 2) { flowCase_ = 0; flow_ = null; onChanged(); } return this; } /** * * *
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to import flow from. The format of this URI must be
     * `gs://<bucket-name>/<object-name>`.
     *
     * Dialogflow performs a read operation for the Cloud Storage object
     * on the caller's behalf, so your request authentication must
     * have read permissions for the object. For more information, see
     * [Dialogflow access
     * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
     * 
* * string flow_uri = 2; * * @param value The bytes for flowUri to set. * @return This builder for chaining. */ public Builder setFlowUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); flowCase_ = 2; flow_ = value; onChanged(); return this; } /** * * *
     * Uncompressed raw byte content for flow.
     * 
* * bytes flow_content = 3; * * @return Whether the flowContent field is set. */ public boolean hasFlowContent() { return flowCase_ == 3; } /** * * *
     * Uncompressed raw byte content for flow.
     * 
* * bytes flow_content = 3; * * @return The flowContent. */ public com.google.protobuf.ByteString getFlowContent() { if (flowCase_ == 3) { return (com.google.protobuf.ByteString) flow_; } return com.google.protobuf.ByteString.EMPTY; } /** * * *
     * Uncompressed raw byte content for flow.
     * 
* * bytes flow_content = 3; * * @param value The flowContent to set. * @return This builder for chaining. */ public Builder setFlowContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } flowCase_ = 3; flow_ = value; onChanged(); return this; } /** * * *
     * Uncompressed raw byte content for flow.
     * 
* * bytes flow_content = 3; * * @return This builder for chaining. */ public Builder clearFlowContent() { if (flowCase_ == 3) { flowCase_ = 0; flow_ = null; onChanged(); } return this; } private int importOption_ = 0; /** * * *
     * Flow import mode. If not specified, `KEEP` is assumed.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @return The enum numeric value on the wire for importOption. */ @java.lang.Override public int getImportOptionValue() { return importOption_; } /** * * *
     * Flow import mode. If not specified, `KEEP` is assumed.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @param value The enum numeric value on the wire for importOption to set. * @return This builder for chaining. */ public Builder setImportOptionValue(int value) { importOption_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Flow import mode. If not specified, `KEEP` is assumed.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @return The importOption. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption getImportOption() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption result = com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.forNumber( importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.UNRECOGNIZED : result; } /** * * *
     * Flow import mode. If not specified, `KEEP` is assumed.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @param value The importOption to set. * @return This builder for chaining. */ public Builder setImportOption( com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; importOption_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Flow import mode. If not specified, `KEEP` is assumed.
     * 
* * .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4; * * * @return This builder for chaining. */ public Builder clearImportOption() { bitField0_ = (bitField0_ & ~0x00000008); importOption_ = 0; onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flowImportStrategy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.Builder, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategyOrBuilder> flowImportStrategyBuilder_; /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the flowImportStrategy field is set. */ public boolean hasFlowImportStrategy() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The flowImportStrategy. */ public com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy getFlowImportStrategy() { if (flowImportStrategyBuilder_ == null) { return flowImportStrategy_ == null ? com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.getDefaultInstance() : flowImportStrategy_; } else { return flowImportStrategyBuilder_.getMessage(); } } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFlowImportStrategy( com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy value) { if (flowImportStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flowImportStrategy_ = value; } else { flowImportStrategyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setFlowImportStrategy( com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.Builder builderForValue) { if (flowImportStrategyBuilder_ == null) { flowImportStrategy_ = builderForValue.build(); } else { flowImportStrategyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeFlowImportStrategy( com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy value) { if (flowImportStrategyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && flowImportStrategy_ != null && flowImportStrategy_ != com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.getDefaultInstance()) { getFlowImportStrategyBuilder().mergeFrom(value); } else { flowImportStrategy_ = value; } } else { flowImportStrategyBuilder_.mergeFrom(value); } if (flowImportStrategy_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearFlowImportStrategy() { bitField0_ = (bitField0_ & ~0x00000010); flowImportStrategy_ = null; if (flowImportStrategyBuilder_ != null) { flowImportStrategyBuilder_.dispose(); flowImportStrategyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.Builder getFlowImportStrategyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getFlowImportStrategyFieldBuilder().getBuilder(); } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategyOrBuilder getFlowImportStrategyOrBuilder() { if (flowImportStrategyBuilder_ != null) { return flowImportStrategyBuilder_.getMessageOrBuilder(); } else { return flowImportStrategy_ == null ? com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.getDefaultInstance() : flowImportStrategy_; } } /** * * *
     * Optional. Specifies the import strategy used when resolving resource
     * conflicts.
     * 
* * * .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.Builder, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategyOrBuilder> getFlowImportStrategyFieldBuilder() { if (flowImportStrategyBuilder_ == null) { flowImportStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.Builder, com.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategyOrBuilder>( getFlowImportStrategy(), getParentForChildren(), isClean()); flowImportStrategy_ = null; } return flowImportStrategyBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) private static final com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); } public static com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImportFlowRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy