Class Generator.Placeholder (0.48.0)

public static final class Generator.Placeholder extends GeneratedMessageV3 implements Generator.PlaceholderOrBuilder

Represents a custom placeholder in the prompt text.

Protobuf type google.cloud.dialogflow.cx.v3.Generator.Placeholder

Static Fields

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Generator.Placeholder getDefaultInstance()
Returns
TypeDescription
Generator.Placeholder

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Generator.Placeholder.Builder newBuilder()
Returns
TypeDescription
Generator.Placeholder.Builder

newBuilder(Generator.Placeholder prototype)

public static Generator.Placeholder.Builder newBuilder(Generator.Placeholder prototype)
Parameter
NameDescription
prototypeGenerator.Placeholder
Returns
TypeDescription
Generator.Placeholder.Builder

parseDelimitedFrom(InputStream input)

public static Generator.Placeholder parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Generator.Placeholder parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Generator.Placeholder parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Generator.Placeholder parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Generator.Placeholder parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Generator.Placeholder parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Generator.Placeholder parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Generator.Placeholder
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Generator.Placeholder> parser()
Returns
TypeDescription
Parser<Placeholder>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Generator.Placeholder getDefaultInstanceForType()
Returns
TypeDescription
Generator.Placeholder

getId()

public String getId()

Unique ID used to map custom placeholder to parameters in fulfillment.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Unique ID used to map custom placeholder to parameters in fulfillment.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getName()

public String getName()

Custom placeholder value in the prompt text.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Custom placeholder value in the prompt text.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Generator.Placeholder> getParserForType()
Returns
TypeDescription
Parser<Placeholder>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Generator.Placeholder.Builder newBuilderForType()
Returns
TypeDescription
Generator.Placeholder.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Generator.Placeholder.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Generator.Placeholder.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Generator.Placeholder.Builder toBuilder()
Returns
TypeDescription
Generator.Placeholder.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException