Class Chunk (0.7.0)

  public 
  
 final 
  
 class 
 Chunk 
  
 extends 
  
 GeneratedMessage 
  
 implements 
  
 ChunkOrBuilder 
 

A chunk of content within a message.

Protobuf type google.cloud.ces.v1.Chunk

Implements

ChunkOrBuilder

Static Fields

AGENT_TRANSFER_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 AGENT_TRANSFER_FIELD_NUMBER 
 
Field Value
Type
Description
int

BLOB_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 BLOB_FIELD_NUMBER 
 
Field Value
Type
Description
int

DEFAULT_VARIABLES_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 DEFAULT_VARIABLES_FIELD_NUMBER 
 
Field Value
Type
Description
int

IMAGE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 IMAGE_FIELD_NUMBER 
 
Field Value
Type
Description
int

PAYLOAD_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 PAYLOAD_FIELD_NUMBER 
 
Field Value
Type
Description
int

TEXT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TEXT_FIELD_NUMBER 
 
Field Value
Type
Description
int

TOOL_CALL_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TOOL_CALL_FIELD_NUMBER 
 
Field Value
Type
Description
int

TOOL_RESPONSE_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TOOL_RESPONSE_FIELD_NUMBER 
 
Field Value
Type
Description
int

TRANSCRIPT_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 TRANSCRIPT_FIELD_NUMBER 
 
Field Value
Type
Description
int

UPDATED_VARIABLES_FIELD_NUMBER

  public 
  
 static 
  
 final 
  
 int 
  
 UPDATED_VARIABLES_FIELD_NUMBER 
 
Field Value
Type
Description
int

Static Methods

getDefaultInstance()

  public 
  
 static 
  
 Chunk 
  
 getDefaultInstance 
 () 
 
Returns
Type
Description

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 Chunk 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Chunk prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAgentTransfer()

  public 
  
 AgentTransfer 
  
 getAgentTransfer 
 () 
 

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The agentTransfer.

getAgentTransferOrBuilder()

  public 
  
 AgentTransferOrBuilder 
  
 getAgentTransferOrBuilder 
 () 
 

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getBlob()

  public 
  
 Blob 
  
 getBlob 
 () 
 

Optional. Blob data.

.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The blob.

getBlobOrBuilder()

  public 
  
 BlobOrBuilder 
  
 getBlobOrBuilder 
 () 
 

Optional. Blob data.

.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getDataCase()

  public 
  
 Chunk 
 . 
 DataCase 
  
 getDataCase 
 () 
 
Returns
Type
Description

getDefaultInstanceForType()

  public 
  
 Chunk 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDefaultVariables()

  public 
  
 Struct 
  
 getDefaultVariables 
 () 
 

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type
Description

The defaultVariables.

getDefaultVariablesOrBuilder()

  public 
  
 StructOrBuilder 
  
 getDefaultVariablesOrBuilder 
 () 
 

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type
Description

getImage()

  public 
  
 Image 
  
 getImage 
 () 
 

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The image.

getImageOrBuilder()

  public 
  
 ImageOrBuilder 
  
 getImageOrBuilder 
 () 
 

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getParserForType()

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

getPayload()

  public 
  
 Struct 
  
 getPayload 
 () 
 

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The payload.

getPayloadOrBuilder()

  public 
  
 StructOrBuilder 
  
 getPayloadOrBuilder 
 () 
 

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getSerializedSize()

  public 
  
 int 
  
 getSerializedSize 
 () 
 
Returns
Type
Description
int
Overrides

getText()

  public 
  
 String 
  
 getText 
 () 
 

Optional. Text data.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The text.

getTextBytes()

  public 
  
 ByteString 
  
 getTextBytes 
 () 
 

Optional. Text data.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for text.

getToolCall()

  public 
  
 ToolCall 
  
 getToolCall 
 () 
 

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The toolCall.

getToolCallOrBuilder()

  public 
  
 ToolCallOrBuilder 
  
 getToolCallOrBuilder 
 () 
 

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getToolResponse()

  public 
  
 ToolResponse 
  
 getToolResponse 
 () 
 

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The toolResponse.

getToolResponseOrBuilder()

  public 
  
 ToolResponseOrBuilder 
  
 getToolResponseOrBuilder 
 () 
 

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

getTranscript()

  public 
  
 String 
  
 getTranscript 
 () 
 

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The transcript.

getTranscriptBytes()

  public 
  
 ByteString 
  
 getTranscriptBytes 
 () 
 

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

The bytes for transcript.

getUpdatedVariables()

  public 
  
 Struct 
  
 getUpdatedVariables 
 () 
 

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type
Description

The updatedVariables.

getUpdatedVariablesOrBuilder()

  public 
  
 StructOrBuilder 
  
 getUpdatedVariablesOrBuilder 
 () 
 

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type
Description

hasAgentTransfer()

  public 
  
 boolean 
  
 hasAgentTransfer 
 () 
 

Optional. Agent transfer event.

.google.cloud.ces.v1.AgentTransfer agent_transfer = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the agentTransfer field is set.

hasBlob()

  public 
  
 boolean 
  
 hasBlob 
 () 
 

Optional. Blob data.

.google.cloud.ces.v1.Blob blob = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the blob field is set.

hasDefaultVariables()

  public 
  
 boolean 
  
 hasDefaultVariables 
 () 
 

A struct represents default variables at the start of the conversation, keyed by variable names.

.google.protobuf.Struct default_variables = 10;

Returns
Type
Description

Whether the defaultVariables field is set.

hasImage()

  public 
  
 boolean 
  
 hasImage 
 () 
 

Optional. Image data.

.google.cloud.ces.v1.Image image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the image field is set.

hasPayload()

  public 
  
 boolean 
  
 hasPayload 
 () 
 

Optional. Custom payload data.

.google.protobuf.Struct payload = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the payload field is set.

hasText()

  public 
  
 boolean 
  
 hasText 
 () 
 

Optional. Text data.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the text field is set.

hasToolCall()

  public 
  
 boolean 
  
 hasToolCall 
 () 
 

Optional. Tool execution request.

.google.cloud.ces.v1.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the toolCall field is set.

hasToolResponse()

  public 
  
 boolean 
  
 hasToolResponse 
 () 
 

Optional. Tool execution response.

.google.cloud.ces.v1.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the toolResponse field is set.

hasTranscript()

  public 
  
 boolean 
  
 hasTranscript 
 () 
 

Optional. Transcript associated with the audio.

string transcript = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

Whether the transcript field is set.

hasUpdatedVariables()

  public 
  
 boolean 
  
 hasUpdatedVariables 
 () 
 

A struct represents variables that were updated in the conversation, keyed by variable names.

.google.protobuf.Struct updated_variables = 8;

Returns
Type
Description

Whether the updatedVariables field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Chunk 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(AbstractMessage.BuilderParent parent)

  protected 
  
 Chunk 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 AbstractMessage 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Chunk 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: