# Interface SchemaOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface SchemaOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsDefs(String key)

    public abstract boolean containsDefs(String key)

Optional. A map of definitions for use by `ref`. Only allowed at the root
of the schema.

`
map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### containsProperties(String key)

    public abstract boolean containsProperties(String key)

Optional. Properties of Type.OBJECT.

`
map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAdditionalProperties()

    public abstract Schema getAdditionalProperties()

Optional. Can either be a boolean or an object, controls the presence of
additional properties.

`
.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` | The additionalProperties. |

### getAdditionalPropertiesOrBuilder()

    public abstract SchemaOrBuilder getAdditionalPropertiesOrBuilder()

Optional. Can either be a boolean or an object, controls the presence of
additional properties.

`
.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder` |   |

### getAnyOf(int index)

    public abstract Schema getAnyOf(int index)

Optional. The value should be validated against any (one or more) of the
subschemas in the list.

`
repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getAnyOfCount()

    public abstract int getAnyOfCount()

Optional. The value should be validated against any (one or more) of the
subschemas in the list.

`
repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getAnyOfList()

    public abstract List<Schema> getAnyOfList()

Optional. The value should be validated against any (one or more) of the
subschemas in the list.

`
repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getAnyOfOrBuilder(int index)

    public abstract SchemaOrBuilder getAnyOfOrBuilder(int index)

Optional. The value should be validated against any (one or more) of the
subschemas in the list.

`
repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder` |   |

### getAnyOfOrBuilderList()

    public abstract List<? extends SchemaOrBuilder> getAnyOfOrBuilderList()

Optional. The value should be validated against any (one or more) of the
subschemas in the list.

`
repeated .google.cloud.ces.v1.Schema any_of = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.ces.v1.SchemaOrBuilder>` |   |

### getDefault()

    public abstract Value getDefault()

Optional. Default value of the data.

`.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Value.html` | The default. |

### getDefaultOrBuilder()

    public abstract ValueOrBuilder getDefaultOrBuilder()

Optional. Default value of the data.

`.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ValueOrBuilder.html` |   |

### getDefs() (deprecated)

    public abstract Map<String,Schema> getDefs()

Use [#getDefsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder#com_google_cloud_ces_v1_SchemaOrBuilder_getDefsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getDefsCount()

    public abstract int getDefsCount()

Optional. A map of definitions for use by `ref`. Only allowed at the root
of the schema.

`
map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDefsMap()

    public abstract Map<String,Schema> getDefsMap()

Optional. A map of definitions for use by `ref`. Only allowed at the root
of the schema.

`
map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getDefsOrDefault(String key, Schema defaultValue)

    public abstract Schema getDefsOrDefault(String key, Schema defaultValue)

Optional. A map of definitions for use by `ref`. Only allowed at the root
of the schema.

`
map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getDefsOrThrow(String key)

    public abstract Schema getDefsOrThrow(String key)

Optional. A map of definitions for use by `ref`. Only allowed at the root
of the schema.

`
map<string, .google.cloud.ces.v1.Schema> defs = 14 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getDescription()

    public abstract String getDescription()

Optional. The description of the data.

`string description = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. The description of the data.

`string description = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getEnum(int index)

    public abstract String getEnum(int index)

Optional. Possible values of the element of primitive type with enum
format. Examples:

1. We can define direction as : {type:STRING, format:enum, enum:\["EAST", NORTH", "SOUTH", "WEST"\]}
2. We can define apartment number as : {type:INTEGER, format:enum, enum:\["101", "201", "301"\]}

`repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The enum at the given index. |

### getEnumBytes(int index)

    public abstract ByteString getEnumBytes(int index)

Optional. Possible values of the element of primitive type with enum
format. Examples:

