Send feedback
Class DataPart.Builder (0.27.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.27.0 (latest)
0.23.0
0.22.0
0.21.0
0.19.0
0.16.0
0.15.0
0.13.0
0.11.0
0.10.0
0.9.0
0.8.0
0.6.0
0.4.0
0.3.0
0.2.0
0.1.0
public static final class DataPart . Builder extends GeneratedMessage . Builder<DataPart . Builder > implements DataPartOrBuilder
DataPart represents a structured blob. This is most commonly a JSON payload.
Protobuf type google.cloud.geminidataanalytics.v1beta.DataPart
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
buildPartial()
public DataPart buildPartial ()
clear()
public DataPart . Builder clear ()
Overrides
clearData()
public DataPart . Builder clearData ()
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
getData()
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
Struct
The data.
getDataBuilder()
public Struct . Builder getDataBuilder ()
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
getDataOrBuilder()
public StructOrBuilder getDataOrBuilder ()
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public DataPart getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
hasData()
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the data field is set.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeData(Struct value)
public DataPart . Builder mergeData ( Struct value )
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
Struct
mergeFrom(DataPart other)
public DataPart . Builder mergeFrom ( DataPart other )
Parameter
Name
Description
other
DataPart
public DataPart . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public DataPart . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
setData(Struct value)
public DataPart . Builder setData ( Struct value )
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
Struct
setData(Struct.Builder builderForValue)
public DataPart . Builder setData ( Struct . Builder builderForValue )
Optional. The structured data payload.
.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
builderForValue
Builder
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-06 UTC."],[],[]]