diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java
index 359fbfa467e5..2dd732db67fe 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequest.java
@@ -257,7 +257,9 @@ private Annotation(int value) {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -278,7 +280,9 @@ public java.lang.String getName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
@@ -298,11 +302,11 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public int getAnnotationValue() {
@@ -312,11 +316,11 @@ public int getAnnotationValue() {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation
@@ -683,7 +687,9 @@ public Builder mergeFrom(
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -704,7 +710,9 @@ public java.lang.String getName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
@@ -725,7 +733,9 @@ public com.google.protobuf.ByteString getNameBytes() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder setName(java.lang.String value) {
if (value == null) {
@@ -744,7 +754,9 @@ public Builder setName(java.lang.String value) {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder clearName() {
@@ -760,7 +772,9 @@ public Builder clearName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -778,11 +792,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public int getAnnotationValue() {
@@ -792,11 +806,11 @@ public int getAnnotationValue() {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setAnnotationValue(int value) {
@@ -808,11 +822,11 @@ public Builder setAnnotationValue(int value) {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation
@@ -829,11 +843,11 @@ public Builder setAnnotationValue(int value) {
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setAnnotation(
@@ -850,11 +864,11 @@ public Builder setAnnotation(
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearAnnotation() {
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java
index 319f60339ccf..bd0269107b75 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/AnnotateAssessmentRequestOrBuilder.java
@@ -16,7 +16,9 @@ public interface AnnotateAssessmentRequestOrBuilder
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
java.lang.String getName();
/**
@@ -27,7 +29,9 @@ public interface AnnotateAssessmentRequestOrBuilder
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
com.google.protobuf.ByteString getNameBytes();
@@ -35,11 +39,11 @@ public interface AnnotateAssessmentRequestOrBuilder
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
int getAnnotationValue();
@@ -47,11 +51,11 @@ public interface AnnotateAssessmentRequestOrBuilder
*
*
*
- * The annotation that will be assigned to the Event.
+ * Required. The annotation that will be assigned to the Event.
*
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2;
+ * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation getAnnotation();
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java
index e36be5f67859..c7a27b224ad4 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Assessment.java
@@ -183,7 +183,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
*
- * The event appeared to be automated.
+ * Interactions matched the behavior of an automated agent.
*
*
* AUTOMATION = 1;
@@ -193,7 +193,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
*
- * The event was not made from the proper context on the real site.
+ * The event originated from an illegitimate environment.
*
*
* UNEXPECTED_ENVIRONMENT = 2;
@@ -203,8 +203,18 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
* - * Browsing behavior leading up to the event was generated was out of the - * ordinary. + * Traffic volume from the event source is higher than normal. + *+ * + *
TOO_MUCH_TRAFFIC = 3;
+ */
+ TOO_MUCH_TRAFFIC(3),
+ /**
+ *
+ *
+ *
+ * Interactions with the site were significantly different than expected
+ * patterns.
*
*
* UNEXPECTED_USAGE_PATTERNS = 4;
@@ -218,9 +228,9 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
* quality risk analysis.
*
*
- * PROVISIONAL_RISK_ANALYSIS = 5;
+ * LOW_CONFIDENCE_SCORE = 5;
*/
- PROVISIONAL_RISK_ANALYSIS(5),
+ LOW_CONFIDENCE_SCORE(5),
UNRECOGNIZED(-1),
;
@@ -238,7 +248,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
*
- * The event appeared to be automated.
+ * Interactions matched the behavior of an automated agent.
*
*
* AUTOMATION = 1;
@@ -248,7 +258,7 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
*
- * The event was not made from the proper context on the real site.
+ * The event originated from an illegitimate environment.
*
*
* UNEXPECTED_ENVIRONMENT = 2;
@@ -258,8 +268,18 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
*
*
* - * Browsing behavior leading up to the event was generated was out of the - * ordinary. + * Traffic volume from the event source is higher than normal. + *+ * + *
TOO_MUCH_TRAFFIC = 3;
+ */
+ public static final int TOO_MUCH_TRAFFIC_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Interactions with the site were significantly different than expected
+ * patterns.
*
*
* UNEXPECTED_USAGE_PATTERNS = 4;
@@ -273,9 +293,9 @@ public enum ClassificationReason implements com.google.protobuf.ProtocolMessageE
* quality risk analysis.
*
*
- * PROVISIONAL_RISK_ANALYSIS = 5;
+ * LOW_CONFIDENCE_SCORE = 5;
*/
- public static final int PROVISIONAL_RISK_ANALYSIS_VALUE = 5;
+ public static final int LOW_CONFIDENCE_SCORE_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -299,10 +319,12 @@ public static ClassificationReason forNumber(int value) {
return AUTOMATION;
case 2:
return UNEXPECTED_ENVIRONMENT;
+ case 3:
+ return TOO_MUCH_TRAFFIC;
case 4:
return UNEXPECTED_USAGE_PATTERNS;
case 5:
- return PROVISIONAL_RISK_ANALYSIS;
+ return LOW_CONFIDENCE_SCORE;
default:
return null;
}
@@ -368,7 +390,7 @@ private ClassificationReason(int value) {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -389,7 +411,7 @@ public java.lang.String getName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
@@ -455,7 +477,7 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
* non-legitimate traffic).
*
*
- * float score = 3;
+ * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public float getScore() {
return score_;
@@ -470,7 +492,9 @@ public float getScore() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public boolean hasTokenProperties() {
return tokenProperties_ != null;
@@ -482,7 +506,9 @@ public boolean hasTokenProperties() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() {
return tokenProperties_ == null
@@ -496,7 +522,9 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder
getTokenPropertiesOrBuilder() {
@@ -531,7 +559,7 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason co
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getReasonsCount() {
@@ -562,7 +590,7 @@ public int getReasonsCount() {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(
@@ -577,7 +605,7 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason ge
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getReasonsValue(int index) {
@@ -1046,7 +1074,7 @@ public Builder mergeFrom(
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -1067,7 +1095,7 @@ public java.lang.String getName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
@@ -1088,7 +1116,7 @@ public com.google.protobuf.ByteString getNameBytes() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setName(java.lang.String value) {
if (value == null) {
@@ -1107,7 +1135,7 @@ public Builder setName(java.lang.String value) {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearName() {
@@ -1123,7 +1151,7 @@ public Builder clearName() {
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -1327,7 +1355,7 @@ public com.google.recaptchaenterprise.v1beta1.EventOrBuilder getEventOrBuilder()
* non-legitimate traffic).
*
*
- * float score = 3;
+ * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public float getScore() {
return score_;
@@ -1341,7 +1369,7 @@ public float getScore() {
* non-legitimate traffic).
*
*
- * float score = 3;
+ * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setScore(float value) {
@@ -1358,7 +1386,7 @@ public Builder setScore(float value) {
* non-legitimate traffic).
*
*
- * float score = 3;
+ * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearScore() {
@@ -1380,7 +1408,9 @@ public Builder clearScore() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public boolean hasTokenProperties() {
return tokenPropertiesBuilder_ != null || tokenProperties_ != null;
@@ -1392,7 +1422,9 @@ public boolean hasTokenProperties() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties() {
if (tokenPropertiesBuilder_ == null) {
@@ -1410,7 +1442,9 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setTokenProperties(
com.google.recaptchaenterprise.v1beta1.TokenProperties value) {
@@ -1433,7 +1467,9 @@ public Builder setTokenProperties(
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder setTokenProperties(
com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder builderForValue) {
@@ -1453,7 +1489,9 @@ public Builder setTokenProperties(
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder mergeTokenProperties(
com.google.recaptchaenterprise.v1beta1.TokenProperties value) {
@@ -1480,7 +1518,9 @@ public Builder mergeTokenProperties(
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public Builder clearTokenProperties() {
if (tokenPropertiesBuilder_ == null) {
@@ -1500,7 +1540,9 @@ public Builder clearTokenProperties() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.TokenProperties.Builder
getTokenPropertiesBuilder() {
@@ -1515,7 +1557,9 @@ public Builder clearTokenProperties() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder
getTokenPropertiesOrBuilder() {
@@ -1534,7 +1578,9 @@ public Builder clearTokenProperties() {
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.recaptchaenterprise.v1beta1.TokenProperties,
@@ -1569,7 +1615,7 @@ private void ensureReasonsIsMutable() {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getReasonsCount() {
@@ -1601,7 +1647,7 @@ public int getReasonsCount() {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(
@@ -1616,7 +1662,7 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason ge
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setReasons(
@@ -1637,7 +1683,7 @@ public Builder setReasons(
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addReasons(
@@ -1658,7 +1704,7 @@ public Builder addReasons(
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllReasons(
@@ -1680,7 +1726,7 @@ public Builder addAllReasons(
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearReasons() {
@@ -1697,7 +1743,7 @@ public Builder clearReasons() {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getReasonsValue(int index) {
@@ -1725,7 +1771,7 @@ public int getReasonsValue(int index) {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setReasonsValue(int index, int value) {
@@ -1742,7 +1788,7 @@ public Builder setReasonsValue(int index, int value) {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addReasonsValue(int value) {
@@ -1759,7 +1805,7 @@ public Builder addReasonsValue(int value) {
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllReasonsValue(java.lang.Iterablestring name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.lang.String getName();
/**
@@ -27,7 +27,7 @@ public interface AssessmentOrBuilder
* "projects/{project_number}/assessments/{assessment_id}".
*
*
- * string name = 1;
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.protobuf.ByteString getNameBytes();
@@ -71,7 +71,7 @@ public interface AssessmentOrBuilder
* non-legitimate traffic).
*
*
- * float score = 3;
+ * float score = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
float getScore();
@@ -82,7 +82,9 @@ public interface AssessmentOrBuilder
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
boolean hasTokenProperties();
/**
@@ -92,7 +94,9 @@ public interface AssessmentOrBuilder
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.recaptchaenterprise.v1beta1.TokenProperties getTokenProperties();
/**
@@ -102,7 +106,9 @@ public interface AssessmentOrBuilder
* Output only. Properties of the provided event token.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.TokenProperties token_properties = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
com.google.recaptchaenterprise.v1beta1.TokenPropertiesOrBuilder getTokenPropertiesOrBuilder();
@@ -114,7 +120,7 @@ public interface AssessmentOrBuilder
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
int getReasonsCount();
@@ -139,7 +145,7 @@ public interface AssessmentOrBuilder
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
com.google.recaptchaenterprise.v1beta1.Assessment.ClassificationReason getReasons(int index);
@@ -151,7 +157,7 @@ public interface AssessmentOrBuilder
*
*
*
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
java.util.List
- * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5;
+ * repeated .google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason reasons = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
int getReasonsValue(int index);
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java
index c89e530f494e..26928d312de6 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequest.java
@@ -118,7 +118,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public java.lang.String getParent() {
java.lang.Object ref = parent_;
@@ -139,7 +141,9 @@ public java.lang.String getParent() {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
@@ -159,10 +163,12 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public boolean hasAssessment() {
return assessment_ != null;
@@ -171,10 +177,12 @@ public boolean hasAssessment() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() {
return assessment_ == null
@@ -185,10 +193,12 @@ public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() {
return getAssessment();
@@ -553,7 +563,9 @@ public Builder mergeFrom(
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public java.lang.String getParent() {
java.lang.Object ref = parent_;
@@ -574,7 +586,9 @@ public java.lang.String getParent() {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public com.google.protobuf.ByteString getParentBytes() {
java.lang.Object ref = parent_;
@@ -595,7 +609,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder setParent(java.lang.String value) {
if (value == null) {
@@ -614,7 +630,9 @@ public Builder setParent(java.lang.String value) {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder clearParent() {
@@ -630,7 +648,9 @@ public Builder clearParent() {
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
public Builder setParentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -653,10 +673,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public boolean hasAssessment() {
return assessmentBuilder_ != null || assessment_ != null;
@@ -665,10 +687,12 @@ public boolean hasAssessment() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() {
if (assessmentBuilder_ == null) {
@@ -683,10 +707,12 @@ public com.google.recaptchaenterprise.v1beta1.Assessment getAssessment() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) {
if (assessmentBuilder_ == null) {
@@ -705,10 +731,12 @@ public Builder setAssessment(com.google.recaptchaenterprise.v1beta1.Assessment v
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public Builder setAssessment(
com.google.recaptchaenterprise.v1beta1.Assessment.Builder builderForValue) {
@@ -725,10 +753,12 @@ public Builder setAssessment(
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment value) {
if (assessmentBuilder_ == null) {
@@ -751,10 +781,12 @@ public Builder mergeAssessment(com.google.recaptchaenterprise.v1beta1.Assessment
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public Builder clearAssessment() {
if (assessmentBuilder_ == null) {
@@ -771,10 +803,12 @@ public Builder clearAssessment() {
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBuilder() {
@@ -785,10 +819,12 @@ public com.google.recaptchaenterprise.v1beta1.Assessment.Builder getAssessmentBu
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder() {
if (assessmentBuilder_ != null) {
@@ -803,10 +839,12 @@ public com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentO
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.recaptchaenterprise.v1beta1.Assessment,
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java
index a7e4b8dc575f..92dfd166d5ab 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/CreateAssessmentRequestOrBuilder.java
@@ -16,7 +16,9 @@ public interface CreateAssessmentRequestOrBuilder
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
java.lang.String getParent();
/**
@@ -27,7 +29,9 @@ public interface CreateAssessmentRequestOrBuilder
* in the format "projects/{project_number}".
*
*
- * string parent = 1;
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
*/
com.google.protobuf.ByteString getParentBytes();
@@ -35,30 +39,36 @@ public interface CreateAssessmentRequestOrBuilder
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
boolean hasAssessment();
/**
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
com.google.recaptchaenterprise.v1beta1.Assessment getAssessment();
/**
*
*
*
- * The asessment details.
+ * Required. The assessment details.
*
*
- * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2;
+ *
+ * .google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
*/
com.google.recaptchaenterprise.v1beta1.AssessmentOrBuilder getAssessmentOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java
index e8d2750c2a19..8f4cbfc76c2d 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/Event.java
@@ -97,11 +97,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
@@ -118,11 +118,11 @@ public java.lang.String getToken() {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
@@ -142,11 +142,11 @@ public com.google.protobuf.ByteString getTokenBytes() {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public java.lang.String getSiteKey() {
java.lang.Object ref = siteKey_;
@@ -163,11 +163,11 @@ public java.lang.String getSiteKey() {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.ByteString getSiteKeyBytes() {
java.lang.Object ref = siteKey_;
@@ -510,11 +510,11 @@ public Builder mergeFrom(
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
@@ -531,11 +531,11 @@ public java.lang.String getToken() {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.ByteString getTokenBytes() {
java.lang.Object ref = token_;
@@ -552,11 +552,11 @@ public com.google.protobuf.ByteString getTokenBytes() {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setToken(java.lang.String value) {
if (value == null) {
@@ -571,11 +571,11 @@ public Builder setToken(java.lang.String value) {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearToken() {
@@ -587,11 +587,11 @@ public Builder clearToken() {
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setTokenBytes(com.google.protobuf.ByteString value) {
if (value == null) {
@@ -609,11 +609,11 @@ public Builder setTokenBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public java.lang.String getSiteKey() {
java.lang.Object ref = siteKey_;
@@ -630,11 +630,11 @@ public java.lang.String getSiteKey() {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.ByteString getSiteKeyBytes() {
java.lang.Object ref = siteKey_;
@@ -651,11 +651,11 @@ public com.google.protobuf.ByteString getSiteKeyBytes() {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setSiteKey(java.lang.String value) {
if (value == null) {
@@ -670,11 +670,11 @@ public Builder setSiteKey(java.lang.String value) {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearSiteKey() {
@@ -686,11 +686,11 @@ public Builder clearSiteKey() {
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setSiteKeyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java
index 0306686bf8fe..af8874151b74 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/EventOrBuilder.java
@@ -12,22 +12,22 @@ public interface EventOrBuilder
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
java.lang.String getToken();
/**
*
*
*
- * The user response token provided by the reCAPTCHA client-side integration
+ * Required. The user response token provided by the reCAPTCHA client-side integration
* on your site.
*
*
- * string token = 1;
+ * string token = 1 [(.google.api.field_behavior) = REQUIRED];
*/
com.google.protobuf.ByteString getTokenBytes();
@@ -35,22 +35,22 @@ public interface EventOrBuilder
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
java.lang.String getSiteKey();
/**
*
*
*
- * The site key that was used to invoke reCAPTCHA on your site and generate
+ * Required. The site key that was used to invoke reCAPTCHA on your site and generate
* the token.
*
*
- * string site_key = 2;
+ * string site_key = 2 [(.google.api.field_behavior) = REQUIRED];
*/
com.google.protobuf.ByteString getSiteKeyBytes();
}
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java
index 5bbd167663c7..0b8db354cce8 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/RecaptchaEnterpriseProto.java
@@ -48,57 +48,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\nBgoogle/cloud/recaptchaenterprise/v1bet"
+ "a1/recaptchaenterprise.proto\022(google.clo"
+ "ud.recaptchaenterprise.v1beta1\032\034google/a"
- + "pi/annotations.proto\032\037google/protobuf/ti"
- + "mestamp.proto\"s\n\027CreateAssessmentRequest"
- + "\022\016\n\006parent\030\001 \001(\t\022H\n\nassessment\030\002 \001(\01324.g"
- + "oogle.cloud.recaptchaenterprise.v1beta1."
- + "Assessment\"\327\001\n\031AnnotateAssessmentRequest"
- + "\022\014\n\004name\030\001 \001(\t\022b\n\nannotation\030\002 \001(\0162N.goo"
- + "gle.cloud.recaptchaenterprise.v1beta1.An"
- + "notateAssessmentRequest.Annotation\"H\n\nAn"
- + "notation\022\032\n\026ANNOTATION_UNSPECIFIED\020\000\022\016\n\n"
- + "LEGITIMATE\020\001\022\016\n\nFRAUDULENT\020\002\"\034\n\032Annotate"
- + "AssessmentResponse\"\304\003\n\nAssessment\022\014\n\004nam"
- + "e\030\001 \001(\t\022>\n\005event\030\002 \001(\0132/.google.cloud.re"
- + "captchaenterprise.v1beta1.Event\022\r\n\005score"
- + "\030\003 \001(\002\022S\n\020token_properties\030\004 \001(\01329.googl"
- + "e.cloud.recaptchaenterprise.v1beta1.Toke"
- + "nProperties\022Z\n\007reasons\030\005 \003(\0162I.google.cl"
- + "oud.recaptchaenterprise.v1beta1.Assessme"
- + "nt.ClassificationReason\"\247\001\n\024Classificati"
- + "onReason\022%\n!CLASSIFICATION_REASON_UNSPEC"
- + "IFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n\026UNEXPECTED_EN"
- + "VIRONMENT\020\002\022\035\n\031UNEXPECTED_USAGE_PATTERNS"
- + "\020\004\022\035\n\031PROVISIONAL_RISK_ANALYSIS\020\005\"(\n\005Eve"
- + "nt\022\r\n\005token\030\001 \001(\t\022\020\n\010site_key\030\002 \001(\t\"\350\002\n\017"
- + "TokenProperties\022\r\n\005valid\030\001 \001(\010\022_\n\016invali"
- + "d_reason\030\002 \001(\0162G.google.cloud.recaptchae"
- + "nterprise.v1beta1.TokenProperties.Invali"
- + "dReason\022/\n\013create_time\030\003 \001(\0132\032.google.pr"
- + "otobuf.Timestamp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006ac"
- + "tion\030\005 \001(\t\"\221\001\n\rInvalidReason\022\036\n\032INVALID_"
- + "REASON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_INVALID_"
- + "REASON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004"
- + "DUPE\020\004\022\021\n\rSITE_MISMATCH\020\005\022\013\n\007MISSING\020\0062\317"
- + "\003\n!RecaptchaEnterpriseServiceV1Beta1\022\311\001\n"
- + "\020CreateAssessment\022A.google.cloud.recaptc"
- + "haenterprise.v1beta1.CreateAssessmentReq"
- + "uest\0324.google.cloud.recaptchaenterprise."
- + "v1beta1.Assessment\"<\202\323\344\223\0026\"(/v1beta1/{pa"
- + "rent=projects/*}/assessments:\nassessment"
- + "\022\335\001\n\022AnnotateAssessment\022C.google.cloud.r"
- + "ecaptchaenterprise.v1beta1.AnnotateAsses"
- + "smentRequest\032D.google.cloud.recaptchaent"
- + "erprise.v1beta1.AnnotateAssessmentRespon"
- + "se\"<\202\323\344\223\0026\"1/v1beta1/{name=projects/*/as"
- + "sessments/*}:annotate:\001*B\376\001\n&com.google."
- + "recaptchaenterprise.v1beta1B\030RecaptchaEn"
- + "terpriseProtoP\001Z[google.golang.org/genpr"
- + "oto/googleapis/cloud/recaptchaenterprise"
- + "/v1beta1;recaptchaenterprise\242\002\004GCRE\252\002(Go"
- + "ogle.Cloud.RecaptchaEnterprise.V1Beta1\312\002"
- + "(Google\\Cloud\\RecaptchaEnterprise\\V1beta"
- + "1b\006proto3"
+ + "pi/annotations.proto\032\027google/api/client."
+ + "proto\032\037google/api/field_behavior.proto\032\031"
+ + "google/api/resource.proto\032\037google/protob"
+ + "uf/timestamp.proto\"\255\001\n\027CreateAssessmentR"
+ + "equest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudres"
+ + "ourcemanager.googleapis.com/Project\022M\n\na"
+ + "ssessment\030\002 \001(\01324.google.cloud.recaptcha"
+ + "enterprise.v1beta1.AssessmentB\003\340A\002\"\223\002\n\031A"
+ + "nnotateAssessmentRequest\022C\n\004name\030\001 \001(\tB5"
+ + "\340A\002\372A/\n-recaptchaenterprise.googleapis.c"
+ + "om/Assessment\022g\n\nannotation\030\002 \001(\0162N.goog"
+ + "le.cloud.recaptchaenterprise.v1beta1.Ann"
+ + "otateAssessmentRequest.AnnotationB\003\340A\002\"H"
+ + "\n\nAnnotation\022\032\n\026ANNOTATION_UNSPECIFIED\020\000"
+ + "\022\016\n\nLEGITIMATE\020\001\022\016\n\nFRAUDULENT\020\002\"\034\n\032Anno"
+ + "tateAssessmentResponse\"\312\004\n\nAssessment\022\021\n"
+ + "\004name\030\001 \001(\tB\003\340A\003\022>\n\005event\030\002 \001(\0132/.google"
+ + ".cloud.recaptchaenterprise.v1beta1.Event"
+ + "\022\022\n\005score\030\003 \001(\002B\003\340A\003\022X\n\020token_properties"
+ + "\030\004 \001(\01329.google.cloud.recaptchaenterpris"
+ + "e.v1beta1.TokenPropertiesB\003\340A\003\022_\n\007reason"
+ + "s\030\005 \003(\0162I.google.cloud.recaptchaenterpri"
+ + "se.v1beta1.Assessment.ClassificationReas"
+ + "onB\003\340A\003\"\270\001\n\024ClassificationReason\022%\n!CLAS"
+ + "SIFICATION_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOM"
+ + "ATION\020\001\022\032\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020T"
+ + "OO_MUCH_TRAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PA"
+ + "TTERNS\020\004\022\030\n\024LOW_CONFIDENCE_SCORE\020\005:_\352A\\\n"
+ + "-recaptchaenterprise.googleapis.com/Asse"
+ + "ssment\022+projects/{project}/assessments/{"
+ + "assessment}\"2\n\005Event\022\022\n\005token\030\001 \001(\tB\003\340A\002"
+ + "\022\025\n\010site_key\030\002 \001(\tB\003\340A\002\"\350\002\n\017TokenPropert"
+ + "ies\022\r\n\005valid\030\001 \001(\010\022_\n\016invalid_reason\030\002 \001"
+ + "(\0162G.google.cloud.recaptchaenterprise.v1"
+ + "beta1.TokenProperties.InvalidReason\022/\n\013c"
+ + "reate_time\030\003 \001(\0132\032.google.protobuf.Times"
+ + "tamp\022\020\n\010hostname\030\004 \001(\t\022\016\n\006action\030\005 \001(\t\"\221"
+ + "\001\n\rInvalidReason\022\036\n\032INVALID_REASON_UNSPE"
+ + "CIFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022\r\n\t"
+ + "MALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\021\n\rSI"
+ + "TE_MISMATCH\020\005\022\013\n\007MISSING\020\0062\315\004\n!Recaptcha"
+ + "EnterpriseServiceV1Beta1\022\335\001\n\020CreateAsses"
+ + "sment\022A.google.cloud.recaptchaenterprise"
+ + ".v1beta1.CreateAssessmentRequest\0324.googl"
+ + "e.cloud.recaptchaenterprise.v1beta1.Asse"
+ + "ssment\"P\202\323\344\223\0026\"(/v1beta1/{parent=project"
+ + "s/*}/assessments:\nassessment\332A\021parent,as"
+ + "sessment\022\357\001\n\022AnnotateAssessment\022C.google"
+ + ".cloud.recaptchaenterprise.v1beta1.Annot"
+ + "ateAssessmentRequest\032D.google.cloud.reca"
+ + "ptchaenterprise.v1beta1.AnnotateAssessme"
+ + "ntResponse\"N\202\323\344\223\0026\"1/v1beta1/{name=proje"
+ + "cts/*/assessments/*}:annotate:\001*\332A\017name,"
+ + "annotation\032V\312A\"recaptchaenterprise.googl"
+ + "eapis.com\322A.https://www.googleapis.com/a"
+ + "uth/cloud-platformB\376\001\n&com.google.recapt"
+ + "chaenterprise.v1beta1B\030RecaptchaEnterpri"
+ + "seProtoP\001Z[google.golang.org/genproto/go"
+ + "ogleapis/cloud/recaptchaenterprise/v1bet"
+ + "a1;recaptchaenterprise\242\002\004GCRE\252\002(Google.C"
+ + "loud.RecaptchaEnterprise.V1Beta1\312\002(Googl"
+ + "e\\Cloud\\RecaptchaEnterprise\\V1beta1b\006pro"
+ + "to3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -112,6 +124,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
},
assigner);
@@ -163,10 +178,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
+ registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java
index 1947a70a06b5..3b10ed3131d8 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java
@@ -123,6 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
+ * LINT.IfChange
* Enum that represents the types of invalid token reasons.
*
*
@@ -183,7 +184,7 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The user verification token did not match the provided site secret.
+ * The user verification token did not match the provided site key.
* This may be a configuration error (e.g. development keys used in
* production) or end users trying to use verification tokens from other
* sites.
@@ -259,7 +260,7 @@ public enum InvalidReason implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * The user verification token did not match the provided site secret.
+ * The user verification token did not match the provided site key.
* This may be a configuration error (e.g. development keys used in
* production) or end users trying to use verification tokens from other
* sites.
@@ -366,7 +367,7 @@ private InvalidReason(int value) {
*
*
*
- * Output only. Whether the provided user response token is valid.
+ * Whether the provided user response token is valid.
*
*
* bool valid = 1;
@@ -381,7 +382,7 @@ public boolean getValid() {
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -395,7 +396,7 @@ public int getInvalidReasonValue() {
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -418,7 +419,7 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getI
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -430,7 +431,7 @@ public boolean hasCreateTime() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -442,7 +443,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -457,7 +458,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -477,7 +478,7 @@ public java.lang.String getHostname() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -500,7 +501,7 @@ public com.google.protobuf.ByteString getHostnameBytes() {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -520,7 +521,7 @@ public java.lang.String getAction() {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -933,7 +934,7 @@ public Builder mergeFrom(
*
*
*
- * Output only. Whether the provided user response token is valid.
+ * Whether the provided user response token is valid.
*
*
* bool valid = 1;
@@ -945,7 +946,7 @@ public boolean getValid() {
*
*
*
- * Output only. Whether the provided user response token is valid.
+ * Whether the provided user response token is valid.
*
*
* bool valid = 1;
@@ -960,7 +961,7 @@ public Builder setValid(boolean value) {
*
*
*
- * Output only. Whether the provided user response token is valid.
+ * Whether the provided user response token is valid.
*
*
* bool valid = 1;
@@ -977,7 +978,7 @@ public Builder clearValid() {
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -991,7 +992,7 @@ public int getInvalidReasonValue() {
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -1007,7 +1008,7 @@ public Builder setInvalidReasonValue(int value) {
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -1027,7 +1028,7 @@ public com.google.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason getI
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -1048,7 +1049,7 @@ public Builder setInvalidReason(
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -1072,7 +1073,7 @@ public Builder clearInvalidReason() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1084,7 +1085,7 @@ public boolean hasCreateTime() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1102,7 +1103,7 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1124,7 +1125,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1143,7 +1144,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1167,7 +1168,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1187,7 +1188,7 @@ public Builder clearCreateTime() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1201,7 +1202,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1219,7 +1220,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -1246,7 +1247,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -1266,7 +1267,7 @@ public java.lang.String getHostname() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -1286,7 +1287,7 @@ public com.google.protobuf.ByteString getHostnameBytes() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -1304,7 +1305,7 @@ public Builder setHostname(java.lang.String value) {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -1319,7 +1320,7 @@ public Builder clearHostname() {
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -1340,7 +1341,7 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -1360,7 +1361,7 @@ public java.lang.String getAction() {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -1380,7 +1381,7 @@ public com.google.protobuf.ByteString getActionBytes() {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -1398,7 +1399,7 @@ public Builder setAction(java.lang.String value) {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -1413,7 +1414,7 @@ public Builder clearAction() {
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java
index 87ffbc685451..e8ac9c9d2ed2 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenPropertiesOrBuilder.java
@@ -12,7 +12,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. Whether the provided user response token is valid.
+ * Whether the provided user response token is valid.
*
*
* bool valid = 1;
@@ -23,7 +23,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -35,7 +35,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. Reason associated with the response when valid = false.
+ * Reason associated with the response when valid = false.
*
*
*
@@ -48,7 +48,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -58,7 +58,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -68,7 +68,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. The timestamp corresponding to the generation of the token.
+ * The timestamp corresponding to the generation of the token.
*
*
* .google.protobuf.Timestamp create_time = 3;
@@ -79,7 +79,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -89,7 +89,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. The hostname of the page on which the token was generated.
+ * The hostname of the page on which the token was generated.
*
*
* string hostname = 4;
@@ -100,7 +100,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
@@ -110,7 +110,7 @@ public interface TokenPropertiesOrBuilder
*
*
*
- * Output only. Action name provided at token generation.
+ * Action name provided at token generation.
*
*
* string action = 5;
diff --git a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
index 188f99f6f777..c2025d4500eb 100644
--- a/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
+++ b/google-api-grpc/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/proto/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
@@ -18,6 +18,9 @@ syntax = "proto3";
package google.cloud.recaptchaenterprise.v1beta1;
import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.RecaptchaEnterprise.V1Beta1";
@@ -28,15 +31,18 @@ option java_package = "com.google.recaptchaenterprise.v1beta1";
option objc_class_prefix = "GCRE";
option php_namespace = "Google\\Cloud\\RecaptchaEnterprise\\V1beta1";
-
// Service to determine the likelihood an event is legitimate.
service RecaptchaEnterpriseServiceV1Beta1 {
+ option (google.api.default_host) = "recaptchaenterprise.googleapis.com";
+ option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
// Creates an Assessment of the likelihood an event is legitimate.
rpc CreateAssessment(CreateAssessmentRequest) returns (Assessment) {
option (google.api.http) = {
post: "/v1beta1/{parent=projects/*}/assessments"
body: "assessment"
};
+ option (google.api.method_signature) = "parent,assessment";
}
// Annotates a previously created Assessment to provide additional information
@@ -46,6 +52,7 @@ service RecaptchaEnterpriseServiceV1Beta1 {
post: "/v1beta1/{name=projects/*/assessments/*}:annotate"
body: "*"
};
+ option (google.api.method_signature) = "name,annotation";
}
}
@@ -53,10 +60,15 @@ service RecaptchaEnterpriseServiceV1Beta1 {
message CreateAssessmentRequest {
// Required. The name of the project in which the assessment will be created,
// in the format "projects/{project_number}".
- string parent = 1;
-
- // The asessment details.
- Assessment assessment = 2;
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The assessment details.
+ Assessment assessment = 2 [(google.api.field_behavior) = REQUIRED];
}
// The request message to annotate an Assessment.
@@ -75,10 +87,15 @@ message AnnotateAssessmentRequest {
// Required. The resource name of the Assessment, in the format
// "projects/{project_number}/assessments/{assessment_id}".
- string name = 1;
-
- // The annotation that will be assigned to the Event.
- Annotation annotation = 2;
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "recaptchaenterprise.googleapis.com/Assessment"
+ }
+ ];
+
+ // Required. The annotation that will be assigned to the Event.
+ Annotation annotation = 2 [(google.api.field_behavior) = REQUIRED];
}
// Empty response for AnnotateAssessment.
@@ -88,30 +105,38 @@ message AnnotateAssessmentResponse {
// A recaptcha assessment resource.
message Assessment {
+ option (google.api.resource) = {
+ type: "recaptchaenterprise.googleapis.com/Assessment"
+ pattern: "projects/{project}/assessments/{assessment}"
+ };
+
// LINT.IfChange(classification_reason)
// Reasons contributing to the risk analysis verdict.
enum ClassificationReason {
// Default unspecified type.
CLASSIFICATION_REASON_UNSPECIFIED = 0;
- // The event appeared to be automated.
+ // Interactions matched the behavior of an automated agent.
AUTOMATION = 1;
- // The event was not made from the proper context on the real site.
+ // The event originated from an illegitimate environment.
UNEXPECTED_ENVIRONMENT = 2;
- // Browsing behavior leading up to the event was generated was out of the
- // ordinary.
+ // Traffic volume from the event source is higher than normal.
+ TOO_MUCH_TRAFFIC = 3;
+
+ // Interactions with the site were significantly different than expected
+ // patterns.
UNEXPECTED_USAGE_PATTERNS = 4;
// Too little traffic has been received from this site thus far to generate
// quality risk analysis.
- PROVISIONAL_RISK_ANALYSIS = 5;
+ LOW_CONFIDENCE_SCORE = 5;
}
// Output only. The resource name for the Assessment in the format
// "projects/{project_number}/assessments/{assessment_id}".
- string name = 1;
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// The event being assessed.
Event event = 2;
@@ -119,26 +144,27 @@ message Assessment {
// Output only. Legitimate event score from 0.0 to 1.0.
// (1.0 means very likely legitimate traffic while 0.0 means very likely
// non-legitimate traffic).
- float score = 3;
+ float score = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Properties of the provided event token.
- TokenProperties token_properties = 4;
+ TokenProperties token_properties = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. Reasons contributing to the risk analysis verdict.
- repeated ClassificationReason reasons = 5;
+ repeated ClassificationReason reasons = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}
message Event {
- // The user response token provided by the reCAPTCHA client-side integration
+ // Required. The user response token provided by the reCAPTCHA client-side integration
// on your site.
- string token = 1;
+ string token = 1 [(google.api.field_behavior) = REQUIRED];
- // The site key that was used to invoke reCAPTCHA on your site and generate
+ // Required. The site key that was used to invoke reCAPTCHA on your site and generate
// the token.
- string site_key = 2;
+ string site_key = 2 [(google.api.field_behavior) = REQUIRED];
}
message TokenProperties {
+ // LINT.IfChange
// Enum that represents the types of invalid token reasons.
enum InvalidReason {
// Default unspecified type.
@@ -156,7 +182,7 @@ message TokenProperties {
// The user verification had already been seen.
DUPE = 4;
- // The user verification token did not match the provided site secret.
+ // The user verification token did not match the provided site key.
// This may be a configuration error (e.g. development keys used in
// production) or end users trying to use verification tokens from other
// sites.
@@ -166,18 +192,18 @@ message TokenProperties {
MISSING = 6;
}
- // Output only. Whether the provided user response token is valid.
+ // Whether the provided user response token is valid.
bool valid = 1;
- // Output only. Reason associated with the response when valid = false.
+ // Reason associated with the response when valid = false.
InvalidReason invalid_reason = 2;
- // Output only. The timestamp corresponding to the generation of the token.
+ // The timestamp corresponding to the generation of the token.
google.protobuf.Timestamp create_time = 3;
- // Output only. The hostname of the page on which the token was generated.
+ // The hostname of the page on which the token was generated.
string hostname = 4;
- // Output only. Action name provided at token generation.
+ // Action name provided at token generation.
string action = 5;
}
diff --git a/google-cloud-clients/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/google-cloud-clients/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java
index af4b06b1459e..a18175cd7471 100644
--- a/google-cloud-clients/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java
+++ b/google-cloud-clients/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java
@@ -173,7 +173,7 @@ public RecaptchaEnterpriseServiceV1Beta1Stub getStub() {
*
* @param parent Required. The name of the project in which the assessment will be created, in the
* format "projects/{project_number}".
- * @param assessment The asessment details.
+ * @param assessment Required. The assessment details.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Assessment createAssessment(ProjectName parent, Assessment assessment) {
@@ -202,7 +202,7 @@ public final Assessment createAssessment(ProjectName parent, Assessment assessme
*
* @param parent Required. The name of the project in which the assessment will be created, in the
* format "projects/{project_number}".
- * @param assessment The asessment details.
+ * @param assessment Required. The assessment details.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Assessment createAssessment(String parent, Assessment assessment) {
@@ -278,7 +278,7 @@ public final UnaryCallable createAssessment
*
* @param name Required. The resource name of the Assessment, in the format
* "projects/{project_number}/assessments/{assessment_id}".
- * @param annotation The annotation that will be assigned to the Event.
+ * @param annotation Required. The annotation that will be assigned to the Event.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AnnotateAssessmentResponse annotateAssessment(
@@ -309,7 +309,7 @@ public final AnnotateAssessmentResponse annotateAssessment(
*
* @param name Required. The resource name of the Assessment, in the format
* "projects/{project_number}/assessments/{assessment_id}".
- * @param annotation The annotation that will be assigned to the Event.
+ * @param annotation Required. The annotation that will be assigned to the Event.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final AnnotateAssessmentResponse annotateAssessment(
diff --git a/google-cloud-clients/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java b/google-cloud-clients/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java
index 9137f20ada30..336de197e866 100644
--- a/google-cloud-clients/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java
+++ b/google-cloud-clients/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1ClientTest.java
@@ -82,9 +82,10 @@ public void tearDown() throws Exception {
@Test
@SuppressWarnings("all")
public void createAssessmentTest() {
- String name = "name3373707";
+ AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]");
float score = 1.0926453E7F;
- Assessment expectedResponse = Assessment.newBuilder().setName(name).setScore(score).build();
+ Assessment expectedResponse =
+ Assessment.newBuilder().setName(name.toString()).setScore(score).build();
mockRecaptchaEnterpriseServiceV1Beta1.addResponse(expectedResponse);
ProjectName parent = ProjectName.of("[PROJECT]");
diff --git a/google-cloud-clients/google-cloud-recaptchaenterprise/synth.metadata b/google-cloud-clients/google-cloud-recaptchaenterprise/synth.metadata
index 02f79799ef1d..f2b200e332a3 100644
--- a/google-cloud-clients/google-cloud-recaptchaenterprise/synth.metadata
+++ b/google-cloud-clients/google-cloud-recaptchaenterprise/synth.metadata
@@ -1,19 +1,19 @@
{
- "updateTime": "2019-08-02T07:54:12.894292Z",
+ "updateTime": "2019-10-02T07:50:04.779550Z",
"sources": [
{
"generator": {
"name": "artman",
- "version": "0.32.0",
- "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d"
+ "version": "0.37.1",
+ "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "1b1ef1ca146c2119f077bca5e2b638c6bacb0925",
- "internalRef": "261214002"
+ "sha": "2123bcae97debe57e0870fca157cdf21e32bf3fb",
+ "internalRef": "272289410"
}
}
],