1. We can define direction as : {type:STRING, format:enum, enum:\["EAST", NORTH", "SOUTH", "WEST"\]}
2. We can define apartment number as : {type:INTEGER, format:enum, enum:\["101", "201", "301"\]}

`repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the enum at the given index. |

### getEnumCount()

    public abstract int getEnumCount()

Optional. Possible values of the element of primitive type with enum
format. Examples:

1. We can define direction as : {type:STRING, format:enum, enum:\["EAST", NORTH", "SOUTH", "WEST"\]}
2. We can define apartment number as : {type:INTEGER, format:enum, enum:\["101", "201", "301"\]}

`repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of enum. |

### getEnumList()

    public abstract List<String> getEnumList()

Optional. Possible values of the element of primitive type with enum
format. Examples:

1. We can define direction as : {type:STRING, format:enum, enum:\["EAST", NORTH", "SOUTH", "WEST"\]}
2. We can define apartment number as : {type:INTEGER, format:enum, enum:\["101", "201", "301"\]}

`repeated string enum = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the enum. |

### getItems()

    public abstract Schema getItems()

Optional. Schema of the elements of Type.ARRAY.

`.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` | The items. |

### getItemsOrBuilder()

    public abstract SchemaOrBuilder getItemsOrBuilder()

Optional. Schema of the elements of Type.ARRAY.

`.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder` |   |

### getMaxItems()

    public abstract long getMaxItems()

Optional. Maximum number of the elements for Type.ARRAY.

`int64 max_items = 17 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxItems. |

### getMaximum()

    public abstract double getMaximum()

Optional. Maximum value for Type.INTEGER and Type.NUMBER.

`optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maximum. |

### getMinItems()

    public abstract long getMinItems()

Optional. Minimum number of the elements for Type.ARRAY.

`int64 min_items = 16 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minItems. |

### getMinimum()

    public abstract double getMinimum()

Optional. Minimum value for Type.INTEGER and Type.NUMBER.

`optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minimum. |

### getNullable()

    public abstract boolean getNullable()

Optional. Indicates if the value may be null.

`bool nullable = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The nullable. |

### getPrefixItems(int index)

    public abstract Schema getPrefixItems(int index)

Optional. Schemas of initial elements of Type.ARRAY.

`
repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getPrefixItemsCount()

    public abstract int getPrefixItemsCount()

Optional. Schemas of initial elements of Type.ARRAY.

`
repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getPrefixItemsList()

    public abstract List<Schema> getPrefixItemsList()

Optional. Schemas of initial elements of Type.ARRAY.

`
repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getPrefixItemsOrBuilder(int index)

    public abstract SchemaOrBuilder getPrefixItemsOrBuilder(int index)

Optional. Schemas of initial elements of Type.ARRAY.

`
repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder` |   |

### getPrefixItemsOrBuilderList()

    public abstract List<? extends SchemaOrBuilder> getPrefixItemsOrBuilderList()

Optional. Schemas of initial elements of Type.ARRAY.

`
repeated .google.cloud.ces.v1.Schema prefix_items = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.ces.v1.SchemaOrBuilder>` |   |

### getProperties() (deprecated)

    public abstract Map<String,Schema> getProperties()

Use [#getPropertiesMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SchemaOrBuilder#com_google_cloud_ces_v1_SchemaOrBuilder_getPropertiesMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getPropertiesCount()

    public abstract int getPropertiesCount()

Optional. Properties of Type.OBJECT.

`
map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getPropertiesMap()

    public abstract Map<String,Schema> getPropertiesMap()

Optional. Properties of Type.OBJECT.

`
map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema>` |   |

### getPropertiesOrDefault(String key, Schema defaultValue)

    public abstract Schema getPropertiesOrDefault(String key, Schema defaultValue)

Optional. Properties of Type.OBJECT.

`
map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getPropertiesOrThrow(String key)

    public abstract Schema getPropertiesOrThrow(String key)

Optional. Properties of Type.OBJECT.

`
map<string, .google.cloud.ces.v1.Schema> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema` |   |

### getRef()

    public abstract String getRef()

Optional. Allows indirect references between schema nodes. The value should
be a valid reference to a child of the root `defs`.

For example, the following schema defines a reference to a schema node
named "Pet":

`<code><code>
type: object
properties:
pet:
ref: #/defs/Pet
defs:
Pet:
type: object
properties:
name:
type: string
</code></code>`

The value of the "pet" property is a reference to the schema node
named "Pet".
See details in
<https://json-schema.org/understanding-json-schema/structuring>.

`string ref = 13 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ref. |

### getRefBytes()

    public abstract ByteString getRefBytes()

Optional. Allows indirect references between schema nodes. The value should
be a valid reference to a child of the root `defs`.

For example, the following schema defines a reference to a schema node
named "Pet":

`<code><code>
type: object
properties:
pet:
ref: #/defs/Pet
defs:
Pet:
type: object
properties:
name:
type: string
</code></code>`

The value of the "pet" property is a reference to the schema node
named "Pet".
See details in
<https://json-schema.org/understanding-json-schema/structuring>.

`string ref = 13 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ref. |

### getRequired(int index)

    public abstract String getRequired(int index)

Optional. Required properties of Type.OBJECT.

`repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The required at the given index. |

### getRequiredBytes(int index)

    public abstract ByteString getRequiredBytes(int index)

Optional. Required properties of Type.OBJECT.

`repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the required at the given index. |

### getRequiredCount()

    public abstract int getRequiredCount()

Optional. Required properties of Type.OBJECT.

`repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of required. |

### getRequiredList()

    public abstract List<String> getRequiredList()

Optional. Required properties of Type.OBJECT.

`repeated string required = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the required. |

### getTitle()

    public abstract String getTitle()

Optional. The title of the schema.

`string title = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The title. |

### getTitleBytes()

    public abstract ByteString getTitleBytes()

Optional. The title of the schema.

`string title = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for title. |

### getType()

    public abstract Schema.Type getType()

Required. The type of the data.

`.google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Schema.Type` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

Required. The type of the data.

`.google.cloud.ces.v1.Schema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### getUniqueItems()

    public abstract boolean getUniqueItems()

Optional. Indicate the items in the array must be unique. Only applies to
TYPE.ARRAY.

`bool unique_items = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The uniqueItems. |

### hasAdditionalProperties()

    public abstract boolean hasAdditionalProperties()

Optional. Can either be a boolean or an object, controls the presence of
additional properties.

`
.google.cloud.ces.v1.Schema additional_properties = 9 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the additionalProperties field is set. |

### hasDefault()

    public abstract boolean hasDefault()

Optional. Default value of the data.

`.google.protobuf.Value default = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the default field is set. |

### hasItems()

    public abstract boolean hasItems()

Optional. Schema of the elements of Type.ARRAY.

`.google.cloud.ces.v1.Schema items = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the items field is set. |

### hasMaximum()

    public abstract boolean hasMaximum()

Optional. Maximum value for Type.INTEGER and Type.NUMBER.

`optional double maximum = 19 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the maximum field is set. |

### hasMinimum()

    public abstract boolean hasMinimum()

Optional. Minimum value for Type.INTEGER and Type.NUMBER.

`optional double minimum = 18 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the minimum field is set. |