@@ -42,6 +42,12 @@ private AnnotateAssessmentRequest() {
4242 annotation_ = 0 ;
4343 }
4444
45+ @ java .lang .Override
46+ @ SuppressWarnings ({"unused" })
47+ protected java .lang .Object newInstance (UnusedPrivateParameter unused ) {
48+ return new AnnotateAssessmentRequest ();
49+ }
50+
4551 @ java .lang .Override
4652 public final com .google .protobuf .UnknownFieldSet getUnknownFields () {
4753 return this .unknownFields ;
@@ -55,7 +61,6 @@ private AnnotateAssessmentRequest(
5561 if (extensionRegistry == null ) {
5662 throw new java .lang .NullPointerException ();
5763 }
58- int mutable_bitField0_ = 0 ;
5964 com .google .protobuf .UnknownFieldSet .Builder unknownFields =
6065 com .google .protobuf .UnknownFieldSet .newBuilder ();
6166 try {
@@ -197,12 +202,20 @@ public final int getNumber() {
197202 return value ;
198203 }
199204
200- /** @deprecated Use {@link #forNumber(int)} instead. */
205+ /**
206+ * @param value The numeric wire value of the corresponding enum entry.
207+ * @return The enum associated with the given numeric wire value.
208+ * @deprecated Use {@link #forNumber(int)} instead.
209+ */
201210 @ java .lang .Deprecated
202211 public static Annotation valueOf (int value ) {
203212 return forNumber (value );
204213 }
205214
215+ /**
216+ * @param value The numeric wire value of the corresponding enum entry.
217+ * @return The enum associated with the given numeric wire value.
218+ */
206219 public static Annotation forNumber (int value ) {
207220 switch (value ) {
208221 case 0 :
@@ -275,6 +288,8 @@ private Annotation(int value) {
275288 * <code>
276289 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
277290 * </code>
291+ *
292+ * @return The name.
278293 */
279294 public java .lang .String getName () {
280295 java .lang .Object ref = name_ ;
@@ -298,6 +313,8 @@ public java.lang.String getName() {
298313 * <code>
299314 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
300315 * </code>
316+ *
317+ * @return The bytes for name.
301318 */
302319 public com .google .protobuf .ByteString getNameBytes () {
303320 java .lang .Object ref = name_ ;
@@ -323,6 +340,8 @@ public com.google.protobuf.ByteString getNameBytes() {
323340 * <code>
324341 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
325342 * </code>
343+ *
344+ * @return The enum numeric value on the wire for annotation.
326345 */
327346 public int getAnnotationValue () {
328347 return annotation_ ;
@@ -337,6 +356,8 @@ public int getAnnotationValue() {
337356 * <code>
338357 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
339358 * </code>
359+ *
360+ * @return The annotation.
340361 */
341362 public com .google .recaptchaenterprise .v1beta1 .AnnotateAssessmentRequest .Annotation
342363 getAnnotation () {
@@ -705,6 +726,8 @@ public Builder mergeFrom(
705726 * <code>
706727 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
707728 * </code>
729+ *
730+ * @return The name.
708731 */
709732 public java .lang .String getName () {
710733 java .lang .Object ref = name_ ;
@@ -728,6 +751,8 @@ public java.lang.String getName() {
728751 * <code>
729752 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
730753 * </code>
754+ *
755+ * @return The bytes for name.
731756 */
732757 public com .google .protobuf .ByteString getNameBytes () {
733758 java .lang .Object ref = name_ ;
@@ -751,6 +776,9 @@ public com.google.protobuf.ByteString getNameBytes() {
751776 * <code>
752777 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
753778 * </code>
779+ *
780+ * @param value The name to set.
781+ * @return This builder for chaining.
754782 */
755783 public Builder setName (java .lang .String value ) {
756784 if (value == null ) {
@@ -772,6 +800,8 @@ public Builder setName(java.lang.String value) {
772800 * <code>
773801 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
774802 * </code>
803+ *
804+ * @return This builder for chaining.
775805 */
776806 public Builder clearName () {
777807
@@ -790,6 +820,9 @@ public Builder clearName() {
790820 * <code>
791821 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
792822 * </code>
823+ *
824+ * @param value The bytes for name to set.
825+ * @return This builder for chaining.
793826 */
794827 public Builder setNameBytes (com .google .protobuf .ByteString value ) {
795828 if (value == null ) {
@@ -813,6 +846,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
813846 * <code>
814847 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
815848 * </code>
849+ *
850+ * @return The enum numeric value on the wire for annotation.
816851 */
817852 public int getAnnotationValue () {
818853 return annotation_ ;
@@ -827,6 +862,9 @@ public int getAnnotationValue() {
827862 * <code>
828863 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
829864 * </code>
865+ *
866+ * @param value The enum numeric value on the wire for annotation to set.
867+ * @return This builder for chaining.
830868 */
831869 public Builder setAnnotationValue (int value ) {
832870 annotation_ = value ;
@@ -843,6 +881,8 @@ public Builder setAnnotationValue(int value) {
843881 * <code>
844882 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
845883 * </code>
884+ *
885+ * @return The annotation.
846886 */
847887 public com .google .recaptchaenterprise .v1beta1 .AnnotateAssessmentRequest .Annotation
848888 getAnnotation () {
@@ -864,6 +904,9 @@ public Builder setAnnotationValue(int value) {
864904 * <code>
865905 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
866906 * </code>
907+ *
908+ * @param value The annotation to set.
909+ * @return This builder for chaining.
867910 */
868911 public Builder setAnnotation (
869912 com .google .recaptchaenterprise .v1beta1 .AnnotateAssessmentRequest .Annotation value ) {
@@ -885,6 +928,8 @@ public Builder setAnnotation(
885928 * <code>
886929 * .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];
887930 * </code>
931+ *
932+ * @return This builder for chaining.
888933 */
889934 public Builder clearAnnotation () {
890935
0 commit comments