1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/translate/v3/translation_service.proto 18 19 package com.google.cloud.translate.v3; 20 21 /** 22 * 23 * 24 * <pre> 25 * The Google Cloud Storage location for the output content. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.translation.v3.GcsDestination} 29 */ 30 public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.translation.v3.GcsDestination) 33 GcsDestinationOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use GcsDestination.newBuilder() to construct. GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 GcsDestination()40 private GcsDestination() { 41 outputUriPrefix_ = ""; 42 } 43 44 @java.lang.Override 45 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)46 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 47 return new GcsDestination(); 48 } 49 50 @java.lang.Override getUnknownFields()51 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 52 return this.unknownFields; 53 } 54 getDescriptor()55 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 56 return com.google.cloud.translate.v3.TranslationServiceProto 57 .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; 58 } 59 60 @java.lang.Override 61 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()62 internalGetFieldAccessorTable() { 63 return com.google.cloud.translate.v3.TranslationServiceProto 64 .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable 65 .ensureFieldAccessorsInitialized( 66 com.google.cloud.translate.v3.GcsDestination.class, 67 com.google.cloud.translate.v3.GcsDestination.Builder.class); 68 } 69 70 public static final int OUTPUT_URI_PREFIX_FIELD_NUMBER = 1; 71 72 @SuppressWarnings("serial") 73 private volatile java.lang.Object outputUriPrefix_ = ""; 74 /** 75 * 76 * 77 * <pre> 78 * Required. The bucket used in 'output_uri_prefix' must exist and there must 79 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 80 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 81 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 82 * is returned. 83 * </pre> 84 * 85 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 86 * 87 * @return The outputUriPrefix. 88 */ 89 @java.lang.Override getOutputUriPrefix()90 public java.lang.String getOutputUriPrefix() { 91 java.lang.Object ref = outputUriPrefix_; 92 if (ref instanceof java.lang.String) { 93 return (java.lang.String) ref; 94 } else { 95 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 96 java.lang.String s = bs.toStringUtf8(); 97 outputUriPrefix_ = s; 98 return s; 99 } 100 } 101 /** 102 * 103 * 104 * <pre> 105 * Required. The bucket used in 'output_uri_prefix' must exist and there must 106 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 107 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 108 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 109 * is returned. 110 * </pre> 111 * 112 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 113 * 114 * @return The bytes for outputUriPrefix. 115 */ 116 @java.lang.Override getOutputUriPrefixBytes()117 public com.google.protobuf.ByteString getOutputUriPrefixBytes() { 118 java.lang.Object ref = outputUriPrefix_; 119 if (ref instanceof java.lang.String) { 120 com.google.protobuf.ByteString b = 121 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 122 outputUriPrefix_ = b; 123 return b; 124 } else { 125 return (com.google.protobuf.ByteString) ref; 126 } 127 } 128 129 private byte memoizedIsInitialized = -1; 130 131 @java.lang.Override isInitialized()132 public final boolean isInitialized() { 133 byte isInitialized = memoizedIsInitialized; 134 if (isInitialized == 1) return true; 135 if (isInitialized == 0) return false; 136 137 memoizedIsInitialized = 1; 138 return true; 139 } 140 141 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)142 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 143 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { 144 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUriPrefix_); 145 } 146 getUnknownFields().writeTo(output); 147 } 148 149 @java.lang.Override getSerializedSize()150 public int getSerializedSize() { 151 int size = memoizedSize; 152 if (size != -1) return size; 153 154 size = 0; 155 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputUriPrefix_)) { 156 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUriPrefix_); 157 } 158 size += getUnknownFields().getSerializedSize(); 159 memoizedSize = size; 160 return size; 161 } 162 163 @java.lang.Override equals(final java.lang.Object obj)164 public boolean equals(final java.lang.Object obj) { 165 if (obj == this) { 166 return true; 167 } 168 if (!(obj instanceof com.google.cloud.translate.v3.GcsDestination)) { 169 return super.equals(obj); 170 } 171 com.google.cloud.translate.v3.GcsDestination other = 172 (com.google.cloud.translate.v3.GcsDestination) obj; 173 174 if (!getOutputUriPrefix().equals(other.getOutputUriPrefix())) return false; 175 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 176 return true; 177 } 178 179 @java.lang.Override hashCode()180 public int hashCode() { 181 if (memoizedHashCode != 0) { 182 return memoizedHashCode; 183 } 184 int hash = 41; 185 hash = (19 * hash) + getDescriptor().hashCode(); 186 hash = (37 * hash) + OUTPUT_URI_PREFIX_FIELD_NUMBER; 187 hash = (53 * hash) + getOutputUriPrefix().hashCode(); 188 hash = (29 * hash) + getUnknownFields().hashCode(); 189 memoizedHashCode = hash; 190 return hash; 191 } 192 parseFrom(java.nio.ByteBuffer data)193 public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.nio.ByteBuffer data) 194 throws com.google.protobuf.InvalidProtocolBufferException { 195 return PARSER.parseFrom(data); 196 } 197 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)198 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 199 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 200 throws com.google.protobuf.InvalidProtocolBufferException { 201 return PARSER.parseFrom(data, extensionRegistry); 202 } 203 parseFrom( com.google.protobuf.ByteString data)204 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 205 com.google.protobuf.ByteString data) 206 throws com.google.protobuf.InvalidProtocolBufferException { 207 return PARSER.parseFrom(data); 208 } 209 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)210 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 211 com.google.protobuf.ByteString data, 212 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 213 throws com.google.protobuf.InvalidProtocolBufferException { 214 return PARSER.parseFrom(data, extensionRegistry); 215 } 216 parseFrom(byte[] data)217 public static com.google.cloud.translate.v3.GcsDestination parseFrom(byte[] data) 218 throws com.google.protobuf.InvalidProtocolBufferException { 219 return PARSER.parseFrom(data); 220 } 221 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)222 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 223 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 224 throws com.google.protobuf.InvalidProtocolBufferException { 225 return PARSER.parseFrom(data, extensionRegistry); 226 } 227 parseFrom(java.io.InputStream input)228 public static com.google.cloud.translate.v3.GcsDestination parseFrom(java.io.InputStream input) 229 throws java.io.IOException { 230 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 231 } 232 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)233 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 234 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 235 throws java.io.IOException { 236 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 237 PARSER, input, extensionRegistry); 238 } 239 parseDelimitedFrom( java.io.InputStream input)240 public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( 241 java.io.InputStream input) throws java.io.IOException { 242 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 243 } 244 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)245 public static com.google.cloud.translate.v3.GcsDestination parseDelimitedFrom( 246 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 247 throws java.io.IOException { 248 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 249 PARSER, input, extensionRegistry); 250 } 251 parseFrom( com.google.protobuf.CodedInputStream input)252 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 253 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 254 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 255 } 256 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)257 public static com.google.cloud.translate.v3.GcsDestination parseFrom( 258 com.google.protobuf.CodedInputStream input, 259 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 260 throws java.io.IOException { 261 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 262 PARSER, input, extensionRegistry); 263 } 264 265 @java.lang.Override newBuilderForType()266 public Builder newBuilderForType() { 267 return newBuilder(); 268 } 269 newBuilder()270 public static Builder newBuilder() { 271 return DEFAULT_INSTANCE.toBuilder(); 272 } 273 newBuilder(com.google.cloud.translate.v3.GcsDestination prototype)274 public static Builder newBuilder(com.google.cloud.translate.v3.GcsDestination prototype) { 275 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 276 } 277 278 @java.lang.Override toBuilder()279 public Builder toBuilder() { 280 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 281 } 282 283 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)284 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 285 Builder builder = new Builder(parent); 286 return builder; 287 } 288 /** 289 * 290 * 291 * <pre> 292 * The Google Cloud Storage location for the output content. 293 * </pre> 294 * 295 * Protobuf type {@code google.cloud.translation.v3.GcsDestination} 296 */ 297 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 298 implements 299 // @@protoc_insertion_point(builder_implements:google.cloud.translation.v3.GcsDestination) 300 com.google.cloud.translate.v3.GcsDestinationOrBuilder { getDescriptor()301 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 302 return com.google.cloud.translate.v3.TranslationServiceProto 303 .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; 304 } 305 306 @java.lang.Override 307 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()308 internalGetFieldAccessorTable() { 309 return com.google.cloud.translate.v3.TranslationServiceProto 310 .internal_static_google_cloud_translation_v3_GcsDestination_fieldAccessorTable 311 .ensureFieldAccessorsInitialized( 312 com.google.cloud.translate.v3.GcsDestination.class, 313 com.google.cloud.translate.v3.GcsDestination.Builder.class); 314 } 315 316 // Construct using com.google.cloud.translate.v3.GcsDestination.newBuilder() Builder()317 private Builder() {} 318 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)319 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 320 super(parent); 321 } 322 323 @java.lang.Override clear()324 public Builder clear() { 325 super.clear(); 326 bitField0_ = 0; 327 outputUriPrefix_ = ""; 328 return this; 329 } 330 331 @java.lang.Override getDescriptorForType()332 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 333 return com.google.cloud.translate.v3.TranslationServiceProto 334 .internal_static_google_cloud_translation_v3_GcsDestination_descriptor; 335 } 336 337 @java.lang.Override getDefaultInstanceForType()338 public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { 339 return com.google.cloud.translate.v3.GcsDestination.getDefaultInstance(); 340 } 341 342 @java.lang.Override build()343 public com.google.cloud.translate.v3.GcsDestination build() { 344 com.google.cloud.translate.v3.GcsDestination result = buildPartial(); 345 if (!result.isInitialized()) { 346 throw newUninitializedMessageException(result); 347 } 348 return result; 349 } 350 351 @java.lang.Override buildPartial()352 public com.google.cloud.translate.v3.GcsDestination buildPartial() { 353 com.google.cloud.translate.v3.GcsDestination result = 354 new com.google.cloud.translate.v3.GcsDestination(this); 355 if (bitField0_ != 0) { 356 buildPartial0(result); 357 } 358 onBuilt(); 359 return result; 360 } 361 buildPartial0(com.google.cloud.translate.v3.GcsDestination result)362 private void buildPartial0(com.google.cloud.translate.v3.GcsDestination result) { 363 int from_bitField0_ = bitField0_; 364 if (((from_bitField0_ & 0x00000001) != 0)) { 365 result.outputUriPrefix_ = outputUriPrefix_; 366 } 367 } 368 369 @java.lang.Override clone()370 public Builder clone() { 371 return super.clone(); 372 } 373 374 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)375 public Builder setField( 376 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 377 return super.setField(field, value); 378 } 379 380 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)381 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 382 return super.clearField(field); 383 } 384 385 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)386 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 387 return super.clearOneof(oneof); 388 } 389 390 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)391 public Builder setRepeatedField( 392 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 393 return super.setRepeatedField(field, index, value); 394 } 395 396 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)397 public Builder addRepeatedField( 398 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 399 return super.addRepeatedField(field, value); 400 } 401 402 @java.lang.Override mergeFrom(com.google.protobuf.Message other)403 public Builder mergeFrom(com.google.protobuf.Message other) { 404 if (other instanceof com.google.cloud.translate.v3.GcsDestination) { 405 return mergeFrom((com.google.cloud.translate.v3.GcsDestination) other); 406 } else { 407 super.mergeFrom(other); 408 return this; 409 } 410 } 411 mergeFrom(com.google.cloud.translate.v3.GcsDestination other)412 public Builder mergeFrom(com.google.cloud.translate.v3.GcsDestination other) { 413 if (other == com.google.cloud.translate.v3.GcsDestination.getDefaultInstance()) return this; 414 if (!other.getOutputUriPrefix().isEmpty()) { 415 outputUriPrefix_ = other.outputUriPrefix_; 416 bitField0_ |= 0x00000001; 417 onChanged(); 418 } 419 this.mergeUnknownFields(other.getUnknownFields()); 420 onChanged(); 421 return this; 422 } 423 424 @java.lang.Override isInitialized()425 public final boolean isInitialized() { 426 return true; 427 } 428 429 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)430 public Builder mergeFrom( 431 com.google.protobuf.CodedInputStream input, 432 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 433 throws java.io.IOException { 434 if (extensionRegistry == null) { 435 throw new java.lang.NullPointerException(); 436 } 437 try { 438 boolean done = false; 439 while (!done) { 440 int tag = input.readTag(); 441 switch (tag) { 442 case 0: 443 done = true; 444 break; 445 case 10: 446 { 447 outputUriPrefix_ = input.readStringRequireUtf8(); 448 bitField0_ |= 0x00000001; 449 break; 450 } // case 10 451 default: 452 { 453 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 454 done = true; // was an endgroup tag 455 } 456 break; 457 } // default: 458 } // switch (tag) 459 } // while (!done) 460 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 461 throw e.unwrapIOException(); 462 } finally { 463 onChanged(); 464 } // finally 465 return this; 466 } 467 468 private int bitField0_; 469 470 private java.lang.Object outputUriPrefix_ = ""; 471 /** 472 * 473 * 474 * <pre> 475 * Required. The bucket used in 'output_uri_prefix' must exist and there must 476 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 477 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 478 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 479 * is returned. 480 * </pre> 481 * 482 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 483 * 484 * @return The outputUriPrefix. 485 */ getOutputUriPrefix()486 public java.lang.String getOutputUriPrefix() { 487 java.lang.Object ref = outputUriPrefix_; 488 if (!(ref instanceof java.lang.String)) { 489 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 490 java.lang.String s = bs.toStringUtf8(); 491 outputUriPrefix_ = s; 492 return s; 493 } else { 494 return (java.lang.String) ref; 495 } 496 } 497 /** 498 * 499 * 500 * <pre> 501 * Required. The bucket used in 'output_uri_prefix' must exist and there must 502 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 503 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 504 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 505 * is returned. 506 * </pre> 507 * 508 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 509 * 510 * @return The bytes for outputUriPrefix. 511 */ getOutputUriPrefixBytes()512 public com.google.protobuf.ByteString getOutputUriPrefixBytes() { 513 java.lang.Object ref = outputUriPrefix_; 514 if (ref instanceof String) { 515 com.google.protobuf.ByteString b = 516 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 517 outputUriPrefix_ = b; 518 return b; 519 } else { 520 return (com.google.protobuf.ByteString) ref; 521 } 522 } 523 /** 524 * 525 * 526 * <pre> 527 * Required. The bucket used in 'output_uri_prefix' must exist and there must 528 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 529 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 530 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 531 * is returned. 532 * </pre> 533 * 534 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 535 * 536 * @param value The outputUriPrefix to set. 537 * @return This builder for chaining. 538 */ setOutputUriPrefix(java.lang.String value)539 public Builder setOutputUriPrefix(java.lang.String value) { 540 if (value == null) { 541 throw new NullPointerException(); 542 } 543 outputUriPrefix_ = value; 544 bitField0_ |= 0x00000001; 545 onChanged(); 546 return this; 547 } 548 /** 549 * 550 * 551 * <pre> 552 * Required. The bucket used in 'output_uri_prefix' must exist and there must 553 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 554 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 555 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 556 * is returned. 557 * </pre> 558 * 559 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 560 * 561 * @return This builder for chaining. 562 */ clearOutputUriPrefix()563 public Builder clearOutputUriPrefix() { 564 outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); 565 bitField0_ = (bitField0_ & ~0x00000001); 566 onChanged(); 567 return this; 568 } 569 /** 570 * 571 * 572 * <pre> 573 * Required. The bucket used in 'output_uri_prefix' must exist and there must 574 * be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with 575 * "/" and start with "gs://". One 'output_uri_prefix' can only be used by one 576 * batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error 577 * is returned. 578 * </pre> 579 * 580 * <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> 581 * 582 * @param value The bytes for outputUriPrefix to set. 583 * @return This builder for chaining. 584 */ setOutputUriPrefixBytes(com.google.protobuf.ByteString value)585 public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { 586 if (value == null) { 587 throw new NullPointerException(); 588 } 589 checkByteStringIsUtf8(value); 590 outputUriPrefix_ = value; 591 bitField0_ |= 0x00000001; 592 onChanged(); 593 return this; 594 } 595 596 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)597 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 598 return super.setUnknownFields(unknownFields); 599 } 600 601 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)602 public final Builder mergeUnknownFields( 603 final com.google.protobuf.UnknownFieldSet unknownFields) { 604 return super.mergeUnknownFields(unknownFields); 605 } 606 607 // @@protoc_insertion_point(builder_scope:google.cloud.translation.v3.GcsDestination) 608 } 609 610 // @@protoc_insertion_point(class_scope:google.cloud.translation.v3.GcsDestination) 611 private static final com.google.cloud.translate.v3.GcsDestination DEFAULT_INSTANCE; 612 613 static { 614 DEFAULT_INSTANCE = new com.google.cloud.translate.v3.GcsDestination(); 615 } 616 getDefaultInstance()617 public static com.google.cloud.translate.v3.GcsDestination getDefaultInstance() { 618 return DEFAULT_INSTANCE; 619 } 620 621 private static final com.google.protobuf.Parser<GcsDestination> PARSER = 622 new com.google.protobuf.AbstractParser<GcsDestination>() { 623 @java.lang.Override 624 public GcsDestination parsePartialFrom( 625 com.google.protobuf.CodedInputStream input, 626 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 627 throws com.google.protobuf.InvalidProtocolBufferException { 628 Builder builder = newBuilder(); 629 try { 630 builder.mergeFrom(input, extensionRegistry); 631 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 632 throw e.setUnfinishedMessage(builder.buildPartial()); 633 } catch (com.google.protobuf.UninitializedMessageException e) { 634 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 635 } catch (java.io.IOException e) { 636 throw new com.google.protobuf.InvalidProtocolBufferException(e) 637 .setUnfinishedMessage(builder.buildPartial()); 638 } 639 return builder.buildPartial(); 640 } 641 }; 642 parser()643 public static com.google.protobuf.Parser<GcsDestination> parser() { 644 return PARSER; 645 } 646 647 @java.lang.Override getParserForType()648 public com.google.protobuf.Parser<GcsDestination> getParserForType() { 649 return PARSER; 650 } 651 652 @java.lang.Override getDefaultInstanceForType()653 public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { 654 return DEFAULT_INSTANCE; 655 } 656 } 657