com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dialogflow-cx-v3beta1 Show documentation
Show all versions of proto-google-cloud-dialogflow-cx-v3beta1 Show documentation
PROTO library for proto-google-cloud-dialogflow-cx-v3beta1
/*
* 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/intent.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.dialogflow.cx.v3beta1;
/**
*
*
*
* The response message for
* [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse}
*/
public final class ImportIntentsResponse extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)
ImportIntentsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ImportIntentsResponse.newBuilder() to construct.
private ImportIntentsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ImportIntentsResponse() {
intents_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ImportIntentsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.class,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.Builder.class);
}
public interface ConflictingResourcesOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return A list containing the intentDisplayNames.
*/
java.util.List getIntentDisplayNamesList();
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return The count of intentDisplayNames.
*/
int getIntentDisplayNamesCount();
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the element to return.
* @return The intentDisplayNames at the given index.
*/
java.lang.String getIntentDisplayNames(int index);
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the value to return.
* @return The bytes of the intentDisplayNames at the given index.
*/
com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index);
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return A list containing the entityDisplayNames.
*/
java.util.List getEntityDisplayNamesList();
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return The count of entityDisplayNames.
*/
int getEntityDisplayNamesCount();
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the element to return.
* @return The entityDisplayNames at the given index.
*/
java.lang.String getEntityDisplayNames(int index);
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the value to return.
* @return The bytes of the entityDisplayNames at the given index.
*/
com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index);
}
/**
*
*
*
* Conflicting resources detected during the import process. Only filled when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the
* request and there are conflicts in the display names.
*
*
* Protobuf type {@code
* google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources}
*/
public static final class ConflictingResources extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
ConflictingResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConflictingResources.newBuilder() to construct.
private ConflictingResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConflictingResources() {
intentDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
entityDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ConflictingResources();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.class,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.Builder.class);
}
public static final int INTENT_DISPLAY_NAMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList intentDisplayNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return A list containing the intentDisplayNames.
*/
public com.google.protobuf.ProtocolStringList getIntentDisplayNamesList() {
return intentDisplayNames_;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return The count of intentDisplayNames.
*/
public int getIntentDisplayNamesCount() {
return intentDisplayNames_.size();
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the element to return.
* @return The intentDisplayNames at the given index.
*/
public java.lang.String getIntentDisplayNames(int index) {
return intentDisplayNames_.get(index);
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the value to return.
* @return The bytes of the intentDisplayNames at the given index.
*/
public com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index) {
return intentDisplayNames_.getByteString(index);
}
public static final int ENTITY_DISPLAY_NAMES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList entityDisplayNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return A list containing the entityDisplayNames.
*/
public com.google.protobuf.ProtocolStringList getEntityDisplayNamesList() {
return entityDisplayNames_;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return The count of entityDisplayNames.
*/
public int getEntityDisplayNamesCount() {
return entityDisplayNames_.size();
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the element to return.
* @return The entityDisplayNames at the given index.
*/
public java.lang.String getEntityDisplayNames(int index) {
return entityDisplayNames_.get(index);
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the value to return.
* @return The bytes of the entityDisplayNames at the given index.
*/
public com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index) {
return entityDisplayNames_.getByteString(index);
}
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 {
for (int i = 0; i < intentDisplayNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 1, intentDisplayNames_.getRaw(i));
}
for (int i = 0; i < entityDisplayNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 2, entityDisplayNames_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < intentDisplayNames_.size(); i++) {
dataSize += computeStringSizeNoTag(intentDisplayNames_.getRaw(i));
}
size += dataSize;
size += 1 * getIntentDisplayNamesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < entityDisplayNames_.size(); i++) {
dataSize += computeStringSizeNoTag(entityDisplayNames_.getRaw(i));
}
size += dataSize;
size += 1 * getEntityDisplayNamesList().size();
}
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.ImportIntentsResponse.ConflictingResources)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources other =
(com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources) obj;
if (!getIntentDisplayNamesList().equals(other.getIntentDisplayNamesList())) return false;
if (!getEntityDisplayNamesList().equals(other.getEntityDisplayNamesList())) return false;
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();
if (getIntentDisplayNamesCount() > 0) {
hash = (37 * hash) + INTENT_DISPLAY_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getIntentDisplayNamesList().hashCode();
}
if (getEntityDisplayNamesCount() > 0) {
hash = (37 * hash) + ENTITY_DISPLAY_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getEntityDisplayNamesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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.ImportIntentsResponse.ConflictingResources
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;
}
/**
*
*
*
* Conflicting resources detected during the import process. Only filled when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the
* request and there are conflicts in the display names.
*
*
* Protobuf type {@code
* google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.class,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.Builder.class);
}
// Construct using
// com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
intentDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
entityDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_ConflictingResources_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
build() {
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
buildPartial() {
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources result =
new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
intentDisplayNames_.makeImmutable();
result.intentDisplayNames_ = intentDisplayNames_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
entityDisplayNames_.makeImmutable();
result.entityDisplayNames_ = entityDisplayNames_;
}
}
@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.ImportIntentsResponse.ConflictingResources) {
return mergeFrom(
(com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources other) {
if (other
== com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()) return this;
if (!other.intentDisplayNames_.isEmpty()) {
if (intentDisplayNames_.isEmpty()) {
intentDisplayNames_ = other.intentDisplayNames_;
bitField0_ |= 0x00000001;
} else {
ensureIntentDisplayNamesIsMutable();
intentDisplayNames_.addAll(other.intentDisplayNames_);
}
onChanged();
}
if (!other.entityDisplayNames_.isEmpty()) {
if (entityDisplayNames_.isEmpty()) {
entityDisplayNames_ = other.entityDisplayNames_;
bitField0_ |= 0x00000002;
} else {
ensureEntityDisplayNamesIsMutable();
entityDisplayNames_.addAll(other.entityDisplayNames_);
}
onChanged();
}
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:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIntentDisplayNamesIsMutable();
intentDisplayNames_.add(s);
break;
} // case 10
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
ensureEntityDisplayNamesIsMutable();
entityDisplayNames_.add(s);
break;
} // case 18
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 bitField0_;
private com.google.protobuf.LazyStringArrayList intentDisplayNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIntentDisplayNamesIsMutable() {
if (!intentDisplayNames_.isModifiable()) {
intentDisplayNames_ = new com.google.protobuf.LazyStringArrayList(intentDisplayNames_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return A list containing the intentDisplayNames.
*/
public com.google.protobuf.ProtocolStringList getIntentDisplayNamesList() {
intentDisplayNames_.makeImmutable();
return intentDisplayNames_;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return The count of intentDisplayNames.
*/
public int getIntentDisplayNamesCount() {
return intentDisplayNames_.size();
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the element to return.
* @return The intentDisplayNames at the given index.
*/
public java.lang.String getIntentDisplayNames(int index) {
return intentDisplayNames_.get(index);
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index of the value to return.
* @return The bytes of the intentDisplayNames at the given index.
*/
public com.google.protobuf.ByteString getIntentDisplayNamesBytes(int index) {
return intentDisplayNames_.getByteString(index);
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param index The index to set the value at.
* @param value The intentDisplayNames to set.
* @return This builder for chaining.
*/
public Builder setIntentDisplayNames(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntentDisplayNamesIsMutable();
intentDisplayNames_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param value The intentDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addIntentDisplayNames(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntentDisplayNamesIsMutable();
intentDisplayNames_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param values The intentDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addAllIntentDisplayNames(java.lang.Iterable values) {
ensureIntentDisplayNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intentDisplayNames_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @return This builder for chaining.
*/
public Builder clearIntentDisplayNames() {
intentDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting intents.
*
*
* repeated string intent_display_names = 1;
*
* @param value The bytes of the intentDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addIntentDisplayNamesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIntentDisplayNamesIsMutable();
intentDisplayNames_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList entityDisplayNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEntityDisplayNamesIsMutable() {
if (!entityDisplayNames_.isModifiable()) {
entityDisplayNames_ = new com.google.protobuf.LazyStringArrayList(entityDisplayNames_);
}
bitField0_ |= 0x00000002;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return A list containing the entityDisplayNames.
*/
public com.google.protobuf.ProtocolStringList getEntityDisplayNamesList() {
entityDisplayNames_.makeImmutable();
return entityDisplayNames_;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return The count of entityDisplayNames.
*/
public int getEntityDisplayNamesCount() {
return entityDisplayNames_.size();
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the element to return.
* @return The entityDisplayNames at the given index.
*/
public java.lang.String getEntityDisplayNames(int index) {
return entityDisplayNames_.get(index);
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index of the value to return.
* @return The bytes of the entityDisplayNames at the given index.
*/
public com.google.protobuf.ByteString getEntityDisplayNamesBytes(int index) {
return entityDisplayNames_.getByteString(index);
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param index The index to set the value at.
* @param value The entityDisplayNames to set.
* @return This builder for chaining.
*/
public Builder setEntityDisplayNames(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityDisplayNamesIsMutable();
entityDisplayNames_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param value The entityDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addEntityDisplayNames(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityDisplayNamesIsMutable();
entityDisplayNames_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param values The entityDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addAllEntityDisplayNames(java.lang.Iterable values) {
ensureEntityDisplayNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityDisplayNames_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @return This builder for chaining.
*/
public Builder clearEntityDisplayNames() {
entityDisplayNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
;
onChanged();
return this;
}
/**
*
*
*
* Display names of conflicting entities.
*
*
* repeated string entity_display_names = 2;
*
* @param value The bytes of the entityDisplayNames to add.
* @return This builder for chaining.
*/
public Builder addEntityDisplayNamesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEntityDisplayNamesIsMutable();
entityDisplayNames_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@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.ImportIntentsResponse.ConflictingResources)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources)
private static final com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
.ConflictingResources
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources();
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConflictingResources 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.ImportIntentsResponse.ConflictingResources
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int INTENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList intents_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @return A list containing the intents.
*/
public com.google.protobuf.ProtocolStringList getIntentsList() {
return intents_;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @return The count of intents.
*/
public int getIntentsCount() {
return intents_.size();
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param index The index of the element to return.
* @return The intents at the given index.
*/
public java.lang.String getIntents(int index) {
return intents_.get(index);
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param index The index of the value to return.
* @return The bytes of the intents at the given index.
*/
public com.google.protobuf.ByteString getIntentsBytes(int index) {
return intents_.getByteString(index);
}
public static final int CONFLICTING_RESOURCES_FIELD_NUMBER = 2;
private com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
conflictingResources_;
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*
* @return Whether the conflictingResources field is set.
*/
@java.lang.Override
public boolean hasConflictingResources() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*
* @return The conflictingResources.
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
getConflictingResources() {
return conflictingResources_ == null
? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()
: conflictingResources_;
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResourcesOrBuilder
getConflictingResourcesOrBuilder() {
return conflictingResources_ == null
? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()
: conflictingResources_;
}
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 {
for (int i = 0; i < intents_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intents_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getConflictingResources());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < intents_.size(); i++) {
dataSize += computeStringSizeNoTag(intents_.getRaw(i));
}
size += dataSize;
size += 1 * getIntentsList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConflictingResources());
}
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.ImportIntentsResponse)) {
return super.equals(obj);
}
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse other =
(com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse) obj;
if (!getIntentsList().equals(other.getIntentsList())) return false;
if (hasConflictingResources() != other.hasConflictingResources()) return false;
if (hasConflictingResources()) {
if (!getConflictingResources().equals(other.getConflictingResources())) return false;
}
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();
if (getIntentsCount() > 0) {
hash = (37 * hash) + INTENTS_FIELD_NUMBER;
hash = (53 * hash) + getIntentsList().hashCode();
}
if (hasConflictingResources()) {
hash = (37 * hash) + CONFLICTING_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getConflictingResources().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse 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.ImportIntentsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse 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.ImportIntentsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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.ImportIntentsResponse 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 response message for
* [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents].
*
*
* Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.class,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.Builder.class);
}
// Construct using com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getConflictingResourcesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
intents_ = com.google.protobuf.LazyStringArrayList.emptyList();
conflictingResources_ = null;
if (conflictingResourcesBuilder_ != null) {
conflictingResourcesBuilder_.dispose();
conflictingResourcesBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dialogflow.cx.v3beta1.IntentProto
.internal_static_google_cloud_dialogflow_cx_v3beta1_ImportIntentsResponse_descriptor;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
getDefaultInstanceForType() {
return com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse build() {
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse buildPartial() {
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse result =
new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
intents_.makeImmutable();
result.intents_ = intents_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.conflictingResources_ =
conflictingResourcesBuilder_ == null
? conflictingResources_
: conflictingResourcesBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.ImportIntentsResponse) {
return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse other) {
if (other
== com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.getDefaultInstance())
return this;
if (!other.intents_.isEmpty()) {
if (intents_.isEmpty()) {
intents_ = other.intents_;
bitField0_ |= 0x00000001;
} else {
ensureIntentsIsMutable();
intents_.addAll(other.intents_);
}
onChanged();
}
if (other.hasConflictingResources()) {
mergeConflictingResources(other.getConflictingResources());
}
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:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIntentsIsMutable();
intents_.add(s);
break;
} // case 10
case 18:
{
input.readMessage(
getConflictingResourcesFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 bitField0_;
private com.google.protobuf.LazyStringArrayList intents_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIntentsIsMutable() {
if (!intents_.isModifiable()) {
intents_ = new com.google.protobuf.LazyStringArrayList(intents_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @return A list containing the intents.
*/
public com.google.protobuf.ProtocolStringList getIntentsList() {
intents_.makeImmutable();
return intents_;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @return The count of intents.
*/
public int getIntentsCount() {
return intents_.size();
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param index The index of the element to return.
* @return The intents at the given index.
*/
public java.lang.String getIntents(int index) {
return intents_.get(index);
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param index The index of the value to return.
* @return The bytes of the intents at the given index.
*/
public com.google.protobuf.ByteString getIntentsBytes(int index) {
return intents_.getByteString(index);
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param index The index to set the value at.
* @param value The intents to set.
* @return This builder for chaining.
*/
public Builder setIntents(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntentsIsMutable();
intents_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The intents to add.
* @return This builder for chaining.
*/
public Builder addIntents(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntentsIsMutable();
intents_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param values The intents to add.
* @return This builder for chaining.
*/
public Builder addAllIntents(java.lang.Iterable values) {
ensureIntentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intents_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @return This builder for chaining.
*/
public Builder clearIntents() {
intents_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
;
onChanged();
return this;
}
/**
*
*
*
* The unique identifier of the imported intents.
* Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
* ID>/intents/<Intent ID>`.
*
*
* repeated string intents = 1 [(.google.api.resource_reference) = { ... }
*
* @param value The bytes of the intents to add.
* @return This builder for chaining.
*/
public Builder addIntentsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIntentsIsMutable();
intents_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
conflictingResources_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.Builder,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
.ConflictingResourcesOrBuilder>
conflictingResourcesBuilder_;
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*
* @return Whether the conflictingResources field is set.
*/
public boolean hasConflictingResources() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*
* @return The conflictingResources.
*/
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
getConflictingResources() {
if (conflictingResourcesBuilder_ == null) {
return conflictingResources_ == null
? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()
: conflictingResources_;
} else {
return conflictingResourcesBuilder_.getMessage();
}
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public Builder setConflictingResources(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources value) {
if (conflictingResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conflictingResources_ = value;
} else {
conflictingResourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public Builder setConflictingResources(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.Builder
builderForValue) {
if (conflictingResourcesBuilder_ == null) {
conflictingResources_ = builderForValue.build();
} else {
conflictingResourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public Builder mergeConflictingResources(
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources value) {
if (conflictingResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& conflictingResources_ != null
&& conflictingResources_
!= com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()) {
getConflictingResourcesBuilder().mergeFrom(value);
} else {
conflictingResources_ = value;
}
} else {
conflictingResourcesBuilder_.mergeFrom(value);
}
if (conflictingResources_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public Builder clearConflictingResources() {
bitField0_ = (bitField0_ & ~0x00000002);
conflictingResources_ = null;
if (conflictingResourcesBuilder_ != null) {
conflictingResourcesBuilder_.dispose();
conflictingResourcesBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.Builder
getConflictingResourcesBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getConflictingResourcesFieldBuilder().getBuilder();
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
public com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
.ConflictingResourcesOrBuilder
getConflictingResourcesOrBuilder() {
if (conflictingResourcesBuilder_ != null) {
return conflictingResourcesBuilder_.getMessageOrBuilder();
} else {
return conflictingResources_ == null
? com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.getDefaultInstance()
: conflictingResources_;
}
}
/**
*
*
*
* Info which resources have conflicts when
* [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is
* set in ImportIntentsRequest.
*
*
*
* .google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.Builder,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
.ConflictingResourcesOrBuilder>
getConflictingResourcesFieldBuilder() {
if (conflictingResourcesBuilder_ == null) {
conflictingResourcesBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources
.Builder,
com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
.ConflictingResourcesOrBuilder>(
getConflictingResources(), getParentForChildren(), isClean());
conflictingResources_ = null;
}
return conflictingResourcesBuilder_;
}
@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.ImportIntentsResponse)
}
// @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse)
private static final com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse();
}
public static com.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ImportIntentsResponse 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.ImportIntentsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}