Class TextInput (0.26.0)

public final class TextInput extends GeneratedMessageV3 implements TextInputOrBuilder

Defines text input.

Protobuf type google.cloud.discoveryengine.v1alpha.TextInput

Implements

TextInputOrBuilder

Static Fields

CONTEXT_FIELD_NUMBER

public static final int CONTEXT_FIELD_NUMBER
Field Value
TypeDescription
int

INPUT_FIELD_NUMBER

public static final int INPUT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextInput getDefaultInstance()
Returns
TypeDescription
TextInput

getDescriptor()

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

newBuilder()

public static TextInput.Builder newBuilder()
Returns
TypeDescription
TextInput.Builder

newBuilder(TextInput prototype)

public static TextInput.Builder newBuilder(TextInput prototype)
Parameter
NameDescription
prototypeTextInput
Returns
TypeDescription
TextInput.Builder

parseDelimitedFrom(InputStream input)

public static TextInput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextInput
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static TextInput parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static TextInput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextInput
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static TextInput parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextInput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static TextInput parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextInput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<TextInput> parser()
Returns
TypeDescription
Parser<TextInput>

Methods

equals(Object obj)

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

getContext()

public ConversationContext getContext()

Conversation context of the input.

.google.cloud.discoveryengine.v1alpha.ConversationContext context = 2;

Returns
TypeDescription
ConversationContext

The context.

getContextOrBuilder()

public ConversationContextOrBuilder getContextOrBuilder()

Conversation context of the input.

.google.cloud.discoveryengine.v1alpha.ConversationContext context = 2;

Returns
TypeDescription
ConversationContextOrBuilder

getDefaultInstanceForType()

public TextInput getDefaultInstanceForType()
Returns
TypeDescription
TextInput

getInput()

public String getInput()

Text input.

string input = 1;

Returns
TypeDescription
String

The input.

getInputBytes()

public ByteString getInputBytes()

Text input.

string input = 1;

Returns
TypeDescription
ByteString

The bytes for input.

getParserForType()

public Parser<TextInput> getParserForType()
Returns
TypeDescription
Parser<TextInput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasContext()

public boolean hasContext()

Conversation context of the input.

.google.cloud.discoveryengine.v1alpha.ConversationContext context = 2;

Returns
TypeDescription
boolean

Whether the context field is set.

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 TextInput.Builder newBuilderForType()
Returns
TypeDescription
TextInput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public TextInput.Builder toBuilder()
Returns
TypeDescription
TextInput.Builder

writeTo(CodedOutputStream output)

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