Class InlineSchema.Builder (0.94.0)

public static final class InlineSchema.Builder extends GeneratedMessage.Builder<InlineSchema.Builder> implements InlineSchemaOrBuilder

A type schema object that's specified inline.

Protobuf type google.cloud.dialogflow.cx.v3.InlineSchema

Static Methods

getDescriptor()

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

Methods

build()

public InlineSchema build()
Returns
Type Description
InlineSchema

buildPartial()

public InlineSchema buildPartial()
Returns
Type Description
InlineSchema

clear()

public InlineSchema.Builder clear()
Returns
Type Description
InlineSchema.Builder
Overrides

clearItems()

public InlineSchema.Builder clearItems()

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Returns
Type Description
InlineSchema.Builder

clearType()

public InlineSchema.Builder clearType()

Data type of the schema.

.google.cloud.dialogflow.cx.v3.DataType type = 1;

Returns
Type Description
InlineSchema.Builder

This builder for chaining.

getDefaultInstanceForType()

public InlineSchema getDefaultInstanceForType()
Returns
Type Description
InlineSchema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getItems()

public TypeSchema getItems()

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Returns
Type Description
TypeSchema

The items.

getItemsBuilder()

public TypeSchema.Builder getItemsBuilder()

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Returns
Type Description
TypeSchema.Builder

getItemsOrBuilder()

public TypeSchemaOrBuilder getItemsOrBuilder()

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Returns
Type Description
TypeSchemaOrBuilder

getType()

public DataType getType()

Data type of the schema.

.google.cloud.dialogflow.cx.v3.DataType type = 1;

Returns
Type Description
DataType

The type.

getTypeValue()

public int getTypeValue()

Data type of the schema.

.google.cloud.dialogflow.cx.v3.DataType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasItems()

public boolean hasItems()

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Returns
Type Description
boolean

Whether the items field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InlineSchema other)

public InlineSchema.Builder mergeFrom(InlineSchema other)
Parameter
Name Description
other InlineSchema
Returns
Type Description
InlineSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InlineSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InlineSchema.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InlineSchema.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InlineSchema.Builder
Overrides

mergeItems(TypeSchema value)

public InlineSchema.Builder mergeItems(TypeSchema value)

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Parameter
Name Description
value TypeSchema
Returns
Type Description
InlineSchema.Builder

setItems(TypeSchema value)

public InlineSchema.Builder setItems(TypeSchema value)

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Parameter
Name Description
value TypeSchema
Returns
Type Description
InlineSchema.Builder

setItems(TypeSchema.Builder builderForValue)

public InlineSchema.Builder setItems(TypeSchema.Builder builderForValue)

Schema of the elements if this is an ARRAY type.

.google.cloud.dialogflow.cx.v3.TypeSchema items = 2;

Parameter
Name Description
builderForValue TypeSchema.Builder
Returns
Type Description
InlineSchema.Builder

setType(DataType value)

public InlineSchema.Builder setType(DataType value)

Data type of the schema.

.google.cloud.dialogflow.cx.v3.DataType type = 1;

Parameter
Name Description
value DataType

The type to set.

Returns
Type Description
InlineSchema.Builder

This builder for chaining.

setTypeValue(int value)

public InlineSchema.Builder setTypeValue(int value)

Data type of the schema.

.google.cloud.dialogflow.cx.v3.DataType type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
InlineSchema.Builder

This builder for chaining.