Class TypeSchema (0.89.0)

public final class TypeSchema extends GeneratedMessageV3 implements TypeSchemaOrBuilder

Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition.

Protobuf type google.cloud.dialogflow.cx.v3beta1.TypeSchema

Implements

TypeSchemaOrBuilder

Static Fields

INLINE_SCHEMA_FIELD_NUMBER

public static final int INLINE_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

SCHEMA_REFERENCE_FIELD_NUMBER

public static final int SCHEMA_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TypeSchema getDefaultInstance()
Returns
Type Description
TypeSchema

getDescriptor()

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

newBuilder()

public static TypeSchema.Builder newBuilder()
Returns
Type Description
TypeSchema.Builder

newBuilder(TypeSchema prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TypeSchema getDefaultInstanceForType()
Returns
Type Description
TypeSchema

getInlineSchema()

public InlineSchema getInlineSchema()

Set if this is an inline schema definition.

.google.cloud.dialogflow.cx.v3beta1.InlineSchema inline_schema = 1;

Returns
Type Description
InlineSchema

The inlineSchema.

getInlineSchemaOrBuilder()

public InlineSchemaOrBuilder getInlineSchemaOrBuilder()

Set if this is an inline schema definition.

.google.cloud.dialogflow.cx.v3beta1.InlineSchema inline_schema = 1;

Returns
Type Description
InlineSchemaOrBuilder

getParserForType()

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

getSchemaCase()

public TypeSchema.SchemaCase getSchemaCase()
Returns
Type Description
TypeSchema.SchemaCase

getSchemaReference()

public TypeSchema.SchemaReference getSchemaReference()

Set if this is a schema reference.

.google.cloud.dialogflow.cx.v3beta1.TypeSchema.SchemaReference schema_reference = 2;

Returns
Type Description
TypeSchema.SchemaReference

The schemaReference.

getSchemaReferenceOrBuilder()

public TypeSchema.SchemaReferenceOrBuilder getSchemaReferenceOrBuilder()

Set if this is a schema reference.

.google.cloud.dialogflow.cx.v3beta1.TypeSchema.SchemaReference schema_reference = 2;

Returns
Type Description
TypeSchema.SchemaReferenceOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInlineSchema()

public boolean hasInlineSchema()

Set if this is an inline schema definition.

.google.cloud.dialogflow.cx.v3beta1.InlineSchema inline_schema = 1;

Returns
Type Description
boolean

Whether the inlineSchema field is set.

hasSchemaReference()

public boolean hasSchemaReference()

Set if this is a schema reference.

.google.cloud.dialogflow.cx.v3beta1.TypeSchema.SchemaReference schema_reference = 2;

Returns
Type Description
boolean

Whether the schemaReference field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TypeSchema.Builder newBuilderForType()
Returns
Type Description
TypeSchema.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TypeSchema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TypeSchema.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TypeSchema.Builder toBuilder()
Returns
Type Description
TypeSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException