Class Schema (0.7.0)

  public 
  
 final 
  
 class 
 Schema 
  
 extends 
  
 GeneratedMessage 
  
 implements 
  
 SchemaOrBuilder 
 

Represents a select subset of an OpenAPI 3.0 schema object.

Protobuf type google.cloud.ces.v1.Schema

Implements

SchemaOrBuilder

Static Fields

ADDITIONAL_PROPERTIES_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ADDITIONAL_PROPERTIES_FIELD_NUMBER 
 
Field Value
Type
Description
int

ANY_OF_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ANY_OF_FIELD_NUMBER 
 
Field Value
Type
Description
int

DEFAULT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DEFAULT_FIELD_NUMBER 
 
Field Value
Type
Description
int

DEFS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DEFS_FIELD_NUMBER 
 
Field Value
Type
Description
int

DESCRIPTION_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DESCRIPTION_FIELD_NUMBER 
 
Field Value
Type
Description
int

ENUM_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ENUM_FIELD_NUMBER 
 
Field Value
Type
Description
int

ITEMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 ITEMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

MAXIMUM_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 MAXIMUM_FIELD_NUMBER 
 
Field Value
Type
Description
int

MAX_ITEMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 MAX_ITEMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

MINIMUM_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 MINIMUM_FIELD_NUMBER 
 
Field Value
Type
Description
int

MIN_ITEMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 MIN_ITEMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

NULLABLE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 NULLABLE_FIELD_NUMBER 
 
Field Value
Type
Description
int

PREFIX_ITEMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PREFIX_ITEMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

PROPERTIES_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PROPERTIES_FIELD_NUMBER 
 
Field Value
Type
Description
int

REF_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 REF_FIELD_NUMBER 
 
Field Value
Type
Description
int

REQUIRED_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 REQUIRED_FIELD_NUMBER 
 
Field Value
Type
Description
int

TITLE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TITLE_FIELD_NUMBER 
 
Field Value
Type
Description
int

TYPE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TYPE_FIELD_NUMBER 
 
Field Value
Type
Description
int

