public static final class Part.Builder extends GeneratedMessage.Builder<Part.Builder> implements PartOrBuilderPart represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
Protobuf type google.cloud.geminidataanalytics.v1beta.Part
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Part.BuilderImplements
PartOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Part build()| Returns | |
|---|---|
| Type | Description |
Part |
|
buildPartial()
public Part buildPartial()| Returns | |
|---|---|
| Type | Description |
Part |
|
clear()
public Part.Builder clear()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearData()
public Part.Builder clearData()Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearFile()
public Part.Builder clearFile()File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearMetadata()
public Part.Builder clearMetadata()Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearPart()
public Part.Builder clearPart()| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
clearText()
public Part.Builder clearText()Plain text content.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
getData()
public DataPart getData()Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Returns | |
|---|---|
| Type | Description |
DataPart |
The data. |
getDataBuilder()
public DataPart.Builder getDataBuilder()Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Returns | |
|---|---|
| Type | Description |
DataPart.Builder |
|
getDataOrBuilder()
public DataPartOrBuilder getDataOrBuilder()Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Returns | |
|---|---|
| Type | Description |
DataPartOrBuilder |
|
getDefaultInstanceForType()
public Part getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Part |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFile()
public FilePart getFile()File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Returns | |
|---|---|
| Type | Description |
FilePart |
The file. |
getFileBuilder()
public FilePart.Builder getFileBuilder()File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Returns | |
|---|---|
| Type | Description |
FilePart.Builder |
|
getFileOrBuilder()
public FilePartOrBuilder getFileOrBuilder()File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Returns | |
|---|---|
| Type | Description |
FilePartOrBuilder |
|
getMetadata()
public Struct getMetadata()Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The metadata. |
getMetadataBuilder()
public Struct.Builder getMetadataBuilder()Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getMetadataOrBuilder()
public StructOrBuilder getMetadataOrBuilder()Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getPartCase()
public Part.PartCase getPartCase()| Returns | |
|---|---|
| Type | Description |
Part.PartCase |
|
getText()
public String getText()Plain text content.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()Plain text content.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
hasData()
public boolean hasData()Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the data field is set. |
hasFile()
public boolean hasFile()File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the file field is set. |
hasMetadata()
public boolean hasMetadata()Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the metadata field is set. |
hasText()
public boolean hasText()Plain text content.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeData(DataPart value)
public Part.Builder mergeData(DataPart value)Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
DataPart |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFile(FilePart value)
public Part.Builder mergeFile(FilePart value)File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
FilePart |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFrom(Part other)
public Part.Builder mergeFrom(Part other)| Parameter | |
|---|---|
| Name | Description |
other |
Part |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Part.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Part.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
mergeMetadata(Struct value)
public Part.Builder mergeMetadata(Struct value)Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setData(DataPart value)
public Part.Builder setData(DataPart value)Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
DataPart |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setData(DataPart.Builder builderForValue)
public Part.Builder setData(DataPart.Builder builderForValue)Structured data content payload.
.google.cloud.geminidataanalytics.v1beta.DataPart data = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DataPart.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFile(FilePart value)
public Part.Builder setFile(FilePart value)File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
FilePart |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setFile(FilePart.Builder builderForValue)
public Part.Builder setFile(FilePart.Builder builderForValue)File content payload.
.google.cloud.geminidataanalytics.v1beta.FilePart file = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
FilePart.Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setMetadata(Struct value)
public Part.Builder setMetadata(Struct value)Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setMetadata(Struct.Builder builderForValue)
public Part.Builder setMetadata(Struct.Builder builderForValue)Optional. Metadata associated with the part.
.google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
|
setText(String value)
public Part.Builder setText(String value)Plain text content.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public Part.Builder setTextBytes(ByteString value)Plain text content.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
This builder for chaining. |