Skip to content

Commit

Permalink
feat: include conversation dataset name to be created with dataset cr…
Browse files Browse the repository at this point in the history
…eation metadata (#1032)

- [ ] Regenerate this pull request now.

docs: clarify SuggestionFeature enums which are specific to chat agents

PiperOrigin-RevId: 478522249

Source-Link: https://togithub.com/googleapis/googleapis/commit/8bd89cd4fc964360198362ef49c72ef90543bf45

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/ddf381e8fcebbdde902df0419b30908d01c63e0e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGRmMzgxZThmY2ViYmRkZTkwMmRmMDQxOWIzMDkwOGQwMWM2M2UwZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Oct 10, 2022
1 parent 79a0c4c commit f347cbc
Show file tree
Hide file tree
Showing 6 changed files with 293 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,54 +141,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "OperationResponse\022P\n\024conversation_datase"
+ "t\030\001 \001(\tB2\372A/\n-dialogflow.googleapis.com/"
+ "ConversationDataset\022\024\n\014import_count\030\003 \001("
+ "\005\",\n*CreateConversationDatasetOperationM"
+ "etadata\",\n*DeleteConversationDatasetOper"
+ "ationMetadata2\326\014\n\024ConversationDatasets\022\263"
+ "\002\n\031CreateConversationDataset\022<.google.cl"
+ "oud.dialogflow.v2.CreateConversationData"
+ "setRequest\032\035.google.longrunning.Operatio"
+ "n\"\270\001\202\323\344\223\002P\"8/v2/{parent=projects/*/locat"
+ "ions/*}/conversationDatasets:\024conversati"
+ "on_dataset\332A\033parent,conversation_dataset"
+ "\312AA\n\023ConversationDataset\022*CreateConversa"
+ "tionDatasetOperationMetadata\022\375\001\n\026GetConv"
+ "ersationDataset\0229.google.cloud.dialogflo"
+ "w.v2.GetConversationDatasetRequest\032/.goo"
+ "gle.cloud.dialogflow.v2.ConversationData"
+ "set\"w\202\323\344\223\002j\022,/v2/{name=projects/*/conver"
+ "sationDatasets/*}Z:\0228/v2/{name=projects/"
+ "*/locations/*/conversationDatasets/*}\332A\004"
+ "name\022\220\002\n\030ListConversationDatasets\022;.goog"
+ "le.cloud.dialogflow.v2.ListConversationD"
+ "atasetsRequest\032<.google.cloud.dialogflow"
+ ".v2.ListConversationDatasetsResponse\"y\202\323"
+ "\344\223\002j\022,/v2/{parent=projects/*}/conversati"
+ "onDatasetsZ:\0228/v2/{parent=projects/*/loc"
+ "ations/*}/conversationDatasets\332A\006parent\022"
+ "\210\002\n\031DeleteConversationDataset\022<.google.c"
+ "loud.dialogflow.v2.DeleteConversationDat"
+ "asetRequest\032\035.google.longrunning.Operati"
+ "on\"\215\001\202\323\344\223\002:*8/v2/{name=projects/*/locati"
+ "ons/*/conversationDatasets/*}\332A\004name\312AC\n"
+ "\025google.protobuf.Empty\022*DeleteConversati"
+ "onDatasetOperationMetadata\022\357\002\n\026ImportCon"
+ "versationData\0229.google.cloud.dialogflow."
+ "v2.ImportConversationDataRequest\032\035.googl"
+ "e.longrunning.Operation\"\372\001\202\323\344\223\002\236\001\"C/v2/{"
+ "name=projects/*/conversationDatasets/*}:"
+ "importConversationData:\001*ZT\"O/v2/{name=p"
+ "rojects/*/locations/*/conversationDatase"
+ "ts/*}:importConversationData:\001*\312AR\n\'Impo"
+ "rtConversationDataOperationResponse\022\'Imp"
+ "ortConversationDataOperationMetadata\032x\312A"
+ "\031dialogflow.googleapis.com\322AYhttps://www"
+ ".googleapis.com/auth/cloud-platform,http"
+ "s://www.googleapis.com/auth/dialogflowB\247"
+ "\001\n\036com.google.cloud.dialogflow.v2B\030Conve"
+ "rsationDatasetProtoP\001ZDgoogle.golang.org"
+ "/genproto/googleapis/cloud/dialogflow/v2"
+ ";dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialo"
+ "gflow.V2b\006proto3"
+ "\005\"~\n*CreateConversationDatasetOperationM"
+ "etadata\022P\n\024conversation_dataset\030\001 \001(\tB2\372"
+ "A/\n-dialogflow.googleapis.com/Conversati"
+ "onDataset\",\n*DeleteConversationDatasetOp"
+ "erationMetadata2\326\014\n\024ConversationDatasets"
+ "\022\263\002\n\031CreateConversationDataset\022<.google."
+ "cloud.dialogflow.v2.CreateConversationDa"
+ "tasetRequest\032\035.google.longrunning.Operat"
+ "ion\"\270\001\202\323\344\223\002P\"8/v2/{parent=projects/*/loc"
+ "ations/*}/conversationDatasets:\024conversa"
+ "tion_dataset\332A\033parent,conversation_datas"
+ "et\312AA\n\023ConversationDataset\022*CreateConver"
+ "sationDatasetOperationMetadata\022\375\001\n\026GetCo"
+ "nversationDataset\0229.google.cloud.dialogf"
+ "low.v2.GetConversationDatasetRequest\032/.g"
+ "oogle.cloud.dialogflow.v2.ConversationDa"
+ "taset\"w\202\323\344\223\002j\022,/v2/{name=projects/*/conv"
+ "ersationDatasets/*}Z:\0228/v2/{name=project"
+ "s/*/locations/*/conversationDatasets/*}\332"
+ "A\004name\022\220\002\n\030ListConversationDatasets\022;.go"
+ "ogle.cloud.dialogflow.v2.ListConversatio"
+ "nDatasetsRequest\032<.google.cloud.dialogfl"
+ "ow.v2.ListConversationDatasetsResponse\"y"
+ "\202\323\344\223\002j\022,/v2/{parent=projects/*}/conversa"
+ "tionDatasetsZ:\0228/v2/{parent=projects/*/l"
+ "ocations/*}/conversationDatasets\332A\006paren"
+ "t\022\210\002\n\031DeleteConversationDataset\022<.google"
+ ".cloud.dialogflow.v2.DeleteConversationD"
+ "atasetRequest\032\035.google.longrunning.Opera"
+ "tion\"\215\001\202\323\344\223\002:*8/v2/{name=projects/*/loca"
+ "tions/*/conversationDatasets/*}\332A\004name\312A"
+ "C\n\025google.protobuf.Empty\022*DeleteConversa"
+ "tionDatasetOperationMetadata\022\357\002\n\026ImportC"
+ "onversationData\0229.google.cloud.dialogflo"
+ "w.v2.ImportConversationDataRequest\032\035.goo"
+ "gle.longrunning.Operation\"\372\001\202\323\344\223\002\236\001\"C/v2"
+ "/{name=projects/*/conversationDatasets/*"
+ "}:importConversationData:\001*ZT\"O/v2/{name"
+ "=projects/*/locations/*/conversationData"
+ "sets/*}:importConversationData:\001*\312AR\n\'Im"
+ "portConversationDataOperationResponse\022\'I"
+ "mportConversationDataOperationMetadata\032x"
+ "\312A\031dialogflow.googleapis.com\322AYhttps://w"
+ "ww.googleapis.com/auth/cloud-platform,ht"
+ "tps://www.googleapis.com/auth/dialogflow"
+ "B\247\001\n\036com.google.cloud.dialogflow.v2B\030Con"
+ "versationDatasetProtoP\001ZDgoogle.golang.o"
+ "rg/genproto/googleapis/cloud/dialogflow/"
+ "v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dia"
+ "logflow.V2b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -302,7 +304,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
internal_static_google_cloud_dialogflow_v2_CreateConversationDatasetOperationMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_v2_CreateConversationDatasetOperationMetadata_descriptor,
new java.lang.String[] {});
new java.lang.String[] {
"ConversationDataset",
});
internal_static_google_cloud_dialogflow_v2_DeleteConversationDatasetOperationMetadata_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_dialogflow_v2_DeleteConversationDatasetOperationMetadata_fieldAccessorTable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ private CreateConversationDatasetOperationMetadata(
super(builder);
}

private CreateConversationDatasetOperationMetadata() {}
private CreateConversationDatasetOperationMetadata() {
conversationDataset_ = "";
}

@java.lang.Override
@SuppressWarnings({"unused"})
Expand Down Expand Up @@ -68,6 +70,59 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
.class);
}

public static final int CONVERSATION_DATASET_FIELD_NUMBER = 1;
private volatile java.lang.Object conversationDataset_;
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @return The conversationDataset.
*/
@java.lang.Override
public java.lang.String getConversationDataset() {
java.lang.Object ref = conversationDataset_;
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();
conversationDataset_ = s;
return s;
}
}
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @return The bytes for conversationDataset.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConversationDatasetBytes() {
java.lang.Object ref = conversationDataset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
conversationDataset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand All @@ -82,6 +137,9 @@ public final boolean isInitialized() {

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationDataset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conversationDataset_);
}
getUnknownFields().writeTo(output);
}

Expand All @@ -91,6 +149,9 @@ public int getSerializedSize() {
if (size != -1) return size;

size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationDataset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conversationDataset_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
Expand All @@ -108,6 +169,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata other =
(com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata) obj;

if (!getConversationDataset().equals(other.getConversationDataset())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
Expand All @@ -119,6 +181,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONVERSATION_DATASET_FIELD_NUMBER;
hash = (53 * hash) + getConversationDataset().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -261,6 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
conversationDataset_ = "";

return this;
}

Expand Down Expand Up @@ -292,6 +358,7 @@ public com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata
buildPartial() {
com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata result =
new com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata(this);
result.conversationDataset_ = conversationDataset_;
onBuilt();
return result;
}
Expand Down Expand Up @@ -346,6 +413,10 @@ public Builder mergeFrom(
if (other
== com.google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata
.getDefaultInstance()) return this;
if (!other.getConversationDataset().isEmpty()) {
conversationDataset_ = other.conversationDataset_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
Expand All @@ -372,6 +443,12 @@ public Builder mergeFrom(
case 0:
done = true;
break;
case 10:
{
conversationDataset_ = input.readStringRequireUtf8();

break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
Expand All @@ -389,6 +466,122 @@ public Builder mergeFrom(
return this;
}

private java.lang.Object conversationDataset_ = "";
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @return The conversationDataset.
*/
public java.lang.String getConversationDataset() {
java.lang.Object ref = conversationDataset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conversationDataset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @return The bytes for conversationDataset.
*/
public com.google.protobuf.ByteString getConversationDatasetBytes() {
java.lang.Object ref = conversationDataset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
conversationDataset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @param value The conversationDataset to set.
* @return This builder for chaining.
*/
public Builder setConversationDataset(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}

conversationDataset_ = value;
onChanged();
return this;
}
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @return This builder for chaining.
*/
public Builder clearConversationDataset() {

conversationDataset_ = getDefaultInstance().getConversationDataset();
onChanged();
return this;
}
/**
*
*
* <pre>
* The resource name of the conversation dataset that will be created. Format:
* `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/conversationDatasets/&lt;Conversation Dataset Id&gt;`
* </pre>
*
* <code>string conversation_dataset = 1 [(.google.api.resource_reference) = { ... }</code>
*
* @param value The bytes for conversationDataset to set.
* @return This builder for chaining.
*/
public Builder setConversationDatasetBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);

conversationDataset_ = value;
onChanged();
return this;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
Expand Down
Loading

0 comments on commit f347cbc

Please sign in to comment.