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/aiplatform/v1beta1/dataset_service.proto 18 19 package com.google.cloud.aiplatform.v1beta1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A container for a single DataItem and Annotations on it. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.aiplatform.v1beta1.DataItemView} 29 */ 30 public final class DataItemView extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DataItemView) 33 DataItemViewOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use DataItemView.newBuilder() to construct. DataItemView(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private DataItemView(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 DataItemView()40 private DataItemView() { 41 annotations_ = java.util.Collections.emptyList(); 42 } 43 44 @java.lang.Override 45 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)46 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 47 return new DataItemView(); 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.aiplatform.v1beta1.DatasetServiceProto 57 .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; 58 } 59 60 @java.lang.Override 61 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()62 internalGetFieldAccessorTable() { 63 return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto 64 .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable 65 .ensureFieldAccessorsInitialized( 66 com.google.cloud.aiplatform.v1beta1.DataItemView.class, 67 com.google.cloud.aiplatform.v1beta1.DataItemView.Builder.class); 68 } 69 70 public static final int DATA_ITEM_FIELD_NUMBER = 1; 71 private com.google.cloud.aiplatform.v1beta1.DataItem dataItem_; 72 /** 73 * 74 * 75 * <pre> 76 * The DataItem. 77 * </pre> 78 * 79 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 80 * 81 * @return Whether the dataItem field is set. 82 */ 83 @java.lang.Override hasDataItem()84 public boolean hasDataItem() { 85 return dataItem_ != null; 86 } 87 /** 88 * 89 * 90 * <pre> 91 * The DataItem. 92 * </pre> 93 * 94 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 95 * 96 * @return The dataItem. 97 */ 98 @java.lang.Override getDataItem()99 public com.google.cloud.aiplatform.v1beta1.DataItem getDataItem() { 100 return dataItem_ == null 101 ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() 102 : dataItem_; 103 } 104 /** 105 * 106 * 107 * <pre> 108 * The DataItem. 109 * </pre> 110 * 111 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 112 */ 113 @java.lang.Override getDataItemOrBuilder()114 public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder() { 115 return dataItem_ == null 116 ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() 117 : dataItem_; 118 } 119 120 public static final int ANNOTATIONS_FIELD_NUMBER = 2; 121 122 @SuppressWarnings("serial") 123 private java.util.List<com.google.cloud.aiplatform.v1beta1.Annotation> annotations_; 124 /** 125 * 126 * 127 * <pre> 128 * The Annotations on the DataItem. If too many Annotations should be returned 129 * for the DataItem, this field will be truncated per annotations_limit in 130 * request. If it was, then the has_truncated_annotations will be set to true. 131 * </pre> 132 * 133 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 134 */ 135 @java.lang.Override getAnnotationsList()136 public java.util.List<com.google.cloud.aiplatform.v1beta1.Annotation> getAnnotationsList() { 137 return annotations_; 138 } 139 /** 140 * 141 * 142 * <pre> 143 * The Annotations on the DataItem. If too many Annotations should be returned 144 * for the DataItem, this field will be truncated per annotations_limit in 145 * request. If it was, then the has_truncated_annotations will be set to true. 146 * </pre> 147 * 148 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 149 */ 150 @java.lang.Override 151 public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> getAnnotationsOrBuilderList()152 getAnnotationsOrBuilderList() { 153 return annotations_; 154 } 155 /** 156 * 157 * 158 * <pre> 159 * The Annotations on the DataItem. If too many Annotations should be returned 160 * for the DataItem, this field will be truncated per annotations_limit in 161 * request. If it was, then the has_truncated_annotations will be set to true. 162 * </pre> 163 * 164 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 165 */ 166 @java.lang.Override getAnnotationsCount()167 public int getAnnotationsCount() { 168 return annotations_.size(); 169 } 170 /** 171 * 172 * 173 * <pre> 174 * The Annotations on the DataItem. If too many Annotations should be returned 175 * for the DataItem, this field will be truncated per annotations_limit in 176 * request. If it was, then the has_truncated_annotations will be set to true. 177 * </pre> 178 * 179 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 180 */ 181 @java.lang.Override getAnnotations(int index)182 public com.google.cloud.aiplatform.v1beta1.Annotation getAnnotations(int index) { 183 return annotations_.get(index); 184 } 185 /** 186 * 187 * 188 * <pre> 189 * The Annotations on the DataItem. If too many Annotations should be returned 190 * for the DataItem, this field will be truncated per annotations_limit in 191 * request. If it was, then the has_truncated_annotations will be set to true. 192 * </pre> 193 * 194 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 195 */ 196 @java.lang.Override getAnnotationsOrBuilder( int index)197 public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder( 198 int index) { 199 return annotations_.get(index); 200 } 201 202 public static final int HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER = 3; 203 private boolean hasTruncatedAnnotations_ = false; 204 /** 205 * 206 * 207 * <pre> 208 * True if and only if the Annotations field has been truncated. It happens if 209 * more Annotations for this DataItem met the request's annotation_filter than 210 * are allowed to be returned by annotations_limit. 211 * Note that if Annotations field is not being returned due to field mask, 212 * then this field will not be set to true no matter how many Annotations are 213 * there. 214 * </pre> 215 * 216 * <code>bool has_truncated_annotations = 3;</code> 217 * 218 * @return The hasTruncatedAnnotations. 219 */ 220 @java.lang.Override getHasTruncatedAnnotations()221 public boolean getHasTruncatedAnnotations() { 222 return hasTruncatedAnnotations_; 223 } 224 225 private byte memoizedIsInitialized = -1; 226 227 @java.lang.Override isInitialized()228 public final boolean isInitialized() { 229 byte isInitialized = memoizedIsInitialized; 230 if (isInitialized == 1) return true; 231 if (isInitialized == 0) return false; 232 233 memoizedIsInitialized = 1; 234 return true; 235 } 236 237 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)238 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 239 if (dataItem_ != null) { 240 output.writeMessage(1, getDataItem()); 241 } 242 for (int i = 0; i < annotations_.size(); i++) { 243 output.writeMessage(2, annotations_.get(i)); 244 } 245 if (hasTruncatedAnnotations_ != false) { 246 output.writeBool(3, hasTruncatedAnnotations_); 247 } 248 getUnknownFields().writeTo(output); 249 } 250 251 @java.lang.Override getSerializedSize()252 public int getSerializedSize() { 253 int size = memoizedSize; 254 if (size != -1) return size; 255 256 size = 0; 257 if (dataItem_ != null) { 258 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataItem()); 259 } 260 for (int i = 0; i < annotations_.size(); i++) { 261 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, annotations_.get(i)); 262 } 263 if (hasTruncatedAnnotations_ != false) { 264 size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hasTruncatedAnnotations_); 265 } 266 size += getUnknownFields().getSerializedSize(); 267 memoizedSize = size; 268 return size; 269 } 270 271 @java.lang.Override equals(final java.lang.Object obj)272 public boolean equals(final java.lang.Object obj) { 273 if (obj == this) { 274 return true; 275 } 276 if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DataItemView)) { 277 return super.equals(obj); 278 } 279 com.google.cloud.aiplatform.v1beta1.DataItemView other = 280 (com.google.cloud.aiplatform.v1beta1.DataItemView) obj; 281 282 if (hasDataItem() != other.hasDataItem()) return false; 283 if (hasDataItem()) { 284 if (!getDataItem().equals(other.getDataItem())) return false; 285 } 286 if (!getAnnotationsList().equals(other.getAnnotationsList())) return false; 287 if (getHasTruncatedAnnotations() != other.getHasTruncatedAnnotations()) return false; 288 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 289 return true; 290 } 291 292 @java.lang.Override hashCode()293 public int hashCode() { 294 if (memoizedHashCode != 0) { 295 return memoizedHashCode; 296 } 297 int hash = 41; 298 hash = (19 * hash) + getDescriptor().hashCode(); 299 if (hasDataItem()) { 300 hash = (37 * hash) + DATA_ITEM_FIELD_NUMBER; 301 hash = (53 * hash) + getDataItem().hashCode(); 302 } 303 if (getAnnotationsCount() > 0) { 304 hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; 305 hash = (53 * hash) + getAnnotationsList().hashCode(); 306 } 307 hash = (37 * hash) + HAS_TRUNCATED_ANNOTATIONS_FIELD_NUMBER; 308 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasTruncatedAnnotations()); 309 hash = (29 * hash) + getUnknownFields().hashCode(); 310 memoizedHashCode = hash; 311 return hash; 312 } 313 parseFrom(java.nio.ByteBuffer data)314 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom(java.nio.ByteBuffer data) 315 throws com.google.protobuf.InvalidProtocolBufferException { 316 return PARSER.parseFrom(data); 317 } 318 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)319 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 320 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 321 throws com.google.protobuf.InvalidProtocolBufferException { 322 return PARSER.parseFrom(data, extensionRegistry); 323 } 324 parseFrom( com.google.protobuf.ByteString data)325 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 326 com.google.protobuf.ByteString data) 327 throws com.google.protobuf.InvalidProtocolBufferException { 328 return PARSER.parseFrom(data); 329 } 330 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)331 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 332 com.google.protobuf.ByteString data, 333 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 334 throws com.google.protobuf.InvalidProtocolBufferException { 335 return PARSER.parseFrom(data, extensionRegistry); 336 } 337 parseFrom(byte[] data)338 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom(byte[] data) 339 throws com.google.protobuf.InvalidProtocolBufferException { 340 return PARSER.parseFrom(data); 341 } 342 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)343 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 344 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 345 throws com.google.protobuf.InvalidProtocolBufferException { 346 return PARSER.parseFrom(data, extensionRegistry); 347 } 348 parseFrom( java.io.InputStream input)349 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 350 java.io.InputStream input) throws java.io.IOException { 351 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 352 } 353 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)354 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 355 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 356 throws java.io.IOException { 357 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 358 PARSER, input, extensionRegistry); 359 } 360 parseDelimitedFrom( java.io.InputStream input)361 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseDelimitedFrom( 362 java.io.InputStream input) throws java.io.IOException { 363 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 364 } 365 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)366 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseDelimitedFrom( 367 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 368 throws java.io.IOException { 369 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 370 PARSER, input, extensionRegistry); 371 } 372 parseFrom( com.google.protobuf.CodedInputStream input)373 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 374 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 375 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 376 } 377 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)378 public static com.google.cloud.aiplatform.v1beta1.DataItemView parseFrom( 379 com.google.protobuf.CodedInputStream input, 380 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 381 throws java.io.IOException { 382 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 383 PARSER, input, extensionRegistry); 384 } 385 386 @java.lang.Override newBuilderForType()387 public Builder newBuilderForType() { 388 return newBuilder(); 389 } 390 newBuilder()391 public static Builder newBuilder() { 392 return DEFAULT_INSTANCE.toBuilder(); 393 } 394 newBuilder(com.google.cloud.aiplatform.v1beta1.DataItemView prototype)395 public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.DataItemView prototype) { 396 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 397 } 398 399 @java.lang.Override toBuilder()400 public Builder toBuilder() { 401 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 402 } 403 404 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)405 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 406 Builder builder = new Builder(parent); 407 return builder; 408 } 409 /** 410 * 411 * 412 * <pre> 413 * A container for a single DataItem and Annotations on it. 414 * </pre> 415 * 416 * Protobuf type {@code google.cloud.aiplatform.v1beta1.DataItemView} 417 */ 418 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 419 implements 420 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DataItemView) 421 com.google.cloud.aiplatform.v1beta1.DataItemViewOrBuilder { getDescriptor()422 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 423 return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto 424 .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; 425 } 426 427 @java.lang.Override 428 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()429 internalGetFieldAccessorTable() { 430 return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto 431 .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable 432 .ensureFieldAccessorsInitialized( 433 com.google.cloud.aiplatform.v1beta1.DataItemView.class, 434 com.google.cloud.aiplatform.v1beta1.DataItemView.Builder.class); 435 } 436 437 // Construct using com.google.cloud.aiplatform.v1beta1.DataItemView.newBuilder() Builder()438 private Builder() {} 439 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)440 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 441 super(parent); 442 } 443 444 @java.lang.Override clear()445 public Builder clear() { 446 super.clear(); 447 bitField0_ = 0; 448 dataItem_ = null; 449 if (dataItemBuilder_ != null) { 450 dataItemBuilder_.dispose(); 451 dataItemBuilder_ = null; 452 } 453 if (annotationsBuilder_ == null) { 454 annotations_ = java.util.Collections.emptyList(); 455 } else { 456 annotations_ = null; 457 annotationsBuilder_.clear(); 458 } 459 bitField0_ = (bitField0_ & ~0x00000002); 460 hasTruncatedAnnotations_ = false; 461 return this; 462 } 463 464 @java.lang.Override getDescriptorForType()465 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 466 return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto 467 .internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor; 468 } 469 470 @java.lang.Override getDefaultInstanceForType()471 public com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstanceForType() { 472 return com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance(); 473 } 474 475 @java.lang.Override build()476 public com.google.cloud.aiplatform.v1beta1.DataItemView build() { 477 com.google.cloud.aiplatform.v1beta1.DataItemView result = buildPartial(); 478 if (!result.isInitialized()) { 479 throw newUninitializedMessageException(result); 480 } 481 return result; 482 } 483 484 @java.lang.Override buildPartial()485 public com.google.cloud.aiplatform.v1beta1.DataItemView buildPartial() { 486 com.google.cloud.aiplatform.v1beta1.DataItemView result = 487 new com.google.cloud.aiplatform.v1beta1.DataItemView(this); 488 buildPartialRepeatedFields(result); 489 if (bitField0_ != 0) { 490 buildPartial0(result); 491 } 492 onBuilt(); 493 return result; 494 } 495 buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.DataItemView result)496 private void buildPartialRepeatedFields( 497 com.google.cloud.aiplatform.v1beta1.DataItemView result) { 498 if (annotationsBuilder_ == null) { 499 if (((bitField0_ & 0x00000002) != 0)) { 500 annotations_ = java.util.Collections.unmodifiableList(annotations_); 501 bitField0_ = (bitField0_ & ~0x00000002); 502 } 503 result.annotations_ = annotations_; 504 } else { 505 result.annotations_ = annotationsBuilder_.build(); 506 } 507 } 508 buildPartial0(com.google.cloud.aiplatform.v1beta1.DataItemView result)509 private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DataItemView result) { 510 int from_bitField0_ = bitField0_; 511 if (((from_bitField0_ & 0x00000001) != 0)) { 512 result.dataItem_ = dataItemBuilder_ == null ? dataItem_ : dataItemBuilder_.build(); 513 } 514 if (((from_bitField0_ & 0x00000004) != 0)) { 515 result.hasTruncatedAnnotations_ = hasTruncatedAnnotations_; 516 } 517 } 518 519 @java.lang.Override clone()520 public Builder clone() { 521 return super.clone(); 522 } 523 524 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)525 public Builder setField( 526 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 527 return super.setField(field, value); 528 } 529 530 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)531 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 532 return super.clearField(field); 533 } 534 535 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)536 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 537 return super.clearOneof(oneof); 538 } 539 540 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)541 public Builder setRepeatedField( 542 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 543 return super.setRepeatedField(field, index, value); 544 } 545 546 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)547 public Builder addRepeatedField( 548 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 549 return super.addRepeatedField(field, value); 550 } 551 552 @java.lang.Override mergeFrom(com.google.protobuf.Message other)553 public Builder mergeFrom(com.google.protobuf.Message other) { 554 if (other instanceof com.google.cloud.aiplatform.v1beta1.DataItemView) { 555 return mergeFrom((com.google.cloud.aiplatform.v1beta1.DataItemView) other); 556 } else { 557 super.mergeFrom(other); 558 return this; 559 } 560 } 561 mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItemView other)562 public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DataItemView other) { 563 if (other == com.google.cloud.aiplatform.v1beta1.DataItemView.getDefaultInstance()) 564 return this; 565 if (other.hasDataItem()) { 566 mergeDataItem(other.getDataItem()); 567 } 568 if (annotationsBuilder_ == null) { 569 if (!other.annotations_.isEmpty()) { 570 if (annotations_.isEmpty()) { 571 annotations_ = other.annotations_; 572 bitField0_ = (bitField0_ & ~0x00000002); 573 } else { 574 ensureAnnotationsIsMutable(); 575 annotations_.addAll(other.annotations_); 576 } 577 onChanged(); 578 } 579 } else { 580 if (!other.annotations_.isEmpty()) { 581 if (annotationsBuilder_.isEmpty()) { 582 annotationsBuilder_.dispose(); 583 annotationsBuilder_ = null; 584 annotations_ = other.annotations_; 585 bitField0_ = (bitField0_ & ~0x00000002); 586 annotationsBuilder_ = 587 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 588 ? getAnnotationsFieldBuilder() 589 : null; 590 } else { 591 annotationsBuilder_.addAllMessages(other.annotations_); 592 } 593 } 594 } 595 if (other.getHasTruncatedAnnotations() != false) { 596 setHasTruncatedAnnotations(other.getHasTruncatedAnnotations()); 597 } 598 this.mergeUnknownFields(other.getUnknownFields()); 599 onChanged(); 600 return this; 601 } 602 603 @java.lang.Override isInitialized()604 public final boolean isInitialized() { 605 return true; 606 } 607 608 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)609 public Builder mergeFrom( 610 com.google.protobuf.CodedInputStream input, 611 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 612 throws java.io.IOException { 613 if (extensionRegistry == null) { 614 throw new java.lang.NullPointerException(); 615 } 616 try { 617 boolean done = false; 618 while (!done) { 619 int tag = input.readTag(); 620 switch (tag) { 621 case 0: 622 done = true; 623 break; 624 case 10: 625 { 626 input.readMessage(getDataItemFieldBuilder().getBuilder(), extensionRegistry); 627 bitField0_ |= 0x00000001; 628 break; 629 } // case 10 630 case 18: 631 { 632 com.google.cloud.aiplatform.v1beta1.Annotation m = 633 input.readMessage( 634 com.google.cloud.aiplatform.v1beta1.Annotation.parser(), extensionRegistry); 635 if (annotationsBuilder_ == null) { 636 ensureAnnotationsIsMutable(); 637 annotations_.add(m); 638 } else { 639 annotationsBuilder_.addMessage(m); 640 } 641 break; 642 } // case 18 643 case 24: 644 { 645 hasTruncatedAnnotations_ = input.readBool(); 646 bitField0_ |= 0x00000004; 647 break; 648 } // case 24 649 default: 650 { 651 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 652 done = true; // was an endgroup tag 653 } 654 break; 655 } // default: 656 } // switch (tag) 657 } // while (!done) 658 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 659 throw e.unwrapIOException(); 660 } finally { 661 onChanged(); 662 } // finally 663 return this; 664 } 665 666 private int bitField0_; 667 668 private com.google.cloud.aiplatform.v1beta1.DataItem dataItem_; 669 private com.google.protobuf.SingleFieldBuilderV3< 670 com.google.cloud.aiplatform.v1beta1.DataItem, 671 com.google.cloud.aiplatform.v1beta1.DataItem.Builder, 672 com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder> 673 dataItemBuilder_; 674 /** 675 * 676 * 677 * <pre> 678 * The DataItem. 679 * </pre> 680 * 681 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 682 * 683 * @return Whether the dataItem field is set. 684 */ hasDataItem()685 public boolean hasDataItem() { 686 return ((bitField0_ & 0x00000001) != 0); 687 } 688 /** 689 * 690 * 691 * <pre> 692 * The DataItem. 693 * </pre> 694 * 695 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 696 * 697 * @return The dataItem. 698 */ getDataItem()699 public com.google.cloud.aiplatform.v1beta1.DataItem getDataItem() { 700 if (dataItemBuilder_ == null) { 701 return dataItem_ == null 702 ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() 703 : dataItem_; 704 } else { 705 return dataItemBuilder_.getMessage(); 706 } 707 } 708 /** 709 * 710 * 711 * <pre> 712 * The DataItem. 713 * </pre> 714 * 715 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 716 */ setDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value)717 public Builder setDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { 718 if (dataItemBuilder_ == null) { 719 if (value == null) { 720 throw new NullPointerException(); 721 } 722 dataItem_ = value; 723 } else { 724 dataItemBuilder_.setMessage(value); 725 } 726 bitField0_ |= 0x00000001; 727 onChanged(); 728 return this; 729 } 730 /** 731 * 732 * 733 * <pre> 734 * The DataItem. 735 * </pre> 736 * 737 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 738 */ setDataItem( com.google.cloud.aiplatform.v1beta1.DataItem.Builder builderForValue)739 public Builder setDataItem( 740 com.google.cloud.aiplatform.v1beta1.DataItem.Builder builderForValue) { 741 if (dataItemBuilder_ == null) { 742 dataItem_ = builderForValue.build(); 743 } else { 744 dataItemBuilder_.setMessage(builderForValue.build()); 745 } 746 bitField0_ |= 0x00000001; 747 onChanged(); 748 return this; 749 } 750 /** 751 * 752 * 753 * <pre> 754 * The DataItem. 755 * </pre> 756 * 757 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 758 */ mergeDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value)759 public Builder mergeDataItem(com.google.cloud.aiplatform.v1beta1.DataItem value) { 760 if (dataItemBuilder_ == null) { 761 if (((bitField0_ & 0x00000001) != 0) 762 && dataItem_ != null 763 && dataItem_ != com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance()) { 764 getDataItemBuilder().mergeFrom(value); 765 } else { 766 dataItem_ = value; 767 } 768 } else { 769 dataItemBuilder_.mergeFrom(value); 770 } 771 bitField0_ |= 0x00000001; 772 onChanged(); 773 return this; 774 } 775 /** 776 * 777 * 778 * <pre> 779 * The DataItem. 780 * </pre> 781 * 782 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 783 */ clearDataItem()784 public Builder clearDataItem() { 785 bitField0_ = (bitField0_ & ~0x00000001); 786 dataItem_ = null; 787 if (dataItemBuilder_ != null) { 788 dataItemBuilder_.dispose(); 789 dataItemBuilder_ = null; 790 } 791 onChanged(); 792 return this; 793 } 794 /** 795 * 796 * 797 * <pre> 798 * The DataItem. 799 * </pre> 800 * 801 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 802 */ getDataItemBuilder()803 public com.google.cloud.aiplatform.v1beta1.DataItem.Builder getDataItemBuilder() { 804 bitField0_ |= 0x00000001; 805 onChanged(); 806 return getDataItemFieldBuilder().getBuilder(); 807 } 808 /** 809 * 810 * 811 * <pre> 812 * The DataItem. 813 * </pre> 814 * 815 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 816 */ getDataItemOrBuilder()817 public com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder getDataItemOrBuilder() { 818 if (dataItemBuilder_ != null) { 819 return dataItemBuilder_.getMessageOrBuilder(); 820 } else { 821 return dataItem_ == null 822 ? com.google.cloud.aiplatform.v1beta1.DataItem.getDefaultInstance() 823 : dataItem_; 824 } 825 } 826 /** 827 * 828 * 829 * <pre> 830 * The DataItem. 831 * </pre> 832 * 833 * <code>.google.cloud.aiplatform.v1beta1.DataItem data_item = 1;</code> 834 */ 835 private com.google.protobuf.SingleFieldBuilderV3< 836 com.google.cloud.aiplatform.v1beta1.DataItem, 837 com.google.cloud.aiplatform.v1beta1.DataItem.Builder, 838 com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder> getDataItemFieldBuilder()839 getDataItemFieldBuilder() { 840 if (dataItemBuilder_ == null) { 841 dataItemBuilder_ = 842 new com.google.protobuf.SingleFieldBuilderV3< 843 com.google.cloud.aiplatform.v1beta1.DataItem, 844 com.google.cloud.aiplatform.v1beta1.DataItem.Builder, 845 com.google.cloud.aiplatform.v1beta1.DataItemOrBuilder>( 846 getDataItem(), getParentForChildren(), isClean()); 847 dataItem_ = null; 848 } 849 return dataItemBuilder_; 850 } 851 852 private java.util.List<com.google.cloud.aiplatform.v1beta1.Annotation> annotations_ = 853 java.util.Collections.emptyList(); 854 ensureAnnotationsIsMutable()855 private void ensureAnnotationsIsMutable() { 856 if (!((bitField0_ & 0x00000002) != 0)) { 857 annotations_ = 858 new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.Annotation>(annotations_); 859 bitField0_ |= 0x00000002; 860 } 861 } 862 863 private com.google.protobuf.RepeatedFieldBuilderV3< 864 com.google.cloud.aiplatform.v1beta1.Annotation, 865 com.google.cloud.aiplatform.v1beta1.Annotation.Builder, 866 com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> 867 annotationsBuilder_; 868 869 /** 870 * 871 * 872 * <pre> 873 * The Annotations on the DataItem. If too many Annotations should be returned 874 * for the DataItem, this field will be truncated per annotations_limit in 875 * request. If it was, then the has_truncated_annotations will be set to true. 876 * </pre> 877 * 878 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 879 */ getAnnotationsList()880 public java.util.List<com.google.cloud.aiplatform.v1beta1.Annotation> getAnnotationsList() { 881 if (annotationsBuilder_ == null) { 882 return java.util.Collections.unmodifiableList(annotations_); 883 } else { 884 return annotationsBuilder_.getMessageList(); 885 } 886 } 887 /** 888 * 889 * 890 * <pre> 891 * The Annotations on the DataItem. If too many Annotations should be returned 892 * for the DataItem, this field will be truncated per annotations_limit in 893 * request. If it was, then the has_truncated_annotations will be set to true. 894 * </pre> 895 * 896 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 897 */ getAnnotationsCount()898 public int getAnnotationsCount() { 899 if (annotationsBuilder_ == null) { 900 return annotations_.size(); 901 } else { 902 return annotationsBuilder_.getCount(); 903 } 904 } 905 /** 906 * 907 * 908 * <pre> 909 * The Annotations on the DataItem. If too many Annotations should be returned 910 * for the DataItem, this field will be truncated per annotations_limit in 911 * request. If it was, then the has_truncated_annotations will be set to true. 912 * </pre> 913 * 914 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 915 */ getAnnotations(int index)916 public com.google.cloud.aiplatform.v1beta1.Annotation getAnnotations(int index) { 917 if (annotationsBuilder_ == null) { 918 return annotations_.get(index); 919 } else { 920 return annotationsBuilder_.getMessage(index); 921 } 922 } 923 /** 924 * 925 * 926 * <pre> 927 * The Annotations on the DataItem. If too many Annotations should be returned 928 * for the DataItem, this field will be truncated per annotations_limit in 929 * request. If it was, then the has_truncated_annotations will be set to true. 930 * </pre> 931 * 932 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 933 */ setAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value)934 public Builder setAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value) { 935 if (annotationsBuilder_ == null) { 936 if (value == null) { 937 throw new NullPointerException(); 938 } 939 ensureAnnotationsIsMutable(); 940 annotations_.set(index, value); 941 onChanged(); 942 } else { 943 annotationsBuilder_.setMessage(index, value); 944 } 945 return this; 946 } 947 /** 948 * 949 * 950 * <pre> 951 * The Annotations on the DataItem. If too many Annotations should be returned 952 * for the DataItem, this field will be truncated per annotations_limit in 953 * request. If it was, then the has_truncated_annotations will be set to true. 954 * </pre> 955 * 956 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 957 */ setAnnotations( int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue)958 public Builder setAnnotations( 959 int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { 960 if (annotationsBuilder_ == null) { 961 ensureAnnotationsIsMutable(); 962 annotations_.set(index, builderForValue.build()); 963 onChanged(); 964 } else { 965 annotationsBuilder_.setMessage(index, builderForValue.build()); 966 } 967 return this; 968 } 969 /** 970 * 971 * 972 * <pre> 973 * The Annotations on the DataItem. If too many Annotations should be returned 974 * for the DataItem, this field will be truncated per annotations_limit in 975 * request. If it was, then the has_truncated_annotations will be set to true. 976 * </pre> 977 * 978 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 979 */ addAnnotations(com.google.cloud.aiplatform.v1beta1.Annotation value)980 public Builder addAnnotations(com.google.cloud.aiplatform.v1beta1.Annotation value) { 981 if (annotationsBuilder_ == null) { 982 if (value == null) { 983 throw new NullPointerException(); 984 } 985 ensureAnnotationsIsMutable(); 986 annotations_.add(value); 987 onChanged(); 988 } else { 989 annotationsBuilder_.addMessage(value); 990 } 991 return this; 992 } 993 /** 994 * 995 * 996 * <pre> 997 * The Annotations on the DataItem. If too many Annotations should be returned 998 * for the DataItem, this field will be truncated per annotations_limit in 999 * request. If it was, then the has_truncated_annotations will be set to true. 1000 * </pre> 1001 * 1002 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1003 */ addAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value)1004 public Builder addAnnotations(int index, com.google.cloud.aiplatform.v1beta1.Annotation value) { 1005 if (annotationsBuilder_ == null) { 1006 if (value == null) { 1007 throw new NullPointerException(); 1008 } 1009 ensureAnnotationsIsMutable(); 1010 annotations_.add(index, value); 1011 onChanged(); 1012 } else { 1013 annotationsBuilder_.addMessage(index, value); 1014 } 1015 return this; 1016 } 1017 /** 1018 * 1019 * 1020 * <pre> 1021 * The Annotations on the DataItem. If too many Annotations should be returned 1022 * for the DataItem, this field will be truncated per annotations_limit in 1023 * request. If it was, then the has_truncated_annotations will be set to true. 1024 * </pre> 1025 * 1026 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1027 */ addAnnotations( com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue)1028 public Builder addAnnotations( 1029 com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { 1030 if (annotationsBuilder_ == null) { 1031 ensureAnnotationsIsMutable(); 1032 annotations_.add(builderForValue.build()); 1033 onChanged(); 1034 } else { 1035 annotationsBuilder_.addMessage(builderForValue.build()); 1036 } 1037 return this; 1038 } 1039 /** 1040 * 1041 * 1042 * <pre> 1043 * The Annotations on the DataItem. If too many Annotations should be returned 1044 * for the DataItem, this field will be truncated per annotations_limit in 1045 * request. If it was, then the has_truncated_annotations will be set to true. 1046 * </pre> 1047 * 1048 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1049 */ addAnnotations( int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue)1050 public Builder addAnnotations( 1051 int index, com.google.cloud.aiplatform.v1beta1.Annotation.Builder builderForValue) { 1052 if (annotationsBuilder_ == null) { 1053 ensureAnnotationsIsMutable(); 1054 annotations_.add(index, builderForValue.build()); 1055 onChanged(); 1056 } else { 1057 annotationsBuilder_.addMessage(index, builderForValue.build()); 1058 } 1059 return this; 1060 } 1061 /** 1062 * 1063 * 1064 * <pre> 1065 * The Annotations on the DataItem. If too many Annotations should be returned 1066 * for the DataItem, this field will be truncated per annotations_limit in 1067 * request. If it was, then the has_truncated_annotations will be set to true. 1068 * </pre> 1069 * 1070 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1071 */ addAllAnnotations( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Annotation> values)1072 public Builder addAllAnnotations( 1073 java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Annotation> values) { 1074 if (annotationsBuilder_ == null) { 1075 ensureAnnotationsIsMutable(); 1076 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_); 1077 onChanged(); 1078 } else { 1079 annotationsBuilder_.addAllMessages(values); 1080 } 1081 return this; 1082 } 1083 /** 1084 * 1085 * 1086 * <pre> 1087 * The Annotations on the DataItem. If too many Annotations should be returned 1088 * for the DataItem, this field will be truncated per annotations_limit in 1089 * request. If it was, then the has_truncated_annotations will be set to true. 1090 * </pre> 1091 * 1092 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1093 */ clearAnnotations()1094 public Builder clearAnnotations() { 1095 if (annotationsBuilder_ == null) { 1096 annotations_ = java.util.Collections.emptyList(); 1097 bitField0_ = (bitField0_ & ~0x00000002); 1098 onChanged(); 1099 } else { 1100 annotationsBuilder_.clear(); 1101 } 1102 return this; 1103 } 1104 /** 1105 * 1106 * 1107 * <pre> 1108 * The Annotations on the DataItem. If too many Annotations should be returned 1109 * for the DataItem, this field will be truncated per annotations_limit in 1110 * request. If it was, then the has_truncated_annotations will be set to true. 1111 * </pre> 1112 * 1113 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1114 */ removeAnnotations(int index)1115 public Builder removeAnnotations(int index) { 1116 if (annotationsBuilder_ == null) { 1117 ensureAnnotationsIsMutable(); 1118 annotations_.remove(index); 1119 onChanged(); 1120 } else { 1121 annotationsBuilder_.remove(index); 1122 } 1123 return this; 1124 } 1125 /** 1126 * 1127 * 1128 * <pre> 1129 * The Annotations on the DataItem. If too many Annotations should be returned 1130 * for the DataItem, this field will be truncated per annotations_limit in 1131 * request. If it was, then the has_truncated_annotations will be set to true. 1132 * </pre> 1133 * 1134 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1135 */ getAnnotationsBuilder(int index)1136 public com.google.cloud.aiplatform.v1beta1.Annotation.Builder getAnnotationsBuilder(int index) { 1137 return getAnnotationsFieldBuilder().getBuilder(index); 1138 } 1139 /** 1140 * 1141 * 1142 * <pre> 1143 * The Annotations on the DataItem. If too many Annotations should be returned 1144 * for the DataItem, this field will be truncated per annotations_limit in 1145 * request. If it was, then the has_truncated_annotations will be set to true. 1146 * </pre> 1147 * 1148 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1149 */ getAnnotationsOrBuilder( int index)1150 public com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder( 1151 int index) { 1152 if (annotationsBuilder_ == null) { 1153 return annotations_.get(index); 1154 } else { 1155 return annotationsBuilder_.getMessageOrBuilder(index); 1156 } 1157 } 1158 /** 1159 * 1160 * 1161 * <pre> 1162 * The Annotations on the DataItem. If too many Annotations should be returned 1163 * for the DataItem, this field will be truncated per annotations_limit in 1164 * request. If it was, then the has_truncated_annotations will be set to true. 1165 * </pre> 1166 * 1167 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1168 */ 1169 public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> getAnnotationsOrBuilderList()1170 getAnnotationsOrBuilderList() { 1171 if (annotationsBuilder_ != null) { 1172 return annotationsBuilder_.getMessageOrBuilderList(); 1173 } else { 1174 return java.util.Collections.unmodifiableList(annotations_); 1175 } 1176 } 1177 /** 1178 * 1179 * 1180 * <pre> 1181 * The Annotations on the DataItem. If too many Annotations should be returned 1182 * for the DataItem, this field will be truncated per annotations_limit in 1183 * request. If it was, then the has_truncated_annotations will be set to true. 1184 * </pre> 1185 * 1186 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1187 */ addAnnotationsBuilder()1188 public com.google.cloud.aiplatform.v1beta1.Annotation.Builder addAnnotationsBuilder() { 1189 return getAnnotationsFieldBuilder() 1190 .addBuilder(com.google.cloud.aiplatform.v1beta1.Annotation.getDefaultInstance()); 1191 } 1192 /** 1193 * 1194 * 1195 * <pre> 1196 * The Annotations on the DataItem. If too many Annotations should be returned 1197 * for the DataItem, this field will be truncated per annotations_limit in 1198 * request. If it was, then the has_truncated_annotations will be set to true. 1199 * </pre> 1200 * 1201 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1202 */ addAnnotationsBuilder(int index)1203 public com.google.cloud.aiplatform.v1beta1.Annotation.Builder addAnnotationsBuilder(int index) { 1204 return getAnnotationsFieldBuilder() 1205 .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Annotation.getDefaultInstance()); 1206 } 1207 /** 1208 * 1209 * 1210 * <pre> 1211 * The Annotations on the DataItem. If too many Annotations should be returned 1212 * for the DataItem, this field will be truncated per annotations_limit in 1213 * request. If it was, then the has_truncated_annotations will be set to true. 1214 * </pre> 1215 * 1216 * <code>repeated .google.cloud.aiplatform.v1beta1.Annotation annotations = 2;</code> 1217 */ 1218 public java.util.List<com.google.cloud.aiplatform.v1beta1.Annotation.Builder> getAnnotationsBuilderList()1219 getAnnotationsBuilderList() { 1220 return getAnnotationsFieldBuilder().getBuilderList(); 1221 } 1222 1223 private com.google.protobuf.RepeatedFieldBuilderV3< 1224 com.google.cloud.aiplatform.v1beta1.Annotation, 1225 com.google.cloud.aiplatform.v1beta1.Annotation.Builder, 1226 com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder> getAnnotationsFieldBuilder()1227 getAnnotationsFieldBuilder() { 1228 if (annotationsBuilder_ == null) { 1229 annotationsBuilder_ = 1230 new com.google.protobuf.RepeatedFieldBuilderV3< 1231 com.google.cloud.aiplatform.v1beta1.Annotation, 1232 com.google.cloud.aiplatform.v1beta1.Annotation.Builder, 1233 com.google.cloud.aiplatform.v1beta1.AnnotationOrBuilder>( 1234 annotations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); 1235 annotations_ = null; 1236 } 1237 return annotationsBuilder_; 1238 } 1239 1240 private boolean hasTruncatedAnnotations_; 1241 /** 1242 * 1243 * 1244 * <pre> 1245 * True if and only if the Annotations field has been truncated. It happens if 1246 * more Annotations for this DataItem met the request's annotation_filter than 1247 * are allowed to be returned by annotations_limit. 1248 * Note that if Annotations field is not being returned due to field mask, 1249 * then this field will not be set to true no matter how many Annotations are 1250 * there. 1251 * </pre> 1252 * 1253 * <code>bool has_truncated_annotations = 3;</code> 1254 * 1255 * @return The hasTruncatedAnnotations. 1256 */ 1257 @java.lang.Override getHasTruncatedAnnotations()1258 public boolean getHasTruncatedAnnotations() { 1259 return hasTruncatedAnnotations_; 1260 } 1261 /** 1262 * 1263 * 1264 * <pre> 1265 * True if and only if the Annotations field has been truncated. It happens if 1266 * more Annotations for this DataItem met the request's annotation_filter than 1267 * are allowed to be returned by annotations_limit. 1268 * Note that if Annotations field is not being returned due to field mask, 1269 * then this field will not be set to true no matter how many Annotations are 1270 * there. 1271 * </pre> 1272 * 1273 * <code>bool has_truncated_annotations = 3;</code> 1274 * 1275 * @param value The hasTruncatedAnnotations to set. 1276 * @return This builder for chaining. 1277 */ setHasTruncatedAnnotations(boolean value)1278 public Builder setHasTruncatedAnnotations(boolean value) { 1279 1280 hasTruncatedAnnotations_ = value; 1281 bitField0_ |= 0x00000004; 1282 onChanged(); 1283 return this; 1284 } 1285 /** 1286 * 1287 * 1288 * <pre> 1289 * True if and only if the Annotations field has been truncated. It happens if 1290 * more Annotations for this DataItem met the request's annotation_filter than 1291 * are allowed to be returned by annotations_limit. 1292 * Note that if Annotations field is not being returned due to field mask, 1293 * then this field will not be set to true no matter how many Annotations are 1294 * there. 1295 * </pre> 1296 * 1297 * <code>bool has_truncated_annotations = 3;</code> 1298 * 1299 * @return This builder for chaining. 1300 */ clearHasTruncatedAnnotations()1301 public Builder clearHasTruncatedAnnotations() { 1302 bitField0_ = (bitField0_ & ~0x00000004); 1303 hasTruncatedAnnotations_ = false; 1304 onChanged(); 1305 return this; 1306 } 1307 1308 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1309 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1310 return super.setUnknownFields(unknownFields); 1311 } 1312 1313 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1314 public final Builder mergeUnknownFields( 1315 final com.google.protobuf.UnknownFieldSet unknownFields) { 1316 return super.mergeUnknownFields(unknownFields); 1317 } 1318 1319 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DataItemView) 1320 } 1321 1322 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DataItemView) 1323 private static final com.google.cloud.aiplatform.v1beta1.DataItemView DEFAULT_INSTANCE; 1324 1325 static { 1326 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DataItemView(); 1327 } 1328 getDefaultInstance()1329 public static com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstance() { 1330 return DEFAULT_INSTANCE; 1331 } 1332 1333 private static final com.google.protobuf.Parser<DataItemView> PARSER = 1334 new com.google.protobuf.AbstractParser<DataItemView>() { 1335 @java.lang.Override 1336 public DataItemView parsePartialFrom( 1337 com.google.protobuf.CodedInputStream input, 1338 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1339 throws com.google.protobuf.InvalidProtocolBufferException { 1340 Builder builder = newBuilder(); 1341 try { 1342 builder.mergeFrom(input, extensionRegistry); 1343 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1344 throw e.setUnfinishedMessage(builder.buildPartial()); 1345 } catch (com.google.protobuf.UninitializedMessageException e) { 1346 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1347 } catch (java.io.IOException e) { 1348 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1349 .setUnfinishedMessage(builder.buildPartial()); 1350 } 1351 return builder.buildPartial(); 1352 } 1353 }; 1354 parser()1355 public static com.google.protobuf.Parser<DataItemView> parser() { 1356 return PARSER; 1357 } 1358 1359 @java.lang.Override getParserForType()1360 public com.google.protobuf.Parser<DataItemView> getParserForType() { 1361 return PARSER; 1362 } 1363 1364 @java.lang.Override getDefaultInstanceForType()1365 public com.google.cloud.aiplatform.v1beta1.DataItemView getDefaultInstanceForType() { 1366 return DEFAULT_INSTANCE; 1367 } 1368 } 1369