/*
 * 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/contentwarehouse/v1/document_schema.proto

package com.google.cloud.contentwarehouse.v1;

/**
 *
 *
 * <pre>
 * Defines the metadata for a schema property.
 * </pre>
 *
 * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition}
 */
public final class PropertyDefinition extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition)
    PropertyDefinitionOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use PropertyDefinition.newBuilder() to construct.
  private PropertyDefinition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private PropertyDefinition() {
    name_ = "";
    displayName_ = "";
    retrievalImportance_ = 0;
    schemaSources_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
        .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
        .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.class,
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Stores the retrieval importance.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance}
   */
  public enum RetrievalImportance implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * No importance specified. Default medium importance.
     * </pre>
     *
     * <code>RETRIEVAL_IMPORTANCE_UNSPECIFIED = 0;</code>
     */
    RETRIEVAL_IMPORTANCE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Highest importance.
     * </pre>
     *
     * <code>HIGHEST = 1;</code>
     */
    HIGHEST(1),
    /**
     *
     *
     * <pre>
     * Higher importance.
     * </pre>
     *
     * <code>HIGHER = 2;</code>
     */
    HIGHER(2),
    /**
     *
     *
     * <pre>
     * High importance.
     * </pre>
     *
     * <code>HIGH = 3;</code>
     */
    HIGH(3),
    /**
     *
     *
     * <pre>
     * Medium importance.
     * </pre>
     *
     * <code>MEDIUM = 4;</code>
     */
    MEDIUM(4),
    /**
     *
     *
     * <pre>
     * Low importance (negative).
     * </pre>
     *
     * <code>LOW = 5;</code>
     */
    LOW(5),
    /**
     *
     *
     * <pre>
     * Lowest importance (negative).
     * </pre>
     *
     * <code>LOWEST = 6;</code>
     */
    LOWEST(6),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * No importance specified. Default medium importance.
     * </pre>
     *
     * <code>RETRIEVAL_IMPORTANCE_UNSPECIFIED = 0;</code>
     */
    public static final int RETRIEVAL_IMPORTANCE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Highest importance.
     * </pre>
     *
     * <code>HIGHEST = 1;</code>
     */
    public static final int HIGHEST_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Higher importance.
     * </pre>
     *
     * <code>HIGHER = 2;</code>
     */
    public static final int HIGHER_VALUE = 2;
    /**
     *
     *
     * <pre>
     * High importance.
     * </pre>
     *
     * <code>HIGH = 3;</code>
     */
    public static final int HIGH_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Medium importance.
     * </pre>
     *
     * <code>MEDIUM = 4;</code>
     */
    public static final int MEDIUM_VALUE = 4;
    /**
     *
     *
     * <pre>
     * Low importance (negative).
     * </pre>
     *
     * <code>LOW = 5;</code>
     */
    public static final int LOW_VALUE = 5;
    /**
     *
     *
     * <pre>
     * Lowest importance (negative).
     * </pre>
     *
     * <code>LOWEST = 6;</code>
     */
    public static final int LOWEST_VALUE = 6;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static RetrievalImportance valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static RetrievalImportance forNumber(int value) {
      switch (value) {
        case 0:
          return RETRIEVAL_IMPORTANCE_UNSPECIFIED;
        case 1:
          return HIGHEST;
        case 2:
          return HIGHER;
        case 3:
          return HIGH;
        case 4:
          return MEDIUM;
        case 5:
          return LOW;
        case 6:
          return LOWEST;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<RetrievalImportance>
        internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<RetrievalImportance>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<RetrievalImportance>() {
              public RetrievalImportance findValueByNumber(int number) {
                return RetrievalImportance.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDescriptor()
          .getEnumTypes()
          .get(0);
    }

    private static final RetrievalImportance[] VALUES = values();

    public static RetrievalImportance valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private RetrievalImportance(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance)
  }

  public interface SchemaSourceOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The schema name in the source.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    java.lang.String getName();
    /**
     *
     *
     * <pre>
     * The schema name in the source.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString getNameBytes();

    /**
     *
     *
     * <pre>
     * The Doc AI processor type name.
     * </pre>
     *
     * <code>string processor_type = 2;</code>
     *
     * @return The processorType.
     */
    java.lang.String getProcessorType();
    /**
     *
     *
     * <pre>
     * The Doc AI processor type name.
     * </pre>
     *
     * <code>string processor_type = 2;</code>
     *
     * @return The bytes for processorType.
     */
    com.google.protobuf.ByteString getProcessorTypeBytes();
  }
  /**
   *
   *
   * <pre>
   * The schema source information.
   * </pre>
   *
   * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource}
   */
  public static final class SchemaSource extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)
      SchemaSourceOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use SchemaSource.newBuilder() to construct.
    private SchemaSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private SchemaSource() {
      name_ = "";
      processorType_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
          .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
          .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class,
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * The schema name in the source.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The schema name in the source.
     * </pre>
     *
     * <code>string name = 1;</code>
     *
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PROCESSOR_TYPE_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object processorType_ = "";
    /**
     *
     *
     * <pre>
     * The Doc AI processor type name.
     * </pre>
     *
     * <code>string processor_type = 2;</code>
     *
     * @return The processorType.
     */
    @java.lang.Override
    public java.lang.String getProcessorType() {
      java.lang.Object ref = processorType_;
      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();
        processorType_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The Doc AI processor type name.
     * </pre>
     *
     * <code>string processor_type = 2;</code>
     *
     * @return The bytes for processorType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getProcessorTypeBytes() {
      java.lang.Object ref = processorType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        processorType_ = 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 {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorType_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, processorType_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processorType_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, processorType_);
      }
      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.contentwarehouse.v1.PropertyDefinition.SchemaSource)) {
        return super.equals(obj);
      }
      com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other =
          (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) obj;

      if (!getName().equals(other.getName())) return false;
      if (!getProcessorType().equals(other.getProcessorType())) 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();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + PROCESSOR_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getProcessorType().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

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

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

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
        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.contentwarehouse.v1.PropertyDefinition.SchemaSource parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource 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.contentwarehouse.v1.PropertyDefinition.SchemaSource 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>
     * The schema source information.
     * </pre>
     *
     * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
            .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
            .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.class,
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder.class);
      }

      // Construct using
      // com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.newBuilder()
      private Builder() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        name_ = "";
        processorType_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
            .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_SchemaSource_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
          getDefaultInstanceForType() {
        return com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
            .getDefaultInstance();
      }

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

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

      private void buildPartial0(
          com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.name_ = name_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.processorType_ = processorType_;
        }
      }

      @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.contentwarehouse.v1.PropertyDefinition.SchemaSource) {
          return mergeFrom(
              (com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource other) {
        if (other
            == com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
                .getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getProcessorType().isEmpty()) {
          processorType_ = other.processorType_;
          bitField0_ |= 0x00000002;
          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:
                {
                  name_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  processorType_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              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.lang.Object name_ = "";
      /**
       *
       *
       * <pre>
       * The schema name in the source.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The schema name in the source.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The schema name in the source.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The schema name in the source.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearName() {
        name_ = getDefaultInstance().getName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The schema name in the source.
       * </pre>
       *
       * <code>string name = 1;</code>
       *
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        name_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object processorType_ = "";
      /**
       *
       *
       * <pre>
       * The Doc AI processor type name.
       * </pre>
       *
       * <code>string processor_type = 2;</code>
       *
       * @return The processorType.
       */
      public java.lang.String getProcessorType() {
        java.lang.Object ref = processorType_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          processorType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The Doc AI processor type name.
       * </pre>
       *
       * <code>string processor_type = 2;</code>
       *
       * @return The bytes for processorType.
       */
      public com.google.protobuf.ByteString getProcessorTypeBytes() {
        java.lang.Object ref = processorType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          processorType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The Doc AI processor type name.
       * </pre>
       *
       * <code>string processor_type = 2;</code>
       *
       * @param value The processorType to set.
       * @return This builder for chaining.
       */
      public Builder setProcessorType(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        processorType_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Doc AI processor type name.
       * </pre>
       *
       * <code>string processor_type = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearProcessorType() {
        processorType_ = getDefaultInstance().getProcessorType();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The Doc AI processor type name.
       * </pre>
       *
       * <code>string processor_type = 2;</code>
       *
       * @param value The bytes for processorType to set.
       * @return This builder for chaining.
       */
      public Builder setProcessorTypeBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        processorType_ = value;
        bitField0_ |= 0x00000002;
        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.contentwarehouse.v1.PropertyDefinition.SchemaSource)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource)
    private static final com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource();
    }

    public static com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SchemaSource> PARSER =
        new com.google.protobuf.AbstractParser<SchemaSource>() {
          @java.lang.Override
          public SchemaSource 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<SchemaSource> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int valueTypeOptionsCase_ = 0;

  @SuppressWarnings("serial")
  private java.lang.Object valueTypeOptions_;

  public enum ValueTypeOptionsCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INTEGER_TYPE_OPTIONS(7),
    FLOAT_TYPE_OPTIONS(8),
    TEXT_TYPE_OPTIONS(9),
    PROPERTY_TYPE_OPTIONS(10),
    ENUM_TYPE_OPTIONS(11),
    DATE_TIME_TYPE_OPTIONS(13),
    MAP_TYPE_OPTIONS(15),
    TIMESTAMP_TYPE_OPTIONS(16),
    VALUETYPEOPTIONS_NOT_SET(0);
    private final int value;

    private ValueTypeOptionsCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ValueTypeOptionsCase valueOf(int value) {
      return forNumber(value);
    }

    public static ValueTypeOptionsCase forNumber(int value) {
      switch (value) {
        case 7:
          return INTEGER_TYPE_OPTIONS;
        case 8:
          return FLOAT_TYPE_OPTIONS;
        case 9:
          return TEXT_TYPE_OPTIONS;
        case 10:
          return PROPERTY_TYPE_OPTIONS;
        case 11:
          return ENUM_TYPE_OPTIONS;
        case 13:
          return DATE_TIME_TYPE_OPTIONS;
        case 15:
          return MAP_TYPE_OPTIONS;
        case 16:
          return TIMESTAMP_TYPE_OPTIONS;
        case 0:
          return VALUETYPEOPTIONS_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public ValueTypeOptionsCase getValueTypeOptionsCase() {
    return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Required. The name of the metadata property.
   * Must be unique within a document schema and is case insensitive.
   * Names must be non-blank, start with a letter, and can contain alphanumeric
   * characters and: /, :, -, _, and .
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. The name of the metadata property.
   * Must be unique within a document schema and is case insensitive.
   * Names must be non-blank, start with a letter, and can contain alphanumeric
   * characters and: /, :, -, _, and .
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * The display-name for the property, used for front-end.
   * </pre>
   *
   * <code>string display_name = 12;</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The display-name for the property, used for front-end.
   * </pre>
   *
   * <code>string display_name = 12;</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IS_REPEATABLE_FIELD_NUMBER = 2;
  private boolean isRepeatable_ = false;
  /**
   *
   *
   * <pre>
   * Whether the property can have multiple values.
   * </pre>
   *
   * <code>bool is_repeatable = 2;</code>
   *
   * @return The isRepeatable.
   */
  @java.lang.Override
  public boolean getIsRepeatable() {
    return isRepeatable_;
  }

  public static final int IS_FILTERABLE_FIELD_NUMBER = 3;
  private boolean isFilterable_ = false;
  /**
   *
   *
   * <pre>
   * Whether the property can be filtered. If this is a sub-property, all the
   * parent properties must be marked filterable.
   * </pre>
   *
   * <code>bool is_filterable = 3;</code>
   *
   * @return The isFilterable.
   */
  @java.lang.Override
  public boolean getIsFilterable() {
    return isFilterable_;
  }

  public static final int IS_SEARCHABLE_FIELD_NUMBER = 4;
  private boolean isSearchable_ = false;
  /**
   *
   *
   * <pre>
   * Indicates that the property should be included in a global search.
   * </pre>
   *
   * <code>bool is_searchable = 4;</code>
   *
   * @return The isSearchable.
   */
  @java.lang.Override
  public boolean getIsSearchable() {
    return isSearchable_;
  }

  public static final int IS_METADATA_FIELD_NUMBER = 5;
  private boolean isMetadata_ = false;
  /**
   *
   *
   * <pre>
   * Whether the property is user supplied metadata.
   * This out-of-the box placeholder setting can be used to tag derived
   * properties. Its value and interpretation logic should be implemented by API
   * user.
   * </pre>
   *
   * <code>bool is_metadata = 5;</code>
   *
   * @return The isMetadata.
   */
  @java.lang.Override
  public boolean getIsMetadata() {
    return isMetadata_;
  }

  public static final int IS_REQUIRED_FIELD_NUMBER = 14;
  private boolean isRequired_ = false;
  /**
   *
   *
   * <pre>
   * Whether the property is mandatory.
   * Default is 'false', i.e. populating property value can be skipped.
   * If 'true' then user must populate the value for this property.
   * </pre>
   *
   * <code>bool is_required = 14;</code>
   *
   * @return The isRequired.
   */
  @java.lang.Override
  public boolean getIsRequired() {
    return isRequired_;
  }

  public static final int RETRIEVAL_IMPORTANCE_FIELD_NUMBER = 18;
  private int retrievalImportance_ = 0;
  /**
   *
   *
   * <pre>
   * The retrieval importance of the property during search.
   * </pre>
   *
   * <code>
   * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
   * </code>
   *
   * @return The enum numeric value on the wire for retrievalImportance.
   */
  @java.lang.Override
  public int getRetrievalImportanceValue() {
    return retrievalImportance_;
  }
  /**
   *
   *
   * <pre>
   * The retrieval importance of the property during search.
   * </pre>
   *
   * <code>
   * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
   * </code>
   *
   * @return The retrievalImportance.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance
      getRetrievalImportance() {
    com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result =
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(
            retrievalImportance_);
    return result == null
        ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED
        : result;
  }

  public static final int INTEGER_TYPE_OPTIONS_FIELD_NUMBER = 7;
  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   *
   * @return Whether the integerTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasIntegerTypeOptions() {
    return valueTypeOptionsCase_ == 7;
  }
  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   *
   * @return The integerTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions() {
    if (valueTypeOptionsCase_ == 7) {
      return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder
      getIntegerTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 7) {
      return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
  }

  public static final int FLOAT_TYPE_OPTIONS_FIELD_NUMBER = 8;
  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   *
   * @return Whether the floatTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasFloatTypeOptions() {
    return valueTypeOptionsCase_ == 8;
  }
  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   *
   * @return The floatTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions() {
    if (valueTypeOptionsCase_ == 8) {
      return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder
      getFloatTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 8) {
      return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
  }

  public static final int TEXT_TYPE_OPTIONS_FIELD_NUMBER = 9;
  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   *
   * @return Whether the textTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasTextTypeOptions() {
    return valueTypeOptionsCase_ == 9;
  }
  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   *
   * @return The textTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() {
    if (valueTypeOptionsCase_ == 9) {
      return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder
      getTextTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 9) {
      return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
  }

  public static final int PROPERTY_TYPE_OPTIONS_FIELD_NUMBER = 10;
  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   *
   * @return Whether the propertyTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasPropertyTypeOptions() {
    return valueTypeOptionsCase_ == 10;
  }
  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   *
   * @return The propertyTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions() {
    if (valueTypeOptionsCase_ == 10) {
      return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder
      getPropertyTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 10) {
      return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
  }

  public static final int ENUM_TYPE_OPTIONS_FIELD_NUMBER = 11;
  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   *
   * @return Whether the enumTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasEnumTypeOptions() {
    return valueTypeOptionsCase_ == 11;
  }
  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   *
   * @return The enumTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() {
    if (valueTypeOptionsCase_ == 11) {
      return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder
      getEnumTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 11) {
      return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
  }

  public static final int DATE_TIME_TYPE_OPTIONS_FIELD_NUMBER = 13;
  /**
   *
   *
   * <pre>
   * Date time property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;</code>
   *
   * @return Whether the dateTimeTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasDateTimeTypeOptions() {
    return valueTypeOptionsCase_ == 13;
  }
  /**
   *
   *
   * <pre>
   * Date time property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;</code>
   *
   * @return The dateTimeTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions() {
    if (valueTypeOptionsCase_ == 13) {
      return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Date time property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
      getDateTimeTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 13) {
      return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
  }

  public static final int MAP_TYPE_OPTIONS_FIELD_NUMBER = 15;
  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   *
   * @return Whether the mapTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasMapTypeOptions() {
    return valueTypeOptionsCase_ == 15;
  }
  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   *
   * @return The mapTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() {
    if (valueTypeOptionsCase_ == 15) {
      return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 15) {
      return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
  }

  public static final int TIMESTAMP_TYPE_OPTIONS_FIELD_NUMBER = 16;
  /**
   *
   *
   * <pre>
   * Timestamp property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
   * </code>
   *
   * @return Whether the timestampTypeOptions field is set.
   */
  @java.lang.Override
  public boolean hasTimestampTypeOptions() {
    return valueTypeOptionsCase_ == 16;
  }
  /**
   *
   *
   * <pre>
   * Timestamp property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
   * </code>
   *
   * @return The timestampTypeOptions.
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions() {
    if (valueTypeOptionsCase_ == 16) {
      return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Timestamp property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder
      getTimestampTypeOptionsOrBuilder() {
    if (valueTypeOptionsCase_ == 16) {
      return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_;
    }
    return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
  }

  public static final int SCHEMA_SOURCES_FIELD_NUMBER = 19;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
      schemaSources_;
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
      getSchemaSourcesList() {
    return schemaSources_;
  }
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>
      getSchemaSourcesOrBuilderList() {
    return schemaSources_;
  }
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  @java.lang.Override
  public int getSchemaSourcesCount() {
    return schemaSources_.size();
  }
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(
      int index) {
    return schemaSources_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder
      getSchemaSourcesOrBuilder(int index) {
    return schemaSources_.get(index);
  }

  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 {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (isRepeatable_ != false) {
      output.writeBool(2, isRepeatable_);
    }
    if (isFilterable_ != false) {
      output.writeBool(3, isFilterable_);
    }
    if (isSearchable_ != false) {
      output.writeBool(4, isSearchable_);
    }
    if (isMetadata_ != false) {
      output.writeBool(5, isMetadata_);
    }
    if (valueTypeOptionsCase_ == 7) {
      output.writeMessage(
          7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 8) {
      output.writeMessage(
          8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 9) {
      output.writeMessage(
          9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 10) {
      output.writeMessage(
          10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 11) {
      output.writeMessage(
          11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, displayName_);
    }
    if (valueTypeOptionsCase_ == 13) {
      output.writeMessage(
          13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_);
    }
    if (isRequired_ != false) {
      output.writeBool(14, isRequired_);
    }
    if (valueTypeOptionsCase_ == 15) {
      output.writeMessage(
          15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 16) {
      output.writeMessage(
          16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_);
    }
    if (retrievalImportance_
        != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance
            .RETRIEVAL_IMPORTANCE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(18, retrievalImportance_);
    }
    for (int i = 0; i < schemaSources_.size(); i++) {
      output.writeMessage(19, schemaSources_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (isRepeatable_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isRepeatable_);
    }
    if (isFilterable_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isFilterable_);
    }
    if (isSearchable_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isSearchable_);
    }
    if (isMetadata_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isMetadata_);
    }
    if (valueTypeOptionsCase_ == 7) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              7, (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 8) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              8, (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              9, (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 10) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              10, (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 11) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              11, (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, displayName_);
    }
    if (valueTypeOptionsCase_ == 13) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              13, (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_);
    }
    if (isRequired_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, isRequired_);
    }
    if (valueTypeOptionsCase_ == 15) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              15, (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_);
    }
    if (valueTypeOptionsCase_ == 16) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              16, (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_);
    }
    if (retrievalImportance_
        != com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance
            .RETRIEVAL_IMPORTANCE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, retrievalImportance_);
    }
    for (int i = 0; i < schemaSources_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, schemaSources_.get(i));
    }
    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.contentwarehouse.v1.PropertyDefinition)) {
      return super.equals(obj);
    }
    com.google.cloud.contentwarehouse.v1.PropertyDefinition other =
        (com.google.cloud.contentwarehouse.v1.PropertyDefinition) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (getIsRepeatable() != other.getIsRepeatable()) return false;
    if (getIsFilterable() != other.getIsFilterable()) return false;
    if (getIsSearchable() != other.getIsSearchable()) return false;
    if (getIsMetadata() != other.getIsMetadata()) return false;
    if (getIsRequired() != other.getIsRequired()) return false;
    if (retrievalImportance_ != other.retrievalImportance_) return false;
    if (!getSchemaSourcesList().equals(other.getSchemaSourcesList())) return false;
    if (!getValueTypeOptionsCase().equals(other.getValueTypeOptionsCase())) return false;
    switch (valueTypeOptionsCase_) {
      case 7:
        if (!getIntegerTypeOptions().equals(other.getIntegerTypeOptions())) return false;
        break;
      case 8:
        if (!getFloatTypeOptions().equals(other.getFloatTypeOptions())) return false;
        break;
      case 9:
        if (!getTextTypeOptions().equals(other.getTextTypeOptions())) return false;
        break;
      case 10:
        if (!getPropertyTypeOptions().equals(other.getPropertyTypeOptions())) return false;
        break;
      case 11:
        if (!getEnumTypeOptions().equals(other.getEnumTypeOptions())) return false;
        break;
      case 13:
        if (!getDateTimeTypeOptions().equals(other.getDateTimeTypeOptions())) return false;
        break;
      case 15:
        if (!getMapTypeOptions().equals(other.getMapTypeOptions())) return false;
        break;
      case 16:
        if (!getTimestampTypeOptions().equals(other.getTimestampTypeOptions())) return false;
        break;
      case 0:
      default:
    }
    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();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + IS_REPEATABLE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRepeatable());
    hash = (37 * hash) + IS_FILTERABLE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFilterable());
    hash = (37 * hash) + IS_SEARCHABLE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSearchable());
    hash = (37 * hash) + IS_METADATA_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMetadata());
    hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired());
    hash = (37 * hash) + RETRIEVAL_IMPORTANCE_FIELD_NUMBER;
    hash = (53 * hash) + retrievalImportance_;
    if (getSchemaSourcesCount() > 0) {
      hash = (37 * hash) + SCHEMA_SOURCES_FIELD_NUMBER;
      hash = (53 * hash) + getSchemaSourcesList().hashCode();
    }
    switch (valueTypeOptionsCase_) {
      case 7:
        hash = (37 * hash) + INTEGER_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getIntegerTypeOptions().hashCode();
        break;
      case 8:
        hash = (37 * hash) + FLOAT_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getFloatTypeOptions().hashCode();
        break;
      case 9:
        hash = (37 * hash) + TEXT_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getTextTypeOptions().hashCode();
        break;
      case 10:
        hash = (37 * hash) + PROPERTY_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getPropertyTypeOptions().hashCode();
        break;
      case 11:
        hash = (37 * hash) + ENUM_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getEnumTypeOptions().hashCode();
        break;
      case 13:
        hash = (37 * hash) + DATE_TIME_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getDateTimeTypeOptions().hashCode();
        break;
      case 15:
        hash = (37 * hash) + MAP_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getMapTypeOptions().hashCode();
        break;
      case 16:
        hash = (37 * hash) + TIMESTAMP_TYPE_OPTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getTimestampTypeOptions().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition 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.contentwarehouse.v1.PropertyDefinition 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>
   * Defines the metadata for a schema property.
   * </pre>
   *
   * Protobuf type {@code google.cloud.contentwarehouse.v1.PropertyDefinition}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.contentwarehouse.v1.PropertyDefinition)
      com.google.cloud.contentwarehouse.v1.PropertyDefinitionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
          .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
          .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.class,
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.Builder.class);
    }

    // Construct using com.google.cloud.contentwarehouse.v1.PropertyDefinition.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      displayName_ = "";
      isRepeatable_ = false;
      isFilterable_ = false;
      isSearchable_ = false;
      isMetadata_ = false;
      isRequired_ = false;
      retrievalImportance_ = 0;
      if (integerTypeOptionsBuilder_ != null) {
        integerTypeOptionsBuilder_.clear();
      }
      if (floatTypeOptionsBuilder_ != null) {
        floatTypeOptionsBuilder_.clear();
      }
      if (textTypeOptionsBuilder_ != null) {
        textTypeOptionsBuilder_.clear();
      }
      if (propertyTypeOptionsBuilder_ != null) {
        propertyTypeOptionsBuilder_.clear();
      }
      if (enumTypeOptionsBuilder_ != null) {
        enumTypeOptionsBuilder_.clear();
      }
      if (dateTimeTypeOptionsBuilder_ != null) {
        dateTimeTypeOptionsBuilder_.clear();
      }
      if (mapTypeOptionsBuilder_ != null) {
        mapTypeOptionsBuilder_.clear();
      }
      if (timestampTypeOptionsBuilder_ != null) {
        timestampTypeOptionsBuilder_.clear();
      }
      if (schemaSourcesBuilder_ == null) {
        schemaSources_ = java.util.Collections.emptyList();
      } else {
        schemaSources_ = null;
        schemaSourcesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00010000);
      valueTypeOptionsCase_ = 0;
      valueTypeOptions_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.contentwarehouse.v1.DocumentSchemaProto
          .internal_static_google_cloud_contentwarehouse_v1_PropertyDefinition_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(
        com.google.cloud.contentwarehouse.v1.PropertyDefinition result) {
      if (schemaSourcesBuilder_ == null) {
        if (((bitField0_ & 0x00010000) != 0)) {
          schemaSources_ = java.util.Collections.unmodifiableList(schemaSources_);
          bitField0_ = (bitField0_ & ~0x00010000);
        }
        result.schemaSources_ = schemaSources_;
      } else {
        result.schemaSources_ = schemaSourcesBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.contentwarehouse.v1.PropertyDefinition result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.isRepeatable_ = isRepeatable_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.isFilterable_ = isFilterable_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.isSearchable_ = isSearchable_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.isMetadata_ = isMetadata_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.isRequired_ = isRequired_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.retrievalImportance_ = retrievalImportance_;
      }
    }

    private void buildPartialOneofs(
        com.google.cloud.contentwarehouse.v1.PropertyDefinition result) {
      result.valueTypeOptionsCase_ = valueTypeOptionsCase_;
      result.valueTypeOptions_ = this.valueTypeOptions_;
      if (valueTypeOptionsCase_ == 7 && integerTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = integerTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 8 && floatTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = floatTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 9 && textTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = textTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 10 && propertyTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = propertyTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 11 && enumTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = enumTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 13 && dateTimeTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = dateTimeTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 15 && mapTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = mapTypeOptionsBuilder_.build();
      }
      if (valueTypeOptionsCase_ == 16 && timestampTypeOptionsBuilder_ != null) {
        result.valueTypeOptions_ = timestampTypeOptionsBuilder_.build();
      }
    }

    @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.contentwarehouse.v1.PropertyDefinition) {
        return mergeFrom((com.google.cloud.contentwarehouse.v1.PropertyDefinition) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.PropertyDefinition other) {
      if (other == com.google.cloud.contentwarehouse.v1.PropertyDefinition.getDefaultInstance())
        return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.getIsRepeatable() != false) {
        setIsRepeatable(other.getIsRepeatable());
      }
      if (other.getIsFilterable() != false) {
        setIsFilterable(other.getIsFilterable());
      }
      if (other.getIsSearchable() != false) {
        setIsSearchable(other.getIsSearchable());
      }
      if (other.getIsMetadata() != false) {
        setIsMetadata(other.getIsMetadata());
      }
      if (other.getIsRequired() != false) {
        setIsRequired(other.getIsRequired());
      }
      if (other.retrievalImportance_ != 0) {
        setRetrievalImportanceValue(other.getRetrievalImportanceValue());
      }
      if (schemaSourcesBuilder_ == null) {
        if (!other.schemaSources_.isEmpty()) {
          if (schemaSources_.isEmpty()) {
            schemaSources_ = other.schemaSources_;
            bitField0_ = (bitField0_ & ~0x00010000);
          } else {
            ensureSchemaSourcesIsMutable();
            schemaSources_.addAll(other.schemaSources_);
          }
          onChanged();
        }
      } else {
        if (!other.schemaSources_.isEmpty()) {
          if (schemaSourcesBuilder_.isEmpty()) {
            schemaSourcesBuilder_.dispose();
            schemaSourcesBuilder_ = null;
            schemaSources_ = other.schemaSources_;
            bitField0_ = (bitField0_ & ~0x00010000);
            schemaSourcesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSchemaSourcesFieldBuilder()
                    : null;
          } else {
            schemaSourcesBuilder_.addAllMessages(other.schemaSources_);
          }
        }
      }
      switch (other.getValueTypeOptionsCase()) {
        case INTEGER_TYPE_OPTIONS:
          {
            mergeIntegerTypeOptions(other.getIntegerTypeOptions());
            break;
          }
        case FLOAT_TYPE_OPTIONS:
          {
            mergeFloatTypeOptions(other.getFloatTypeOptions());
            break;
          }
        case TEXT_TYPE_OPTIONS:
          {
            mergeTextTypeOptions(other.getTextTypeOptions());
            break;
          }
        case PROPERTY_TYPE_OPTIONS:
          {
            mergePropertyTypeOptions(other.getPropertyTypeOptions());
            break;
          }
        case ENUM_TYPE_OPTIONS:
          {
            mergeEnumTypeOptions(other.getEnumTypeOptions());
            break;
          }
        case DATE_TIME_TYPE_OPTIONS:
          {
            mergeDateTimeTypeOptions(other.getDateTimeTypeOptions());
            break;
          }
        case MAP_TYPE_OPTIONS:
          {
            mergeMapTypeOptions(other.getMapTypeOptions());
            break;
          }
        case TIMESTAMP_TYPE_OPTIONS:
          {
            mergeTimestampTypeOptions(other.getTimestampTypeOptions());
            break;
          }
        case VALUETYPEOPTIONS_NOT_SET:
          {
            break;
          }
      }
      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:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 16:
              {
                isRepeatable_ = input.readBool();
                bitField0_ |= 0x00000004;
                break;
              } // case 16
            case 24:
              {
                isFilterable_ = input.readBool();
                bitField0_ |= 0x00000008;
                break;
              } // case 24
            case 32:
              {
                isSearchable_ = input.readBool();
                bitField0_ |= 0x00000010;
                break;
              } // case 32
            case 40:
              {
                isMetadata_ = input.readBool();
                bitField0_ |= 0x00000020;
                break;
              } // case 40
            case 58:
              {
                input.readMessage(
                    getIntegerTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 7;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(
                    getFloatTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 8;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getTextTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 9;
                break;
              } // case 74
            case 82:
              {
                input.readMessage(
                    getPropertyTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 10;
                break;
              } // case 82
            case 90:
              {
                input.readMessage(getEnumTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 11;
                break;
              } // case 90
            case 98:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 98
            case 106:
              {
                input.readMessage(
                    getDateTimeTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 13;
                break;
              } // case 106
            case 112:
              {
                isRequired_ = input.readBool();
                bitField0_ |= 0x00000040;
                break;
              } // case 112
            case 122:
              {
                input.readMessage(getMapTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 15;
                break;
              } // case 122
            case 130:
              {
                input.readMessage(
                    getTimestampTypeOptionsFieldBuilder().getBuilder(), extensionRegistry);
                valueTypeOptionsCase_ = 16;
                break;
              } // case 130
            case 144:
              {
                retrievalImportance_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 144
            case 154:
              {
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource m =
                    input.readMessage(
                        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
                            .parser(),
                        extensionRegistry);
                if (schemaSourcesBuilder_ == null) {
                  ensureSchemaSourcesIsMutable();
                  schemaSources_.add(m);
                } else {
                  schemaSourcesBuilder_.addMessage(m);
                }
                break;
              } // case 154
            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 valueTypeOptionsCase_ = 0;
    private java.lang.Object valueTypeOptions_;

    public ValueTypeOptionsCase getValueTypeOptionsCase() {
      return ValueTypeOptionsCase.forNumber(valueTypeOptionsCase_);
    }

    public Builder clearValueTypeOptions() {
      valueTypeOptionsCase_ = 0;
      valueTypeOptions_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Required. The name of the metadata property.
     * Must be unique within a document schema and is case insensitive.
     * Names must be non-blank, start with a letter, and can contain alphanumeric
     * characters and: /, :, -, _, and .
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the metadata property.
     * Must be unique within a document schema and is case insensitive.
     * Names must be non-blank, start with a letter, and can contain alphanumeric
     * characters and: /, :, -, _, and .
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the metadata property.
     * Must be unique within a document schema and is case insensitive.
     * Names must be non-blank, start with a letter, and can contain alphanumeric
     * characters and: /, :, -, _, and .
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the metadata property.
     * Must be unique within a document schema and is case insensitive.
     * Names must be non-blank, start with a letter, and can contain alphanumeric
     * characters and: /, :, -, _, and .
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. The name of the metadata property.
     * Must be unique within a document schema and is case insensitive.
     * Names must be non-blank, start with a letter, and can contain alphanumeric
     * characters and: /, :, -, _, and .
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * The display-name for the property, used for front-end.
     * </pre>
     *
     * <code>string display_name = 12;</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The display-name for the property, used for front-end.
     * </pre>
     *
     * <code>string display_name = 12;</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The display-name for the property, used for front-end.
     * </pre>
     *
     * <code>string display_name = 12;</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display-name for the property, used for front-end.
     * </pre>
     *
     * <code>string display_name = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display-name for the property, used for front-end.
     * </pre>
     *
     * <code>string display_name = 12;</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private boolean isRepeatable_;
    /**
     *
     *
     * <pre>
     * Whether the property can have multiple values.
     * </pre>
     *
     * <code>bool is_repeatable = 2;</code>
     *
     * @return The isRepeatable.
     */
    @java.lang.Override
    public boolean getIsRepeatable() {
      return isRepeatable_;
    }
    /**
     *
     *
     * <pre>
     * Whether the property can have multiple values.
     * </pre>
     *
     * <code>bool is_repeatable = 2;</code>
     *
     * @param value The isRepeatable to set.
     * @return This builder for chaining.
     */
    public Builder setIsRepeatable(boolean value) {

      isRepeatable_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Whether the property can have multiple values.
     * </pre>
     *
     * <code>bool is_repeatable = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsRepeatable() {
      bitField0_ = (bitField0_ & ~0x00000004);
      isRepeatable_ = false;
      onChanged();
      return this;
    }

    private boolean isFilterable_;
    /**
     *
     *
     * <pre>
     * Whether the property can be filtered. If this is a sub-property, all the
     * parent properties must be marked filterable.
     * </pre>
     *
     * <code>bool is_filterable = 3;</code>
     *
     * @return The isFilterable.
     */
    @java.lang.Override
    public boolean getIsFilterable() {
      return isFilterable_;
    }
    /**
     *
     *
     * <pre>
     * Whether the property can be filtered. If this is a sub-property, all the
     * parent properties must be marked filterable.
     * </pre>
     *
     * <code>bool is_filterable = 3;</code>
     *
     * @param value The isFilterable to set.
     * @return This builder for chaining.
     */
    public Builder setIsFilterable(boolean value) {

      isFilterable_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Whether the property can be filtered. If this is a sub-property, all the
     * parent properties must be marked filterable.
     * </pre>
     *
     * <code>bool is_filterable = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsFilterable() {
      bitField0_ = (bitField0_ & ~0x00000008);
      isFilterable_ = false;
      onChanged();
      return this;
    }

    private boolean isSearchable_;
    /**
     *
     *
     * <pre>
     * Indicates that the property should be included in a global search.
     * </pre>
     *
     * <code>bool is_searchable = 4;</code>
     *
     * @return The isSearchable.
     */
    @java.lang.Override
    public boolean getIsSearchable() {
      return isSearchable_;
    }
    /**
     *
     *
     * <pre>
     * Indicates that the property should be included in a global search.
     * </pre>
     *
     * <code>bool is_searchable = 4;</code>
     *
     * @param value The isSearchable to set.
     * @return This builder for chaining.
     */
    public Builder setIsSearchable(boolean value) {

      isSearchable_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicates that the property should be included in a global search.
     * </pre>
     *
     * <code>bool is_searchable = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsSearchable() {
      bitField0_ = (bitField0_ & ~0x00000010);
      isSearchable_ = false;
      onChanged();
      return this;
    }

    private boolean isMetadata_;
    /**
     *
     *
     * <pre>
     * Whether the property is user supplied metadata.
     * This out-of-the box placeholder setting can be used to tag derived
     * properties. Its value and interpretation logic should be implemented by API
     * user.
     * </pre>
     *
     * <code>bool is_metadata = 5;</code>
     *
     * @return The isMetadata.
     */
    @java.lang.Override
    public boolean getIsMetadata() {
      return isMetadata_;
    }
    /**
     *
     *
     * <pre>
     * Whether the property is user supplied metadata.
     * This out-of-the box placeholder setting can be used to tag derived
     * properties. Its value and interpretation logic should be implemented by API
     * user.
     * </pre>
     *
     * <code>bool is_metadata = 5;</code>
     *
     * @param value The isMetadata to set.
     * @return This builder for chaining.
     */
    public Builder setIsMetadata(boolean value) {

      isMetadata_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Whether the property is user supplied metadata.
     * This out-of-the box placeholder setting can be used to tag derived
     * properties. Its value and interpretation logic should be implemented by API
     * user.
     * </pre>
     *
     * <code>bool is_metadata = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsMetadata() {
      bitField0_ = (bitField0_ & ~0x00000020);
      isMetadata_ = false;
      onChanged();
      return this;
    }

    private boolean isRequired_;
    /**
     *
     *
     * <pre>
     * Whether the property is mandatory.
     * Default is 'false', i.e. populating property value can be skipped.
     * If 'true' then user must populate the value for this property.
     * </pre>
     *
     * <code>bool is_required = 14;</code>
     *
     * @return The isRequired.
     */
    @java.lang.Override
    public boolean getIsRequired() {
      return isRequired_;
    }
    /**
     *
     *
     * <pre>
     * Whether the property is mandatory.
     * Default is 'false', i.e. populating property value can be skipped.
     * If 'true' then user must populate the value for this property.
     * </pre>
     *
     * <code>bool is_required = 14;</code>
     *
     * @param value The isRequired to set.
     * @return This builder for chaining.
     */
    public Builder setIsRequired(boolean value) {

      isRequired_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Whether the property is mandatory.
     * Default is 'false', i.e. populating property value can be skipped.
     * If 'true' then user must populate the value for this property.
     * </pre>
     *
     * <code>bool is_required = 14;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearIsRequired() {
      bitField0_ = (bitField0_ & ~0x00000040);
      isRequired_ = false;
      onChanged();
      return this;
    }

    private int retrievalImportance_ = 0;
    /**
     *
     *
     * <pre>
     * The retrieval importance of the property during search.
     * </pre>
     *
     * <code>
     * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
     * </code>
     *
     * @return The enum numeric value on the wire for retrievalImportance.
     */
    @java.lang.Override
    public int getRetrievalImportanceValue() {
      return retrievalImportance_;
    }
    /**
     *
     *
     * <pre>
     * The retrieval importance of the property during search.
     * </pre>
     *
     * <code>
     * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
     * </code>
     *
     * @param value The enum numeric value on the wire for retrievalImportance to set.
     * @return This builder for chaining.
     */
    public Builder setRetrievalImportanceValue(int value) {
      retrievalImportance_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The retrieval importance of the property during search.
     * </pre>
     *
     * <code>
     * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
     * </code>
     *
     * @return The retrievalImportance.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance
        getRetrievalImportance() {
      com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance result =
          com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.forNumber(
              retrievalImportance_);
      return result == null
          ? com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The retrieval importance of the property during search.
     * </pre>
     *
     * <code>
     * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
     * </code>
     *
     * @param value The retrievalImportance to set.
     * @return This builder for chaining.
     */
    public Builder setRetrievalImportance(
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      retrievalImportance_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The retrieval importance of the property during search.
     * </pre>
     *
     * <code>
     * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRetrievalImportance() {
      bitField0_ = (bitField0_ & ~0x00000080);
      retrievalImportance_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptions,
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>
        integerTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     *
     * @return Whether the integerTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasIntegerTypeOptions() {
      return valueTypeOptionsCase_ == 7;
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     *
     * @return The integerTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions() {
      if (integerTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 7) {
          return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 7) {
          return integerTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    public Builder setIntegerTypeOptions(
        com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) {
      if (integerTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        integerTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    public Builder setIntegerTypeOptions(
        com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder builderForValue) {
      if (integerTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        integerTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    public Builder mergeIntegerTypeOptions(
        com.google.cloud.contentwarehouse.v1.IntegerTypeOptions value) {
      if (integerTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 7
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 7) {
          integerTypeOptionsBuilder_.mergeFrom(value);
        } else {
          integerTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 7;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    public Builder clearIntegerTypeOptions() {
      if (integerTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 7) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 7) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        integerTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    public com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder
        getIntegerTypeOptionsBuilder() {
      return getIntegerTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder
        getIntegerTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 7) && (integerTypeOptionsBuilder_ != null)) {
        return integerTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 7) {
          return (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Integer property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptions,
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>
        getIntegerTypeOptionsFieldBuilder() {
      if (integerTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 7)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.getDefaultInstance();
        }
        integerTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.IntegerTypeOptions,
                com.google.cloud.contentwarehouse.v1.IntegerTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.IntegerTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 7;
      onChanged();
      return integerTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.FloatTypeOptions,
            com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>
        floatTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     *
     * @return Whether the floatTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasFloatTypeOptions() {
      return valueTypeOptionsCase_ == 8;
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     *
     * @return The floatTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions() {
      if (floatTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 8) {
          return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 8) {
          return floatTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    public Builder setFloatTypeOptions(
        com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) {
      if (floatTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        floatTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    public Builder setFloatTypeOptions(
        com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder builderForValue) {
      if (floatTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        floatTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    public Builder mergeFloatTypeOptions(
        com.google.cloud.contentwarehouse.v1.FloatTypeOptions value) {
      if (floatTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 8
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.FloatTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 8) {
          floatTypeOptionsBuilder_.mergeFrom(value);
        } else {
          floatTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 8;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    public Builder clearFloatTypeOptions() {
      if (floatTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 8) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 8) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        floatTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    public com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder
        getFloatTypeOptionsBuilder() {
      return getFloatTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder
        getFloatTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 8) && (floatTypeOptionsBuilder_ != null)) {
        return floatTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 8) {
          return (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Float property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.FloatTypeOptions,
            com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>
        getFloatTypeOptionsFieldBuilder() {
      if (floatTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 8)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.FloatTypeOptions.getDefaultInstance();
        }
        floatTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.FloatTypeOptions,
                com.google.cloud.contentwarehouse.v1.FloatTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.FloatTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 8;
      onChanged();
      return floatTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.TextTypeOptions,
            com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>
        textTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     *
     * @return Whether the textTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasTextTypeOptions() {
      return valueTypeOptionsCase_ == 9;
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     *
     * @return The textTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions() {
      if (textTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 9) {
          return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 9) {
          return textTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    public Builder setTextTypeOptions(com.google.cloud.contentwarehouse.v1.TextTypeOptions value) {
      if (textTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        textTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 9;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    public Builder setTextTypeOptions(
        com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder builderForValue) {
      if (textTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        textTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 9;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    public Builder mergeTextTypeOptions(
        com.google.cloud.contentwarehouse.v1.TextTypeOptions value) {
      if (textTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 9
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.TextTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 9) {
          textTypeOptionsBuilder_.mergeFrom(value);
        } else {
          textTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 9;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    public Builder clearTextTypeOptions() {
      if (textTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 9) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 9) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        textTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    public com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder
        getTextTypeOptionsBuilder() {
      return getTextTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder
        getTextTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 9) && (textTypeOptionsBuilder_ != null)) {
        return textTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 9) {
          return (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Text/string property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.TextTypeOptions,
            com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>
        getTextTypeOptionsFieldBuilder() {
      if (textTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 9)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.TextTypeOptions.getDefaultInstance();
        }
        textTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.TextTypeOptions,
                com.google.cloud.contentwarehouse.v1.TextTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.TextTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 9;
      onChanged();
      return textTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptions,
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>
        propertyTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     *
     * @return Whether the propertyTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasPropertyTypeOptions() {
      return valueTypeOptionsCase_ == 10;
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     *
     * @return The propertyTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions() {
      if (propertyTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 10) {
          return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 10) {
          return propertyTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    public Builder setPropertyTypeOptions(
        com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) {
      if (propertyTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        propertyTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 10;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    public Builder setPropertyTypeOptions(
        com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder builderForValue) {
      if (propertyTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        propertyTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 10;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    public Builder mergePropertyTypeOptions(
        com.google.cloud.contentwarehouse.v1.PropertyTypeOptions value) {
      if (propertyTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 10
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 10) {
          propertyTypeOptionsBuilder_.mergeFrom(value);
        } else {
          propertyTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 10;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    public Builder clearPropertyTypeOptions() {
      if (propertyTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 10) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 10) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        propertyTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder
        getPropertyTypeOptionsBuilder() {
      return getPropertyTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder
        getPropertyTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 10) && (propertyTypeOptionsBuilder_ != null)) {
        return propertyTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 10) {
          return (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Nested structured data property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptions,
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>
        getPropertyTypeOptionsFieldBuilder() {
      if (propertyTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 10)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.getDefaultInstance();
        }
        propertyTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.PropertyTypeOptions,
                com.google.cloud.contentwarehouse.v1.PropertyTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.PropertyTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 10;
      onChanged();
      return propertyTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.EnumTypeOptions,
            com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>
        enumTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     *
     * @return Whether the enumTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasEnumTypeOptions() {
      return valueTypeOptionsCase_ == 11;
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     *
     * @return The enumTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions() {
      if (enumTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 11) {
          return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 11) {
          return enumTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    public Builder setEnumTypeOptions(com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) {
      if (enumTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        enumTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    public Builder setEnumTypeOptions(
        com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder builderForValue) {
      if (enumTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        enumTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    public Builder mergeEnumTypeOptions(
        com.google.cloud.contentwarehouse.v1.EnumTypeOptions value) {
      if (enumTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 11
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.EnumTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 11) {
          enumTypeOptionsBuilder_.mergeFrom(value);
        } else {
          enumTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    public Builder clearEnumTypeOptions() {
      if (enumTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 11) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 11) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        enumTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    public com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder
        getEnumTypeOptionsBuilder() {
      return getEnumTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder
        getEnumTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 11) && (enumTypeOptionsBuilder_ != null)) {
        return enumTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 11) {
          return (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Enum/categorical property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.EnumTypeOptions,
            com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>
        getEnumTypeOptionsFieldBuilder() {
      if (enumTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 11)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.EnumTypeOptions.getDefaultInstance();
        }
        enumTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.EnumTypeOptions,
                com.google.cloud.contentwarehouse.v1.EnumTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.EnumTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 11;
      onChanged();
      return enumTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions,
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>
        dateTimeTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     *
     * @return Whether the dateTimeTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasDateTimeTypeOptions() {
      return valueTypeOptionsCase_ == 13;
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     *
     * @return The dateTimeTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions() {
      if (dateTimeTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 13) {
          return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 13) {
          return dateTimeTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    public Builder setDateTimeTypeOptions(
        com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) {
      if (dateTimeTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        dateTimeTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 13;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    public Builder setDateTimeTypeOptions(
        com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder builderForValue) {
      if (dateTimeTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        dateTimeTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 13;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    public Builder mergeDateTimeTypeOptions(
        com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions value) {
      if (dateTimeTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 13
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 13) {
          dateTimeTypeOptionsBuilder_.mergeFrom(value);
        } else {
          dateTimeTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 13;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    public Builder clearDateTimeTypeOptions() {
      if (dateTimeTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 13) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 13) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        dateTimeTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder
        getDateTimeTypeOptionsBuilder() {
      return getDateTimeTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
        getDateTimeTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 13) && (dateTimeTypeOptionsBuilder_ != null)) {
        return dateTimeTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 13) {
          return (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Date time property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.DateTimeTypeOptions date_time_type_options = 13;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions,
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>
        getDateTimeTypeOptionsFieldBuilder() {
      if (dateTimeTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 13)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.getDefaultInstance();
        }
        dateTimeTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions,
                com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 13;
      onChanged();
      return dateTimeTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.MapTypeOptions,
            com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>
        mapTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     *
     * @return Whether the mapTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasMapTypeOptions() {
      return valueTypeOptionsCase_ == 15;
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     *
     * @return The mapTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions() {
      if (mapTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 15) {
          return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 15) {
          return mapTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    public Builder setMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOptions value) {
      if (mapTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        mapTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    public Builder setMapTypeOptions(
        com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder builderForValue) {
      if (mapTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        mapTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    public Builder mergeMapTypeOptions(com.google.cloud.contentwarehouse.v1.MapTypeOptions value) {
      if (mapTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 15
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.MapTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 15) {
          mapTypeOptionsBuilder_.mergeFrom(value);
        } else {
          mapTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 15;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    public Builder clearMapTypeOptions() {
      if (mapTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 15) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 15) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        mapTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    public com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder getMapTypeOptionsBuilder() {
      return getMapTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder
        getMapTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 15) && (mapTypeOptionsBuilder_ != null)) {
        return mapTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 15) {
          return (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Map property.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.MapTypeOptions,
            com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>
        getMapTypeOptionsFieldBuilder() {
      if (mapTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 15)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.MapTypeOptions.getDefaultInstance();
        }
        mapTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.MapTypeOptions,
                com.google.cloud.contentwarehouse.v1.MapTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.MapTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 15;
      onChanged();
      return mapTypeOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptions,
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>
        timestampTypeOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     *
     * @return Whether the timestampTypeOptions field is set.
     */
    @java.lang.Override
    public boolean hasTimestampTypeOptions() {
      return valueTypeOptionsCase_ == 16;
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     *
     * @return The timestampTypeOptions.
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions() {
      if (timestampTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 16) {
          return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
      } else {
        if (valueTypeOptionsCase_ == 16) {
          return timestampTypeOptionsBuilder_.getMessage();
        }
        return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    public Builder setTimestampTypeOptions(
        com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) {
      if (timestampTypeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        valueTypeOptions_ = value;
        onChanged();
      } else {
        timestampTypeOptionsBuilder_.setMessage(value);
      }
      valueTypeOptionsCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    public Builder setTimestampTypeOptions(
        com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder builderForValue) {
      if (timestampTypeOptionsBuilder_ == null) {
        valueTypeOptions_ = builderForValue.build();
        onChanged();
      } else {
        timestampTypeOptionsBuilder_.setMessage(builderForValue.build());
      }
      valueTypeOptionsCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    public Builder mergeTimestampTypeOptions(
        com.google.cloud.contentwarehouse.v1.TimestampTypeOptions value) {
      if (timestampTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 16
            && valueTypeOptions_
                != com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance()) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.newBuilder(
                      (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          valueTypeOptions_ = value;
        }
        onChanged();
      } else {
        if (valueTypeOptionsCase_ == 16) {
          timestampTypeOptionsBuilder_.mergeFrom(value);
        } else {
          timestampTypeOptionsBuilder_.setMessage(value);
        }
      }
      valueTypeOptionsCase_ = 16;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    public Builder clearTimestampTypeOptions() {
      if (timestampTypeOptionsBuilder_ == null) {
        if (valueTypeOptionsCase_ == 16) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
          onChanged();
        }
      } else {
        if (valueTypeOptionsCase_ == 16) {
          valueTypeOptionsCase_ = 0;
          valueTypeOptions_ = null;
        }
        timestampTypeOptionsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder
        getTimestampTypeOptionsBuilder() {
      return getTimestampTypeOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder
        getTimestampTypeOptionsOrBuilder() {
      if ((valueTypeOptionsCase_ == 16) && (timestampTypeOptionsBuilder_ != null)) {
        return timestampTypeOptionsBuilder_.getMessageOrBuilder();
      } else {
        if (valueTypeOptionsCase_ == 16) {
          return (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_;
        }
        return com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Timestamp property.
     * It is not supported by CMEK compliant deployment.
     * </pre>
     *
     * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptions,
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder,
            com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>
        getTimestampTypeOptionsFieldBuilder() {
      if (timestampTypeOptionsBuilder_ == null) {
        if (!(valueTypeOptionsCase_ == 16)) {
          valueTypeOptions_ =
              com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.getDefaultInstance();
        }
        timestampTypeOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.TimestampTypeOptions,
                com.google.cloud.contentwarehouse.v1.TimestampTypeOptions.Builder,
                com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder>(
                (com.google.cloud.contentwarehouse.v1.TimestampTypeOptions) valueTypeOptions_,
                getParentForChildren(),
                isClean());
        valueTypeOptions_ = null;
      }
      valueTypeOptionsCase_ = 16;
      onChanged();
      return timestampTypeOptionsBuilder_;
    }

    private java.util.List<com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
        schemaSources_ = java.util.Collections.emptyList();

    private void ensureSchemaSourcesIsMutable() {
      if (!((bitField0_ & 0x00010000) != 0)) {
        schemaSources_ =
            new java.util.ArrayList<
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>(
                schemaSources_);
        bitField0_ |= 0x00010000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource,
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder,
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>
        schemaSourcesBuilder_;

    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public java.util.List<com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
        getSchemaSourcesList() {
      if (schemaSourcesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(schemaSources_);
      } else {
        return schemaSourcesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public int getSchemaSourcesCount() {
      if (schemaSourcesBuilder_ == null) {
        return schemaSources_.size();
      } else {
        return schemaSourcesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(
        int index) {
      if (schemaSourcesBuilder_ == null) {
        return schemaSources_.get(index);
      } else {
        return schemaSourcesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder setSchemaSources(
        int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) {
      if (schemaSourcesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSchemaSourcesIsMutable();
        schemaSources_.set(index, value);
        onChanged();
      } else {
        schemaSourcesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder setSchemaSources(
        int index,
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
            builderForValue) {
      if (schemaSourcesBuilder_ == null) {
        ensureSchemaSourcesIsMutable();
        schemaSources_.set(index, builderForValue.build());
        onChanged();
      } else {
        schemaSourcesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder addSchemaSources(
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) {
      if (schemaSourcesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSchemaSourcesIsMutable();
        schemaSources_.add(value);
        onChanged();
      } else {
        schemaSourcesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder addSchemaSources(
        int index, com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource value) {
      if (schemaSourcesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSchemaSourcesIsMutable();
        schemaSources_.add(index, value);
        onChanged();
      } else {
        schemaSourcesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder addSchemaSources(
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
            builderForValue) {
      if (schemaSourcesBuilder_ == null) {
        ensureSchemaSourcesIsMutable();
        schemaSources_.add(builderForValue.build());
        onChanged();
      } else {
        schemaSourcesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder addSchemaSources(
        int index,
        com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
            builderForValue) {
      if (schemaSourcesBuilder_ == null) {
        ensureSchemaSourcesIsMutable();
        schemaSources_.add(index, builderForValue.build());
        onChanged();
      } else {
        schemaSourcesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder addAllSchemaSources(
        java.lang.Iterable<
                ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
            values) {
      if (schemaSourcesBuilder_ == null) {
        ensureSchemaSourcesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemaSources_);
        onChanged();
      } else {
        schemaSourcesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder clearSchemaSources() {
      if (schemaSourcesBuilder_ == null) {
        schemaSources_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00010000);
        onChanged();
      } else {
        schemaSourcesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public Builder removeSchemaSources(int index) {
      if (schemaSourcesBuilder_ == null) {
        ensureSchemaSourcesIsMutable();
        schemaSources_.remove(index);
        onChanged();
      } else {
        schemaSourcesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
        getSchemaSourcesBuilder(int index) {
      return getSchemaSourcesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder
        getSchemaSourcesOrBuilder(int index) {
      if (schemaSourcesBuilder_ == null) {
        return schemaSources_.get(index);
      } else {
        return schemaSourcesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>
        getSchemaSourcesOrBuilderList() {
      if (schemaSourcesBuilder_ != null) {
        return schemaSourcesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(schemaSources_);
      }
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
        addSchemaSourcesBuilder() {
      return getSchemaSourcesFieldBuilder()
          .addBuilder(
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder
        addSchemaSourcesBuilder(int index) {
      return getSchemaSourcesFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The mapping information between this property to another schema source.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
     * </code>
     */
    public java.util.List<
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder>
        getSchemaSourcesBuilderList() {
      return getSchemaSourcesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource,
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder,
            com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>
        getSchemaSourcesFieldBuilder() {
      if (schemaSourcesBuilder_ == null) {
        schemaSourcesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource,
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource.Builder,
                com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>(
                schemaSources_,
                ((bitField0_ & 0x00010000) != 0),
                getParentForChildren(),
                isClean());
        schemaSources_ = null;
      }
      return schemaSourcesBuilder_;
    }

    @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.contentwarehouse.v1.PropertyDefinition)
  }

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

  static {
    DEFAULT_INSTANCE = new com.google.cloud.contentwarehouse.v1.PropertyDefinition();
  }

  public static com.google.cloud.contentwarehouse.v1.PropertyDefinition getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<PropertyDefinition> PARSER =
      new com.google.protobuf.AbstractParser<PropertyDefinition>() {
        @java.lang.Override
        public PropertyDefinition 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<PropertyDefinition> parser() {
    return PARSER;
  }

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

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