/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/clouddms/v1/conversionworkspace_resources.proto

package com.google.cloud.clouddms.v1;

/**
 *
 *
 * <pre>
 * Table's parent is a schema.
 * </pre>
 *
 * Protobuf type {@code google.cloud.clouddms.v1.TableEntity}
 */
public final class TableEntity extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.clouddms.v1.TableEntity)
    TableEntityOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use TableEntity.newBuilder() to construct.
  private TableEntity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private TableEntity() {
    columns_ = java.util.Collections.emptyList();
    constraints_ = java.util.Collections.emptyList();
    indices_ = java.util.Collections.emptyList();
    triggers_ = java.util.Collections.emptyList();
    comment_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new TableEntity();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
        .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
        .internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.clouddms.v1.TableEntity.class,
            com.google.cloud.clouddms.v1.TableEntity.Builder.class);
  }

  public static final int COLUMNS_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.clouddms.v1.ColumnEntity> columns_;
  /**
   *
   *
   * <pre>
   * Table columns.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.clouddms.v1.ColumnEntity> getColumnsList() {
    return columns_;
  }
  /**
   *
   *
   * <pre>
   * Table columns.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>
      getColumnsOrBuilderList() {
    return columns_;
  }
  /**
   *
   *
   * <pre>
   * Table columns.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
   */
  @java.lang.Override
  public int getColumnsCount() {
    return columns_.size();
  }
  /**
   *
   *
   * <pre>
   * Table columns.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.ColumnEntity getColumns(int index) {
    return columns_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Table columns.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.ColumnEntityOrBuilder getColumnsOrBuilder(int index) {
    return columns_.get(index);
  }

  public static final int CONSTRAINTS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> constraints_;
  /**
   *
   *
   * <pre>
   * Table constraints.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList() {
    return constraints_;
  }
  /**
   *
   *
   * <pre>
   * Table constraints.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>
      getConstraintsOrBuilderList() {
    return constraints_;
  }
  /**
   *
   *
   * <pre>
   * Table constraints.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
   */
  @java.lang.Override
  public int getConstraintsCount() {
    return constraints_.size();
  }
  /**
   *
   *
   * <pre>
   * Table constraints.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) {
    return constraints_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Table constraints.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index) {
    return constraints_.get(index);
  }

  public static final int INDICES_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.clouddms.v1.IndexEntity> indices_;
  /**
   *
   *
   * <pre>
   * Table indices.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.clouddms.v1.IndexEntity> getIndicesList() {
    return indices_;
  }
  /**
   *
   *
   * <pre>
   * Table indices.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.clouddms.v1.IndexEntityOrBuilder>
      getIndicesOrBuilderList() {
    return indices_;
  }
  /**
   *
   *
   * <pre>
   * Table indices.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
   */
  @java.lang.Override
  public int getIndicesCount() {
    return indices_.size();
  }
  /**
   *
   *
   * <pre>
   * Table indices.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.IndexEntity getIndices(int index) {
    return indices_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Table indices.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.IndexEntityOrBuilder getIndicesOrBuilder(int index) {
    return indices_.get(index);
  }

  public static final int TRIGGERS_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.clouddms.v1.TriggerEntity> triggers_;
  /**
   *
   *
   * <pre>
   * Table triggers.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.clouddms.v1.TriggerEntity> getTriggersList() {
    return triggers_;
  }
  /**
   *
   *
   * <pre>
   * Table triggers.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>
      getTriggersOrBuilderList() {
    return triggers_;
  }
  /**
   *
   *
   * <pre>
   * Table triggers.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
   */
  @java.lang.Override
  public int getTriggersCount() {
    return triggers_.size();
  }
  /**
   *
   *
   * <pre>
   * Table triggers.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.TriggerEntity getTriggers(int index) {
    return triggers_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Table triggers.
   * </pre>
   *
   * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
   */
  @java.lang.Override
  public com.google.cloud.clouddms.v1.TriggerEntityOrBuilder getTriggersOrBuilder(int index) {
    return triggers_.get(index);
  }

  public static final int CUSTOM_FEATURES_FIELD_NUMBER = 5;
  private com.google.protobuf.Struct customFeatures_;
  /**
   *
   *
   * <pre>
   * Custom engine specific features.
   * </pre>
   *
   * <code>.google.protobuf.Struct custom_features = 5;</code>
   *
   * @return Whether the customFeatures field is set.
   */
  @java.lang.Override
  public boolean hasCustomFeatures() {
    return customFeatures_ != null;
  }
  /**
   *
   *
   * <pre>
   * Custom engine specific features.
   * </pre>
   *
   * <code>.google.protobuf.Struct custom_features = 5;</code>
   *
   * @return The customFeatures.
   */
  @java.lang.Override
  public com.google.protobuf.Struct getCustomFeatures() {
    return customFeatures_ == null
        ? com.google.protobuf.Struct.getDefaultInstance()
        : customFeatures_;
  }
  /**
   *
   *
   * <pre>
   * Custom engine specific features.
   * </pre>
   *
   * <code>.google.protobuf.Struct custom_features = 5;</code>
   */
  @java.lang.Override
  public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() {
    return customFeatures_ == null
        ? com.google.protobuf.Struct.getDefaultInstance()
        : customFeatures_;
  }

  public static final int COMMENT_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object comment_ = "";
  /**
   *
   *
   * <pre>
   * Comment associated with the table.
   * </pre>
   *
   * <code>string comment = 6;</code>
   *
   * @return The comment.
   */
  @java.lang.Override
  public java.lang.String getComment() {
    java.lang.Object ref = comment_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      comment_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Comment associated with the table.
   * </pre>
   *
   * <code>string comment = 6;</code>
   *
   * @return The bytes for comment.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCommentBytes() {
    java.lang.Object ref = comment_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      comment_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    for (int i = 0; i < columns_.size(); i++) {
      output.writeMessage(1, columns_.get(i));
    }
    for (int i = 0; i < constraints_.size(); i++) {
      output.writeMessage(2, constraints_.get(i));
    }
    for (int i = 0; i < indices_.size(); i++) {
      output.writeMessage(3, indices_.get(i));
    }
    for (int i = 0; i < triggers_.size(); i++) {
      output.writeMessage(4, triggers_.get(i));
    }
    if (customFeatures_ != null) {
      output.writeMessage(5, getCustomFeatures());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, comment_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < columns_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i));
    }
    for (int i = 0; i < constraints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, constraints_.get(i));
    }
    for (int i = 0; i < indices_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, indices_.get(i));
    }
    for (int i = 0; i < triggers_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, triggers_.get(i));
    }
    if (customFeatures_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCustomFeatures());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, comment_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.clouddms.v1.TableEntity)) {
      return super.equals(obj);
    }
    com.google.cloud.clouddms.v1.TableEntity other = (com.google.cloud.clouddms.v1.TableEntity) obj;

    if (!getColumnsList().equals(other.getColumnsList())) return false;
    if (!getConstraintsList().equals(other.getConstraintsList())) return false;
    if (!getIndicesList().equals(other.getIndicesList())) return false;
    if (!getTriggersList().equals(other.getTriggersList())) return false;
    if (hasCustomFeatures() != other.hasCustomFeatures()) return false;
    if (hasCustomFeatures()) {
      if (!getCustomFeatures().equals(other.getCustomFeatures())) return false;
    }
    if (!getComment().equals(other.getComment())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getColumnsCount() > 0) {
      hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
      hash = (53 * hash) + getColumnsList().hashCode();
    }
    if (getConstraintsCount() > 0) {
      hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER;
      hash = (53 * hash) + getConstraintsList().hashCode();
    }
    if (getIndicesCount() > 0) {
      hash = (37 * hash) + INDICES_FIELD_NUMBER;
      hash = (53 * hash) + getIndicesList().hashCode();
    }
    if (getTriggersCount() > 0) {
      hash = (37 * hash) + TRIGGERS_FIELD_NUMBER;
      hash = (53 * hash) + getTriggersList().hashCode();
    }
    if (hasCustomFeatures()) {
      hash = (37 * hash) + CUSTOM_FEATURES_FIELD_NUMBER;
      hash = (53 * hash) + getCustomFeatures().hashCode();
    }
    hash = (37 * hash) + COMMENT_FIELD_NUMBER;
    hash = (53 * hash) + getComment().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.clouddms.v1.TableEntity parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.clouddms.v1.TableEntity prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Table's parent is a schema.
   * </pre>
   *
   * Protobuf type {@code google.cloud.clouddms.v1.TableEntity}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.clouddms.v1.TableEntity)
      com.google.cloud.clouddms.v1.TableEntityOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
          .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
          .internal_static_google_cloud_clouddms_v1_TableEntity_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.clouddms.v1.TableEntity.class,
              com.google.cloud.clouddms.v1.TableEntity.Builder.class);
    }

    // Construct using com.google.cloud.clouddms.v1.TableEntity.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (columnsBuilder_ == null) {
        columns_ = java.util.Collections.emptyList();
      } else {
        columns_ = null;
        columnsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (constraintsBuilder_ == null) {
        constraints_ = java.util.Collections.emptyList();
      } else {
        constraints_ = null;
        constraintsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      if (indicesBuilder_ == null) {
        indices_ = java.util.Collections.emptyList();
      } else {
        indices_ = null;
        indicesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      if (triggersBuilder_ == null) {
        triggers_ = java.util.Collections.emptyList();
      } else {
        triggers_ = null;
        triggersBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      customFeatures_ = null;
      if (customFeaturesBuilder_ != null) {
        customFeaturesBuilder_.dispose();
        customFeaturesBuilder_ = null;
      }
      comment_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.clouddms.v1.ConversionWorkspaceResourcesProto
          .internal_static_google_cloud_clouddms_v1_TableEntity_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.clouddms.v1.TableEntity getDefaultInstanceForType() {
      return com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.clouddms.v1.TableEntity build() {
      com.google.cloud.clouddms.v1.TableEntity result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.clouddms.v1.TableEntity buildPartial() {
      com.google.cloud.clouddms.v1.TableEntity result =
          new com.google.cloud.clouddms.v1.TableEntity(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.cloud.clouddms.v1.TableEntity result) {
      if (columnsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          columns_ = java.util.Collections.unmodifiableList(columns_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.columns_ = columns_;
      } else {
        result.columns_ = columnsBuilder_.build();
      }
      if (constraintsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          constraints_ = java.util.Collections.unmodifiableList(constraints_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.constraints_ = constraints_;
      } else {
        result.constraints_ = constraintsBuilder_.build();
      }
      if (indicesBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          indices_ = java.util.Collections.unmodifiableList(indices_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.indices_ = indices_;
      } else {
        result.indices_ = indicesBuilder_.build();
      }
      if (triggersBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)) {
          triggers_ = java.util.Collections.unmodifiableList(triggers_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.triggers_ = triggers_;
      } else {
        result.triggers_ = triggersBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.clouddms.v1.TableEntity result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.customFeatures_ =
            customFeaturesBuilder_ == null ? customFeatures_ : customFeaturesBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.comment_ = comment_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.clouddms.v1.TableEntity) {
        return mergeFrom((com.google.cloud.clouddms.v1.TableEntity) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.clouddms.v1.TableEntity other) {
      if (other == com.google.cloud.clouddms.v1.TableEntity.getDefaultInstance()) return this;
      if (columnsBuilder_ == null) {
        if (!other.columns_.isEmpty()) {
          if (columns_.isEmpty()) {
            columns_ = other.columns_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureColumnsIsMutable();
            columns_.addAll(other.columns_);
          }
          onChanged();
        }
      } else {
        if (!other.columns_.isEmpty()) {
          if (columnsBuilder_.isEmpty()) {
            columnsBuilder_.dispose();
            columnsBuilder_ = null;
            columns_ = other.columns_;
            bitField0_ = (bitField0_ & ~0x00000001);
            columnsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getColumnsFieldBuilder()
                    : null;
          } else {
            columnsBuilder_.addAllMessages(other.columns_);
          }
        }
      }
      if (constraintsBuilder_ == null) {
        if (!other.constraints_.isEmpty()) {
          if (constraints_.isEmpty()) {
            constraints_ = other.constraints_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureConstraintsIsMutable();
            constraints_.addAll(other.constraints_);
          }
          onChanged();
        }
      } else {
        if (!other.constraints_.isEmpty()) {
          if (constraintsBuilder_.isEmpty()) {
            constraintsBuilder_.dispose();
            constraintsBuilder_ = null;
            constraints_ = other.constraints_;
            bitField0_ = (bitField0_ & ~0x00000002);
            constraintsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getConstraintsFieldBuilder()
                    : null;
          } else {
            constraintsBuilder_.addAllMessages(other.constraints_);
          }
        }
      }
      if (indicesBuilder_ == null) {
        if (!other.indices_.isEmpty()) {
          if (indices_.isEmpty()) {
            indices_ = other.indices_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureIndicesIsMutable();
            indices_.addAll(other.indices_);
          }
          onChanged();
        }
      } else {
        if (!other.indices_.isEmpty()) {
          if (indicesBuilder_.isEmpty()) {
            indicesBuilder_.dispose();
            indicesBuilder_ = null;
            indices_ = other.indices_;
            bitField0_ = (bitField0_ & ~0x00000004);
            indicesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getIndicesFieldBuilder()
                    : null;
          } else {
            indicesBuilder_.addAllMessages(other.indices_);
          }
        }
      }
      if (triggersBuilder_ == null) {
        if (!other.triggers_.isEmpty()) {
          if (triggers_.isEmpty()) {
            triggers_ = other.triggers_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureTriggersIsMutable();
            triggers_.addAll(other.triggers_);
          }
          onChanged();
        }
      } else {
        if (!other.triggers_.isEmpty()) {
          if (triggersBuilder_.isEmpty()) {
            triggersBuilder_.dispose();
            triggersBuilder_ = null;
            triggers_ = other.triggers_;
            bitField0_ = (bitField0_ & ~0x00000008);
            triggersBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTriggersFieldBuilder()
                    : null;
          } else {
            triggersBuilder_.addAllMessages(other.triggers_);
          }
        }
      }
      if (other.hasCustomFeatures()) {
        mergeCustomFeatures(other.getCustomFeatures());
      }
      if (!other.getComment().isEmpty()) {
        comment_ = other.comment_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.cloud.clouddms.v1.ColumnEntity m =
                    input.readMessage(
                        com.google.cloud.clouddms.v1.ColumnEntity.parser(), extensionRegistry);
                if (columnsBuilder_ == null) {
                  ensureColumnsIsMutable();
                  columns_.add(m);
                } else {
                  columnsBuilder_.addMessage(m);
                }
                break;
              } // case 10
            case 18:
              {
                com.google.cloud.clouddms.v1.ConstraintEntity m =
                    input.readMessage(
                        com.google.cloud.clouddms.v1.ConstraintEntity.parser(), extensionRegistry);
                if (constraintsBuilder_ == null) {
                  ensureConstraintsIsMutable();
                  constraints_.add(m);
                } else {
                  constraintsBuilder_.addMessage(m);
                }
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.clouddms.v1.IndexEntity m =
                    input.readMessage(
                        com.google.cloud.clouddms.v1.IndexEntity.parser(), extensionRegistry);
                if (indicesBuilder_ == null) {
                  ensureIndicesIsMutable();
                  indices_.add(m);
                } else {
                  indicesBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 34:
              {
                com.google.cloud.clouddms.v1.TriggerEntity m =
                    input.readMessage(
                        com.google.cloud.clouddms.v1.TriggerEntity.parser(), extensionRegistry);
                if (triggersBuilder_ == null) {
                  ensureTriggersIsMutable();
                  triggers_.add(m);
                } else {
                  triggersBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 42:
              {
                input.readMessage(getCustomFeaturesFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                comment_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.util.List<com.google.cloud.clouddms.v1.ColumnEntity> columns_ =
        java.util.Collections.emptyList();

    private void ensureColumnsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        columns_ = new java.util.ArrayList<com.google.cloud.clouddms.v1.ColumnEntity>(columns_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.ColumnEntity,
            com.google.cloud.clouddms.v1.ColumnEntity.Builder,
            com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>
        columnsBuilder_;

    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.ColumnEntity> getColumnsList() {
      if (columnsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(columns_);
      } else {
        return columnsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public int getColumnsCount() {
      if (columnsBuilder_ == null) {
        return columns_.size();
      } else {
        return columnsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public com.google.cloud.clouddms.v1.ColumnEntity getColumns(int index) {
      if (columnsBuilder_ == null) {
        return columns_.get(index);
      } else {
        return columnsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder setColumns(int index, com.google.cloud.clouddms.v1.ColumnEntity value) {
      if (columnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnsIsMutable();
        columns_.set(index, value);
        onChanged();
      } else {
        columnsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder setColumns(
        int index, com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) {
      if (columnsBuilder_ == null) {
        ensureColumnsIsMutable();
        columns_.set(index, builderForValue.build());
        onChanged();
      } else {
        columnsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder addColumns(com.google.cloud.clouddms.v1.ColumnEntity value) {
      if (columnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnsIsMutable();
        columns_.add(value);
        onChanged();
      } else {
        columnsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder addColumns(int index, com.google.cloud.clouddms.v1.ColumnEntity value) {
      if (columnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureColumnsIsMutable();
        columns_.add(index, value);
        onChanged();
      } else {
        columnsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder addColumns(com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) {
      if (columnsBuilder_ == null) {
        ensureColumnsIsMutable();
        columns_.add(builderForValue.build());
        onChanged();
      } else {
        columnsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder addColumns(
        int index, com.google.cloud.clouddms.v1.ColumnEntity.Builder builderForValue) {
      if (columnsBuilder_ == null) {
        ensureColumnsIsMutable();
        columns_.add(index, builderForValue.build());
        onChanged();
      } else {
        columnsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder addAllColumns(
        java.lang.Iterable<? extends com.google.cloud.clouddms.v1.ColumnEntity> values) {
      if (columnsBuilder_ == null) {
        ensureColumnsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_);
        onChanged();
      } else {
        columnsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder clearColumns() {
      if (columnsBuilder_ == null) {
        columns_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        columnsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public Builder removeColumns(int index) {
      if (columnsBuilder_ == null) {
        ensureColumnsIsMutable();
        columns_.remove(index);
        onChanged();
      } else {
        columnsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public com.google.cloud.clouddms.v1.ColumnEntity.Builder getColumnsBuilder(int index) {
      return getColumnsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public com.google.cloud.clouddms.v1.ColumnEntityOrBuilder getColumnsOrBuilder(int index) {
      if (columnsBuilder_ == null) {
        return columns_.get(index);
      } else {
        return columnsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public java.util.List<? extends com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>
        getColumnsOrBuilderList() {
      if (columnsBuilder_ != null) {
        return columnsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(columns_);
      }
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public com.google.cloud.clouddms.v1.ColumnEntity.Builder addColumnsBuilder() {
      return getColumnsFieldBuilder()
          .addBuilder(com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public com.google.cloud.clouddms.v1.ColumnEntity.Builder addColumnsBuilder(int index) {
      return getColumnsFieldBuilder()
          .addBuilder(index, com.google.cloud.clouddms.v1.ColumnEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table columns.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ColumnEntity columns = 1;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.ColumnEntity.Builder>
        getColumnsBuilderList() {
      return getColumnsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.ColumnEntity,
            com.google.cloud.clouddms.v1.ColumnEntity.Builder,
            com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>
        getColumnsFieldBuilder() {
      if (columnsBuilder_ == null) {
        columnsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.clouddms.v1.ColumnEntity,
                com.google.cloud.clouddms.v1.ColumnEntity.Builder,
                com.google.cloud.clouddms.v1.ColumnEntityOrBuilder>(
                columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        columns_ = null;
      }
      return columnsBuilder_;
    }

    private java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> constraints_ =
        java.util.Collections.emptyList();

    private void ensureConstraintsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        constraints_ =
            new java.util.ArrayList<com.google.cloud.clouddms.v1.ConstraintEntity>(constraints_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.ConstraintEntity,
            com.google.cloud.clouddms.v1.ConstraintEntity.Builder,
            com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>
        constraintsBuilder_;

    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList() {
      if (constraintsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(constraints_);
      } else {
        return constraintsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public int getConstraintsCount() {
      if (constraintsBuilder_ == null) {
        return constraints_.size();
      } else {
        return constraintsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index) {
      if (constraintsBuilder_ == null) {
        return constraints_.get(index);
      } else {
        return constraintsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder setConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) {
      if (constraintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConstraintsIsMutable();
        constraints_.set(index, value);
        onChanged();
      } else {
        constraintsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder setConstraints(
        int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) {
      if (constraintsBuilder_ == null) {
        ensureConstraintsIsMutable();
        constraints_.set(index, builderForValue.build());
        onChanged();
      } else {
        constraintsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder addConstraints(com.google.cloud.clouddms.v1.ConstraintEntity value) {
      if (constraintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConstraintsIsMutable();
        constraints_.add(value);
        onChanged();
      } else {
        constraintsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder addConstraints(int index, com.google.cloud.clouddms.v1.ConstraintEntity value) {
      if (constraintsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConstraintsIsMutable();
        constraints_.add(index, value);
        onChanged();
      } else {
        constraintsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder addConstraints(
        com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) {
      if (constraintsBuilder_ == null) {
        ensureConstraintsIsMutable();
        constraints_.add(builderForValue.build());
        onChanged();
      } else {
        constraintsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder addConstraints(
        int index, com.google.cloud.clouddms.v1.ConstraintEntity.Builder builderForValue) {
      if (constraintsBuilder_ == null) {
        ensureConstraintsIsMutable();
        constraints_.add(index, builderForValue.build());
        onChanged();
      } else {
        constraintsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder addAllConstraints(
        java.lang.Iterable<? extends com.google.cloud.clouddms.v1.ConstraintEntity> values) {
      if (constraintsBuilder_ == null) {
        ensureConstraintsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, constraints_);
        onChanged();
      } else {
        constraintsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder clearConstraints() {
      if (constraintsBuilder_ == null) {
        constraints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        constraintsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public Builder removeConstraints(int index) {
      if (constraintsBuilder_ == null) {
        ensureConstraintsIsMutable();
        constraints_.remove(index);
        onChanged();
      } else {
        constraintsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public com.google.cloud.clouddms.v1.ConstraintEntity.Builder getConstraintsBuilder(int index) {
      return getConstraintsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(
        int index) {
      if (constraintsBuilder_ == null) {
        return constraints_.get(index);
      } else {
        return constraintsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>
        getConstraintsOrBuilderList() {
      if (constraintsBuilder_ != null) {
        return constraintsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(constraints_);
      }
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder() {
      return getConstraintsFieldBuilder()
          .addBuilder(com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public com.google.cloud.clouddms.v1.ConstraintEntity.Builder addConstraintsBuilder(int index) {
      return getConstraintsFieldBuilder()
          .addBuilder(index, com.google.cloud.clouddms.v1.ConstraintEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table constraints.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.ConstraintEntity constraints = 2;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity.Builder>
        getConstraintsBuilderList() {
      return getConstraintsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.ConstraintEntity,
            com.google.cloud.clouddms.v1.ConstraintEntity.Builder,
            com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>
        getConstraintsFieldBuilder() {
      if (constraintsBuilder_ == null) {
        constraintsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.clouddms.v1.ConstraintEntity,
                com.google.cloud.clouddms.v1.ConstraintEntity.Builder,
                com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>(
                constraints_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
        constraints_ = null;
      }
      return constraintsBuilder_;
    }

    private java.util.List<com.google.cloud.clouddms.v1.IndexEntity> indices_ =
        java.util.Collections.emptyList();

    private void ensureIndicesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        indices_ = new java.util.ArrayList<com.google.cloud.clouddms.v1.IndexEntity>(indices_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.IndexEntity,
            com.google.cloud.clouddms.v1.IndexEntity.Builder,
            com.google.cloud.clouddms.v1.IndexEntityOrBuilder>
        indicesBuilder_;

    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.IndexEntity> getIndicesList() {
      if (indicesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(indices_);
      } else {
        return indicesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public int getIndicesCount() {
      if (indicesBuilder_ == null) {
        return indices_.size();
      } else {
        return indicesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public com.google.cloud.clouddms.v1.IndexEntity getIndices(int index) {
      if (indicesBuilder_ == null) {
        return indices_.get(index);
      } else {
        return indicesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder setIndices(int index, com.google.cloud.clouddms.v1.IndexEntity value) {
      if (indicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndicesIsMutable();
        indices_.set(index, value);
        onChanged();
      } else {
        indicesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder setIndices(
        int index, com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) {
      if (indicesBuilder_ == null) {
        ensureIndicesIsMutable();
        indices_.set(index, builderForValue.build());
        onChanged();
      } else {
        indicesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder addIndices(com.google.cloud.clouddms.v1.IndexEntity value) {
      if (indicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndicesIsMutable();
        indices_.add(value);
        onChanged();
      } else {
        indicesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder addIndices(int index, com.google.cloud.clouddms.v1.IndexEntity value) {
      if (indicesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndicesIsMutable();
        indices_.add(index, value);
        onChanged();
      } else {
        indicesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder addIndices(com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) {
      if (indicesBuilder_ == null) {
        ensureIndicesIsMutable();
        indices_.add(builderForValue.build());
        onChanged();
      } else {
        indicesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder addIndices(
        int index, com.google.cloud.clouddms.v1.IndexEntity.Builder builderForValue) {
      if (indicesBuilder_ == null) {
        ensureIndicesIsMutable();
        indices_.add(index, builderForValue.build());
        onChanged();
      } else {
        indicesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder addAllIndices(
        java.lang.Iterable<? extends com.google.cloud.clouddms.v1.IndexEntity> values) {
      if (indicesBuilder_ == null) {
        ensureIndicesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indices_);
        onChanged();
      } else {
        indicesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder clearIndices() {
      if (indicesBuilder_ == null) {
        indices_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        indicesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public Builder removeIndices(int index) {
      if (indicesBuilder_ == null) {
        ensureIndicesIsMutable();
        indices_.remove(index);
        onChanged();
      } else {
        indicesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public com.google.cloud.clouddms.v1.IndexEntity.Builder getIndicesBuilder(int index) {
      return getIndicesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public com.google.cloud.clouddms.v1.IndexEntityOrBuilder getIndicesOrBuilder(int index) {
      if (indicesBuilder_ == null) {
        return indices_.get(index);
      } else {
        return indicesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public java.util.List<? extends com.google.cloud.clouddms.v1.IndexEntityOrBuilder>
        getIndicesOrBuilderList() {
      if (indicesBuilder_ != null) {
        return indicesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(indices_);
      }
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public com.google.cloud.clouddms.v1.IndexEntity.Builder addIndicesBuilder() {
      return getIndicesFieldBuilder()
          .addBuilder(com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public com.google.cloud.clouddms.v1.IndexEntity.Builder addIndicesBuilder(int index) {
      return getIndicesFieldBuilder()
          .addBuilder(index, com.google.cloud.clouddms.v1.IndexEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table indices.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.IndexEntity indices = 3;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.IndexEntity.Builder>
        getIndicesBuilderList() {
      return getIndicesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.IndexEntity,
            com.google.cloud.clouddms.v1.IndexEntity.Builder,
            com.google.cloud.clouddms.v1.IndexEntityOrBuilder>
        getIndicesFieldBuilder() {
      if (indicesBuilder_ == null) {
        indicesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.clouddms.v1.IndexEntity,
                com.google.cloud.clouddms.v1.IndexEntity.Builder,
                com.google.cloud.clouddms.v1.IndexEntityOrBuilder>(
                indices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
        indices_ = null;
      }
      return indicesBuilder_;
    }

    private java.util.List<com.google.cloud.clouddms.v1.TriggerEntity> triggers_ =
        java.util.Collections.emptyList();

    private void ensureTriggersIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        triggers_ = new java.util.ArrayList<com.google.cloud.clouddms.v1.TriggerEntity>(triggers_);
        bitField0_ |= 0x00000008;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.TriggerEntity,
            com.google.cloud.clouddms.v1.TriggerEntity.Builder,
            com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>
        triggersBuilder_;

    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.TriggerEntity> getTriggersList() {
      if (triggersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(triggers_);
      } else {
        return triggersBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public int getTriggersCount() {
      if (triggersBuilder_ == null) {
        return triggers_.size();
      } else {
        return triggersBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public com.google.cloud.clouddms.v1.TriggerEntity getTriggers(int index) {
      if (triggersBuilder_ == null) {
        return triggers_.get(index);
      } else {
        return triggersBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder setTriggers(int index, com.google.cloud.clouddms.v1.TriggerEntity value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.set(index, value);
        onChanged();
      } else {
        triggersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder setTriggers(
        int index, com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.set(index, builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder addTriggers(com.google.cloud.clouddms.v1.TriggerEntity value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.add(value);
        onChanged();
      } else {
        triggersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder addTriggers(int index, com.google.cloud.clouddms.v1.TriggerEntity value) {
      if (triggersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTriggersIsMutable();
        triggers_.add(index, value);
        onChanged();
      } else {
        triggersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder addTriggers(com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.add(builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder addTriggers(
        int index, com.google.cloud.clouddms.v1.TriggerEntity.Builder builderForValue) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.add(index, builderForValue.build());
        onChanged();
      } else {
        triggersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder addAllTriggers(
        java.lang.Iterable<? extends com.google.cloud.clouddms.v1.TriggerEntity> values) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, triggers_);
        onChanged();
      } else {
        triggersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder clearTriggers() {
      if (triggersBuilder_ == null) {
        triggers_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        triggersBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public Builder removeTriggers(int index) {
      if (triggersBuilder_ == null) {
        ensureTriggersIsMutable();
        triggers_.remove(index);
        onChanged();
      } else {
        triggersBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public com.google.cloud.clouddms.v1.TriggerEntity.Builder getTriggersBuilder(int index) {
      return getTriggersFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public com.google.cloud.clouddms.v1.TriggerEntityOrBuilder getTriggersOrBuilder(int index) {
      if (triggersBuilder_ == null) {
        return triggers_.get(index);
      } else {
        return triggersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public java.util.List<? extends com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>
        getTriggersOrBuilderList() {
      if (triggersBuilder_ != null) {
        return triggersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(triggers_);
      }
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public com.google.cloud.clouddms.v1.TriggerEntity.Builder addTriggersBuilder() {
      return getTriggersFieldBuilder()
          .addBuilder(com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public com.google.cloud.clouddms.v1.TriggerEntity.Builder addTriggersBuilder(int index) {
      return getTriggersFieldBuilder()
          .addBuilder(index, com.google.cloud.clouddms.v1.TriggerEntity.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Table triggers.
     * </pre>
     *
     * <code>repeated .google.cloud.clouddms.v1.TriggerEntity triggers = 4;</code>
     */
    public java.util.List<com.google.cloud.clouddms.v1.TriggerEntity.Builder>
        getTriggersBuilderList() {
      return getTriggersFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.clouddms.v1.TriggerEntity,
            com.google.cloud.clouddms.v1.TriggerEntity.Builder,
            com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>
        getTriggersFieldBuilder() {
      if (triggersBuilder_ == null) {
        triggersBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.clouddms.v1.TriggerEntity,
                com.google.cloud.clouddms.v1.TriggerEntity.Builder,
                com.google.cloud.clouddms.v1.TriggerEntityOrBuilder>(
                triggers_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
        triggers_ = null;
      }
      return triggersBuilder_;
    }

    private com.google.protobuf.Struct customFeatures_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Struct,
            com.google.protobuf.Struct.Builder,
            com.google.protobuf.StructOrBuilder>
        customFeaturesBuilder_;
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     *
     * @return Whether the customFeatures field is set.
     */
    public boolean hasCustomFeatures() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     *
     * @return The customFeatures.
     */
    public com.google.protobuf.Struct getCustomFeatures() {
      if (customFeaturesBuilder_ == null) {
        return customFeatures_ == null
            ? com.google.protobuf.Struct.getDefaultInstance()
            : customFeatures_;
      } else {
        return customFeaturesBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public Builder setCustomFeatures(com.google.protobuf.Struct value) {
      if (customFeaturesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        customFeatures_ = value;
      } else {
        customFeaturesBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public Builder setCustomFeatures(com.google.protobuf.Struct.Builder builderForValue) {
      if (customFeaturesBuilder_ == null) {
        customFeatures_ = builderForValue.build();
      } else {
        customFeaturesBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public Builder mergeCustomFeatures(com.google.protobuf.Struct value) {
      if (customFeaturesBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)
            && customFeatures_ != null
            && customFeatures_ != com.google.protobuf.Struct.getDefaultInstance()) {
          getCustomFeaturesBuilder().mergeFrom(value);
        } else {
          customFeatures_ = value;
        }
      } else {
        customFeaturesBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public Builder clearCustomFeatures() {
      bitField0_ = (bitField0_ & ~0x00000010);
      customFeatures_ = null;
      if (customFeaturesBuilder_ != null) {
        customFeaturesBuilder_.dispose();
        customFeaturesBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getCustomFeaturesFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder() {
      if (customFeaturesBuilder_ != null) {
        return customFeaturesBuilder_.getMessageOrBuilder();
      } else {
        return customFeatures_ == null
            ? com.google.protobuf.Struct.getDefaultInstance()
            : customFeatures_;
      }
    }
    /**
     *
     *
     * <pre>
     * Custom engine specific features.
     * </pre>
     *
     * <code>.google.protobuf.Struct custom_features = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Struct,
            com.google.protobuf.Struct.Builder,
            com.google.protobuf.StructOrBuilder>
        getCustomFeaturesFieldBuilder() {
      if (customFeaturesBuilder_ == null) {
        customFeaturesBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Struct,
                com.google.protobuf.Struct.Builder,
                com.google.protobuf.StructOrBuilder>(
                getCustomFeatures(), getParentForChildren(), isClean());
        customFeatures_ = null;
      }
      return customFeaturesBuilder_;
    }

    private java.lang.Object comment_ = "";
    /**
     *
     *
     * <pre>
     * Comment associated with the table.
     * </pre>
     *
     * <code>string comment = 6;</code>
     *
     * @return The comment.
     */
    public java.lang.String getComment() {
      java.lang.Object ref = comment_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        comment_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Comment associated with the table.
     * </pre>
     *
     * <code>string comment = 6;</code>
     *
     * @return The bytes for comment.
     */
    public com.google.protobuf.ByteString getCommentBytes() {
      java.lang.Object ref = comment_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        comment_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Comment associated with the table.
     * </pre>
     *
     * <code>string comment = 6;</code>
     *
     * @param value The comment to set.
     * @return This builder for chaining.
     */
    public Builder setComment(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      comment_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Comment associated with the table.
     * </pre>
     *
     * <code>string comment = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearComment() {
      comment_ = getDefaultInstance().getComment();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Comment associated with the table.
     * </pre>
     *
     * <code>string comment = 6;</code>
     *
     * @param value The bytes for comment to set.
     * @return This builder for chaining.
     */
    public Builder setCommentBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      comment_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.clouddms.v1.TableEntity)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.clouddms.v1.TableEntity)
  private static final com.google.cloud.clouddms.v1.TableEntity DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.clouddms.v1.TableEntity();
  }

  public static com.google.cloud.clouddms.v1.TableEntity getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<TableEntity> PARSER =
      new com.google.protobuf.AbstractParser<TableEntity>() {
        @java.lang.Override
        public TableEntity parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<TableEntity> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<TableEntity> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.clouddms.v1.TableEntity getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
