Class TypeSchema.SchemaReference (0.89.0)

public static final class TypeSchema.SchemaReference extends GeneratedMessageV3 implements TypeSchema.SchemaReferenceOrBuilder

A reference to the schema of an existing tool.

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

Static Fields

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

TOOL_FIELD_NUMBER

public static final int TOOL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TypeSchema.SchemaReference getDefaultInstance()
Returns
Type Description
TypeSchema.SchemaReference

getDescriptor()

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

newBuilder()

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

newBuilder(TypeSchema.SchemaReference prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TypeSchema.SchemaReference getDefaultInstanceForType()
Returns
Type Description
TypeSchema.SchemaReference

getParserForType()

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

getSchema()

public String getSchema()

The name of the schema.

string schema = 2;

Returns
Type Description
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

The name of the schema.

string schema = 2;

Returns
Type Description
ByteString

The bytes for schema.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTool()

public String getTool()

The tool that contains this schema definition. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>.

string tool = 1;

Returns
Type Description
String

The tool.

getToolBytes()

public ByteString getToolBytes()

The tool that contains this schema definition. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>.

string tool = 1;

Returns
Type Description
ByteString

The bytes for tool.

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.SchemaReference.Builder newBuilderForType()
Returns
Type Description
TypeSchema.SchemaReference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TypeSchema.SchemaReference.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TypeSchema.SchemaReference.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.SchemaReference.Builder toBuilder()
Returns
Type Description
TypeSchema.SchemaReference.Builder

writeTo(CodedOutputStream output)

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