UNIQUE_ITEMS_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UNIQUE_ITEMS_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Schema 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Schema 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Schema prototype)

  public 
  
 static 
  
 Schema 
 . 
 Builder 
  
 newBuilder 
 ( 
 Schema 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Schema 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Schema 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Schema> 
  
 parser 
 () 
 
Returns
Type
Description

Methods

containsDefs(String key)

  public 
  
 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
Returns
Type
Description

containsProperties(String key)

  public 
  
 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
Returns
Type
Description

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
Overrides

getAdditionalProperties()

  public 
  
 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

The additionalProperties.

getAdditionalPropertiesOrBuilder()

  public 
  
 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

getAnyOf(int index)

  public 
  
 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
int
Returns
Type
Description

getAnyOfCount()

  public 
  
 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
int

getAnyOfList()

  public 
  
 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
List < Schema >

getAnyOfOrBuilder(int index)

  public 
  
 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
int
Returns
Type
Description

getAnyOfOrBuilderList()

  public 
  
 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
List < ? extends com.google.cloud.ces.v1.SchemaOrBuilder >

getDefault()

  public 
  
 Value 
  
 getDefault 
 () 
 

Optional. Default value of the data.

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

Returns
Type
Description

The default.

getDefaultInstanceForType()

  public 
  
 Schema 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDefaultOrBuilder()

  public 
  
 ValueOrBuilder 
  
 getDefaultOrBuilder 
 () 
 

Optional. Default value of the data.

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

Returns
Type
Description

getDefs() (deprecated)

  public 
  
 Map<String 
 , 
 Schema 
>  
 getDefs 
 () 
 

Use #getDefsMap() instead.

Returns
Type
Description
Map < String , Schema >

getDefsCount()

  public 
  
 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
int

getDefsMap()

  public 
  
 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
Map < String , Schema >

getDefsOrDefault(String key, Schema defaultValue)

  public 
  
 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
defaultValue
Returns
Type
Description

getDefsOrThrow(String key)

  public 
  
 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
Returns
Type
Description

getDescription()

  public 
  
 String 
  
 getDescription 
 () 
 

Optional. The description of the data.

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

Returns
Type
Description

The description.

getDescriptionBytes()

  public 
  
 ByteString 
  
 getDescriptionBytes 
 () 
 

Optional. The description of the data.

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

Returns
Type
Description

The bytes for description.

getEnum(int index)

  public 
  
 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
int

The index of the element to return.

Returns
Type
Description

The enum at the given index.

getEnumBytes(int index)

  public 
  
 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
int

The index of the value to return.

Returns
Type
Description

The bytes of the enum at the given index.

getEnumCount()

  public 
  
 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
int

The count of enum.

getEnumList()

  public 
  
 ProtocolStringList 
  
 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

A list containing the enum.

getItems()

  public 
  
 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

The items.

getItemsOrBuilder()

  public 
  
 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

getMaxItems()

  public 
  
 long 
  
 getMaxItems 
 () 
 

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

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

Returns
Type
Description

The maxItems.

getMaximum()

  public 
  
 double 
  
 getMaximum 
 () 
 

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

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

Returns
Type
Description

The maximum.

getMinItems()

  public 
  
 long 
  
 getMinItems 
 () 
 

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

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

Returns
Type
Description

The minItems.

getMinimum()

  public 
  
 double 
  
 getMinimum 
 () 
 

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

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

Returns
Type
Description

The minimum.

getNullable()

  public 
  
 boolean 
  
 getNullable 
 () 
 

Optional. Indicates if the value may be null.

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

Returns
Type
Description

The nullable.

getParserForType()

  public 
  
 Parser<Schema> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Overrides

getPrefixItems(int index)

  public 
  
 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
int
Returns
Type
Description

getPrefixItemsCount()

  public 
  
 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
int

getPrefixItemsList()

  public 
  
 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
List < Schema >

getPrefixItemsOrBuilder(int index)

  public 
  
 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
int
Returns
Type
Description

getPrefixItemsOrBuilderList()

  public 
  
 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
List < ? extends com.google.cloud.ces.v1.SchemaOrBuilder >

getProperties() (deprecated)

  public 
  
 Map<String 
 , 
 Schema 
>  
 getProperties 
 () 
 

Use #getPropertiesMap() instead.

Returns
Type
Description
Map < String , Schema >

getPropertiesCount()

  public 
  
 int 
  
 getPropertiesCount 
 () 
 

Optional. Properties of Type.OBJECT.

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

Returns
Type
Description
int

getPropertiesMap()

  public 
  
 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
Map < String , Schema >

getPropertiesOrDefault(String key, Schema defaultValue)

  public 
  
 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
defaultValue
Returns
Type
Description

getPropertiesOrThrow(String key)

  public 
  
 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
Returns
Type
Description

getRef()

  public 
  
 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

The ref.

getRefBytes()

  public 
  
 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

The bytes for ref.

getRequired(int index)

  public 
  
 String 
  
 getRequired 
 ( 
 int 
  
 index 
 ) 
 

Optional. Required properties of Type.OBJECT.

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

Parameter
Name
Description
index
int

The index of the element to return.

Returns
Type
Description

The required at the given index.

getRequiredBytes(int index)

  public 
  
 ByteString 
  
 getRequiredBytes 
 ( 
 int 
  
 index 
 ) 
 

Optional. Required properties of Type.OBJECT.

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

Parameter
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

The bytes of the required at the given index.

getRequiredCount()

  public 
  
 int 
  
 getRequiredCount 
 () 
 

Optional. Required properties of Type.OBJECT.

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

Returns
Type
Description
int

The count of required.

getRequiredList()

  public 
  
 ProtocolStringList 
  
 getRequiredList 
 () 
 

Optional. Required properties of Type.OBJECT.

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

Returns
Type
Description

A list containing the required.

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getTitle()

  public 
  
 String 
  
 getTitle 
 () 
 

Optional. The title of the schema.

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

Returns
Type
Description

The title.

getTitleBytes()

  public 
  
 ByteString 
  
 getTitleBytes 
 () 
 

Optional. The title of the schema.

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

Returns
Type
Description

The bytes for title.

getType()

  public 
  
 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

The type.

getTypeValue()

  public 
  
 int 
  
 getTypeValue 
 () 
 

Required. The type of the data.

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

Returns
Type
Description
int

The enum numeric value on the wire for type.

getUniqueItems()

  public 
  
 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

The uniqueItems.

hasAdditionalProperties()

  public 
  
 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

Whether the additionalProperties field is set.

hasDefault()

  public 
  
 boolean 
  
 hasDefault 
 () 
 

Optional. Default value of the data.

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

Returns
Type
Description

Whether the default field is set.

hasItems()

  public 
  
 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

Whether the items field is set.

hasMaximum()

  public 
  
 boolean 
  
 hasMaximum 
 () 
 

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

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

Returns
Type
Description

Whether the maximum field is set.

hasMinimum()

  public 
  
 boolean 
  
 hasMinimum 
 () 
 

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

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

Returns
Type
Description

Whether the minimum field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

internalGetMapFieldReflection(int number)

  protected 
  
 MapFieldReflectionAccessor 
  
 internalGetMapFieldReflection 
 ( 
 int 
  
 number 
 ) 
 
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Schema 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(AbstractMessage.BuilderParent parent)

  protected 
  
 Schema 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 AbstractMessage 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Schema 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: