Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit 867a187

Browse files
docs(regen): regenerate with update proto documentation (#76)
1 parent 3df377b commit 867a187

File tree

8 files changed

+184
-123
lines changed

8 files changed

+184
-123
lines changed

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequest.java

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
*
2323
*
2424
* <pre>
25+
* ============================================================================
26+
* Requests and responses for custom methods.
2527
* The request to detect user's intent.
2628
* </pre>
2729
*
@@ -178,7 +180,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
178180
* ID must not exceed 36 bytes.
179181
* </pre>
180182
*
181-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
183+
* <code>
184+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
185+
* </code>
182186
*
183187
* @return The session.
184188
*/
@@ -204,7 +208,9 @@ public java.lang.String getSession() {
204208
* ID must not exceed 36 bytes.
205209
* </pre>
206210
*
207-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
211+
* <code>
212+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
213+
* </code>
208214
*
209215
* @return The bytes for session.
210216
*/
@@ -624,6 +630,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
624630
*
625631
*
626632
* <pre>
633+
* ============================================================================
634+
* Requests and responses for custom methods.
627635
* The request to detect user's intent.
628636
* </pre>
629637
*
@@ -839,7 +847,9 @@ public Builder mergeFrom(
839847
* ID must not exceed 36 bytes.
840848
* </pre>
841849
*
842-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
850+
* <code>
851+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
852+
* </code>
843853
*
844854
* @return The session.
845855
*/
@@ -865,7 +875,9 @@ public java.lang.String getSession() {
865875
* ID must not exceed 36 bytes.
866876
* </pre>
867877
*
868-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
878+
* <code>
879+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
880+
* </code>
869881
*
870882
* @return The bytes for session.
871883
*/
@@ -891,7 +903,9 @@ public com.google.protobuf.ByteString getSessionBytes() {
891903
* ID must not exceed 36 bytes.
892904
* </pre>
893905
*
894-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
906+
* <code>
907+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
908+
* </code>
895909
*
896910
* @param value The session to set.
897911
* @return This builder for chaining.
@@ -916,7 +930,9 @@ public Builder setSession(java.lang.String value) {
916930
* ID must not exceed 36 bytes.
917931
* </pre>
918932
*
919-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
933+
* <code>
934+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
935+
* </code>
920936
*
921937
* @return This builder for chaining.
922938
*/
@@ -937,7 +953,9 @@ public Builder clearSession() {
937953
* ID must not exceed 36 bytes.
938954
* </pre>
939955
*
940-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
956+
* <code>
957+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
958+
* </code>
941959
*
942960
* @param value The bytes for session to set.
943961
* @return This builder for chaining.

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/DetectIntentRequestOrBuilder.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public interface DetectIntentRequestOrBuilder
3434
* ID must not exceed 36 bytes.
3535
* </pre>
3636
*
37-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
37+
* <code>
38+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
39+
* </code>
3840
*
3941
* @return The session.
4042
*/
@@ -50,7 +52,9 @@ public interface DetectIntentRequestOrBuilder
5052
* ID must not exceed 36 bytes.
5153
* </pre>
5254
*
53-
* <code>string session = 1 [(.google.api.field_behavior) = REQUIRED];</code>
55+
* <code>
56+
* string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
57+
* </code>
5458
*
5559
* @return The bytes for session.
5660
*/

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionProto.java

Lines changed: 117 additions & 107 deletions
Large diffs are not rendered by default.

proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package google.cloud.dialogflow.v2;
2020
import "google/api/annotations.proto";
2121
import "google/api/client.proto";
2222
import "google/api/field_behavior.proto";
23+
import "google/api/resource.proto";
2324
import "google/cloud/dialogflow/v2/audio_config.proto";
2425
import "google/cloud/dialogflow/v2/context.proto";
2526
import "google/cloud/dialogflow/v2/intent.proto";
@@ -36,6 +37,11 @@ option java_multiple_files = true;
3637
option java_outer_classname = "SessionProto";
3738
option java_package = "com.google.cloud.dialogflow.v2";
3839
option objc_class_prefix = "DF";
40+
option (google.api.resource_definition) = {
41+
type: "dialogflow.googleapis.com/Session"
42+
pattern: "projects/{project}/locations/{location}/agent/sessions/{session}"
43+
pattern: "projects/{project}/agent/sessions/{session}"
44+
};
3945

4046
// A session represents an interaction with a user. You retrieve user input
4147
// and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or
@@ -66,14 +72,21 @@ service Sessions {
6672
}
6773
}
6874

75+
// ============================================================================
76+
// Requests and responses for custom methods.
6977
// The request to detect user's intent.
7078
message DetectIntentRequest {
7179
// Required. The name of the session this query is sent to. Format:
7280
// `projects/<Project ID>/agent/sessions/<Session ID>`. It's up to the API
7381
// caller to choose an appropriate session ID. It can be a random number or
7482
// some type of user identifier (preferably hashed). The length of the session
7583
// ID must not exceed 36 bytes.
76-
string session = 1 [(google.api.field_behavior) = REQUIRED];
84+
string session = 1 [
85+
(google.api.field_behavior) = REQUIRED,
86+
(google.api.resource_reference) = {
87+
type: "dialogflow.googleapis.com/Session"
88+
}
89+
];
7790

7891
// Optional. The parameters of this query.
7992
QueryParameters query_params = 2 [(google.api.field_behavior) = OPTIONAL];

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
*
2323
*
2424
* <pre>
25+
* ============================================================================
26+
* Requests and responses for custom methods.
2527
* The request to detect user's intent.
2628
* </pre>
2729
*
@@ -618,6 +620,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
618620
*
619621
*
620622
* <pre>
623+
* ============================================================================
624+
* Requests and responses for custom methods.
621625
* The request to detect user's intent.
622626
* </pre>
623627
*

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionProto.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
237237
+ "treamingDetectIntentResponse\"\000(\0010\001\032x\312A\031d"
238238
+ "ialogflow.googleapis.com\322AYhttps://www.g"
239239
+ "oogleapis.com/auth/cloud-platform,https:"
240-
+ "//www.googleapis.com/auth/dialogflowB\252\001\n"
240+
+ "//www.googleapis.com/auth/dialogflowB\300\002\n"
241241
+ "#com.google.cloud.dialogflow.v2beta1B\014Se"
242242
+ "ssionProtoP\001ZIgoogle.golang.org/genproto"
243243
+ "/googleapis/cloud/dialogflow/v2beta1;dia"
244244
+ "logflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflo"
245-
+ "w.V2beta1b\006proto3"
245+
+ "w.V2beta1\352A\222\001\n!dialogflow.googleapis.com"
246+
+ "/Session\022@projects/{project}/locations/{"
247+
+ "location}/agent/sessions/{session}\022+proj"
248+
+ "ects/{project}/agent/sessions/{session}b"
249+
+ "\006proto3"
246250
};
247251
descriptor =
248252
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -444,6 +448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
444448
registry.add(com.google.api.ClientProto.defaultHost);
445449
registry.add(com.google.api.AnnotationsProto.http);
446450
registry.add(com.google.api.ClientProto.oauthScopes);
451+
registry.add(com.google.api.ResourceProto.resourceDefinition);
447452
registry.add(com.google.api.ResourceProto.resourceReference);
448453
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
449454
descriptor, registry);

proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ option java_multiple_files = true;
3838
option java_outer_classname = "SessionProto";
3939
option java_package = "com.google.cloud.dialogflow.v2beta1";
4040
option objc_class_prefix = "DF";
41+
option (google.api.resource_definition) = {
42+
type: "dialogflow.googleapis.com/Session"
43+
pattern: "projects/{project}/locations/{location}/agent/sessions/{session}"
44+
pattern: "projects/{project}/agent/sessions/{session}"
45+
};
4146

4247
// A session represents an interaction with a user. You retrieve user input
4348
// and pass it to the [DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] (or
@@ -79,6 +84,8 @@ service Sessions {
7984
}
8085
}
8186

87+
// ============================================================================
88+
// Requests and responses for custom methods.
8289
// The request to detect user's intent.
8390
message DetectIntentRequest {
8491
// Required. The name of the session this query is sent to. Format:

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2020-02-01T08:47:10.504450Z",
2+
"updateTime": "2020-02-04T08:47:20.781325Z",
33
"sources": [
44
{
55
"generator": {
@@ -12,9 +12,9 @@
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d",
16-
"internalRef": "292647187",
17-
"log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n"
15+
"sha": "69d9945330a5721cd679f17331a78850e2618226",
16+
"internalRef": "293080182",
17+
"log": "69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n"
1818
}
1919
},
2020
{

0 commit comments

Comments
 (0)