Class DataPart.Builder (0.27.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

Implements

DataPartOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public DataPart build()
Returns
Type Description
DataPart

buildPartial()

public DataPart buildPartial()
Returns
Type Description
DataPart

clear()

public DataPart.Builder clear()
Returns
Type Description
DataPart.Builder
Overrides

clearData()

public DataPart.Builder clearData()

Optional. The structured data payload.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataPart.Builder

getData()

public Struct 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];

Returns
Type Description
Builder

getDataOrBuilder()

public StructOrBuilder getDataOrBuilder()

Optional. The structured data payload.

.google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public DataPart getDefaultInstanceForType()
Returns
Type Description
DataPart

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasData()

public boolean 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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Returns
Type Description
DataPart.Builder

mergeFrom(DataPart other)

public DataPart.Builder mergeFrom(DataPart other)
Parameter
Name Description
other DataPart
Returns
Type Description
DataPart.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataPart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataPart.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataPart.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataPart.Builder
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
Returns
Type Description
DataPart.Builder

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
Returns
Type Description
DataPart.Builder