/*
 * Copyright 2020 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;

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

  /**
   *
   *
   * <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.String getName();
  /**
   *
   *
   * <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.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * The display-name for the property, used for front-end.
   * </pre>
   *
   * <code>string display_name = 12;</code>
   *
   * @return The displayName.
   */
  java.lang.String getDisplayName();
  /**
   *
   *
   * <pre>
   * The display-name for the property, used for front-end.
   * </pre>
   *
   * <code>string display_name = 12;</code>
   *
   * @return The bytes for displayName.
   */
  com.google.protobuf.ByteString getDisplayNameBytes();

  /**
   *
   *
   * <pre>
   * Whether the property can have multiple values.
   * </pre>
   *
   * <code>bool is_repeatable = 2;</code>
   *
   * @return The isRepeatable.
   */
  boolean getIsRepeatable();

  /**
   *
   *
   * <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.
   */
  boolean getIsFilterable();

  /**
   *
   *
   * <pre>
   * Indicates that the property should be included in a global search.
   * </pre>
   *
   * <code>bool is_searchable = 4;</code>
   *
   * @return The isSearchable.
   */
  boolean getIsSearchable();

  /**
   *
   *
   * <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.
   */
  boolean getIsMetadata();

  /**
   *
   *
   * <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.
   */
  boolean getIsRequired();

  /**
   *
   *
   * <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.
   */
  int getRetrievalImportanceValue();
  /**
   *
   *
   * <pre>
   * The retrieval importance of the property during search.
   * </pre>
   *
   * <code>
   * .google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance retrieval_importance = 18;
   * </code>
   *
   * @return The retrievalImportance.
   */
  com.google.cloud.contentwarehouse.v1.PropertyDefinition.RetrievalImportance
      getRetrievalImportance();

  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   *
   * @return Whether the integerTypeOptions field is set.
   */
  boolean hasIntegerTypeOptions();
  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   *
   * @return The integerTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.IntegerTypeOptions getIntegerTypeOptions();
  /**
   *
   *
   * <pre>
   * Integer property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.IntegerTypeOptions integer_type_options = 7;</code>
   */
  com.google.cloud.contentwarehouse.v1.IntegerTypeOptionsOrBuilder getIntegerTypeOptionsOrBuilder();

  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   *
   * @return Whether the floatTypeOptions field is set.
   */
  boolean hasFloatTypeOptions();
  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   *
   * @return The floatTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.FloatTypeOptions getFloatTypeOptions();
  /**
   *
   *
   * <pre>
   * Float property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.FloatTypeOptions float_type_options = 8;</code>
   */
  com.google.cloud.contentwarehouse.v1.FloatTypeOptionsOrBuilder getFloatTypeOptionsOrBuilder();

  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   *
   * @return Whether the textTypeOptions field is set.
   */
  boolean hasTextTypeOptions();
  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   *
   * @return The textTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.TextTypeOptions getTextTypeOptions();
  /**
   *
   *
   * <pre>
   * Text/string property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TextTypeOptions text_type_options = 9;</code>
   */
  com.google.cloud.contentwarehouse.v1.TextTypeOptionsOrBuilder getTextTypeOptionsOrBuilder();

  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   *
   * @return Whether the propertyTypeOptions field is set.
   */
  boolean hasPropertyTypeOptions();
  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   *
   * @return The propertyTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.PropertyTypeOptions getPropertyTypeOptions();
  /**
   *
   *
   * <pre>
   * Nested structured data property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.PropertyTypeOptions property_type_options = 10;</code>
   */
  com.google.cloud.contentwarehouse.v1.PropertyTypeOptionsOrBuilder
      getPropertyTypeOptionsOrBuilder();

  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   *
   * @return Whether the enumTypeOptions field is set.
   */
  boolean hasEnumTypeOptions();
  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   *
   * @return The enumTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.EnumTypeOptions getEnumTypeOptions();
  /**
   *
   *
   * <pre>
   * Enum/categorical property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.EnumTypeOptions enum_type_options = 11;</code>
   */
  com.google.cloud.contentwarehouse.v1.EnumTypeOptionsOrBuilder getEnumTypeOptionsOrBuilder();

  /**
   *
   *
   * <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.
   */
  boolean hasDateTimeTypeOptions();
  /**
   *
   *
   * <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.
   */
  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptions getDateTimeTypeOptions();
  /**
   *
   *
   * <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>
   */
  com.google.cloud.contentwarehouse.v1.DateTimeTypeOptionsOrBuilder
      getDateTimeTypeOptionsOrBuilder();

  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   *
   * @return Whether the mapTypeOptions field is set.
   */
  boolean hasMapTypeOptions();
  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   *
   * @return The mapTypeOptions.
   */
  com.google.cloud.contentwarehouse.v1.MapTypeOptions getMapTypeOptions();
  /**
   *
   *
   * <pre>
   * Map property.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.MapTypeOptions map_type_options = 15;</code>
   */
  com.google.cloud.contentwarehouse.v1.MapTypeOptionsOrBuilder getMapTypeOptionsOrBuilder();

  /**
   *
   *
   * <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.
   */
  boolean hasTimestampTypeOptions();
  /**
   *
   *
   * <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.
   */
  com.google.cloud.contentwarehouse.v1.TimestampTypeOptions getTimestampTypeOptions();
  /**
   *
   *
   * <pre>
   * Timestamp property.
   * It is not supported by CMEK compliant deployment.
   * </pre>
   *
   * <code>.google.cloud.contentwarehouse.v1.TimestampTypeOptions timestamp_type_options = 16;
   * </code>
   */
  com.google.cloud.contentwarehouse.v1.TimestampTypeOptionsOrBuilder
      getTimestampTypeOptionsOrBuilder();

  /**
   *
   *
   * <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.util.List<com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource>
      getSchemaSourcesList();
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource getSchemaSources(int 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>
   */
  int getSchemaSourcesCount();
  /**
   *
   *
   * <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.util.List<
          ? extends com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder>
      getSchemaSourcesOrBuilderList();
  /**
   *
   *
   * <pre>
   * The mapping information between this property to another schema source.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSource schema_sources = 19;
   * </code>
   */
  com.google.cloud.contentwarehouse.v1.PropertyDefinition.SchemaSourceOrBuilder
      getSchemaSourcesOrBuilder(int index);

  public com.google.cloud.contentwarehouse.v1.PropertyDefinition.ValueTypeOptionsCase
      getValueTypeOptionsCase();
}
