Class DataResult.Builder (0.1.0)

public static final class DataResult.Builder extends GeneratedMessageV3.Builder<DataResult.Builder> implements DataResultOrBuilder

Retrieved data.

Protobuf type google.cloud.geminidataanalytics.v1beta.DataResult

Implements

DataResultOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllData(Iterable<? extends Struct> values)

public DataResult.Builder addAllData(Iterable<? extends Struct> values)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
values Iterable<? extends com.google.protobuf.Struct>
Returns
Type Description
DataResult.Builder

addData(Struct value)

public DataResult.Builder addData(Struct value)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
value Struct
Returns
Type Description
DataResult.Builder

addData(Struct.Builder builderForValue)

public DataResult.Builder addData(Struct.Builder builderForValue)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DataResult.Builder

addData(int index, Struct value)

public DataResult.Builder addData(int index, Struct value)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameters
Name Description
index int
value Struct
Returns
Type Description
DataResult.Builder

addData(int index, Struct.Builder builderForValue)

public DataResult.Builder addData(int index, Struct.Builder builderForValue)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
DataResult.Builder

addDataBuilder()

public Struct.Builder addDataBuilder()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
Builder

addDataBuilder(int index)

public Struct.Builder addDataBuilder(int index)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
index int
Returns
Type Description
Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataResult.Builder
Overrides

build()

public DataResult build()
Returns
Type Description
DataResult

buildPartial()

public DataResult buildPartial()
Returns
Type Description
DataResult

clear()

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

clearData()

public DataResult.Builder clearData()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
DataResult.Builder

clearField(Descriptors.FieldDescriptor field)

public DataResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataResult.Builder
Overrides

clearName()

public DataResult.Builder clearName()

Optional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.

  • Example: "total_sales_by_product"
  • Example: "sales_for_product_12345"

string name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataResult.Builder
Overrides

clearSchema()

public DataResult.Builder clearSchema()

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataResult.Builder

clone()

public DataResult.Builder clone()
Returns
Type Description
DataResult.Builder
Overrides

getData(int index)

public Struct getData(int index)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
index int
Returns
Type Description
Struct

getDataBuilder(int index)

public Struct.Builder getDataBuilder(int index)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
index int
Returns
Type Description
Builder

getDataBuilderList()

public List<Struct.Builder> getDataBuilderList()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
List<Builder>

getDataCount()

public int getDataCount()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
int

getDataList()

public List<Struct> getDataList()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
List<Struct>

getDataOrBuilder(int index)

public StructOrBuilder getDataOrBuilder(int index)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
index int
Returns
Type Description
StructOrBuilder

getDataOrBuilderList()

public List<? extends StructOrBuilder> getDataOrBuilderList()

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Returns
Type Description
List<? extends com.google.protobuf.StructOrBuilder>

getDefaultInstanceForType()

public DataResult getDefaultInstanceForType()
Returns
Type Description
DataResult

getDescriptorForType()

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

getName()

public String getName()

Optional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.

  • Example: "total_sales_by_product"
  • Example: "sales_for_product_12345"

string name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.

  • Example: "total_sales_by_product"
  • Example: "sales_for_product_12345"

string name = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getSchema()

public Schema getSchema()

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchemaOrBuilder

hasSchema()

public boolean hasSchema()

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DataResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataResult.Builder
Overrides

mergeSchema(Schema value)

public DataResult.Builder mergeSchema(Schema value)

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
DataResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataResult.Builder
Overrides

removeData(int index)

public DataResult.Builder removeData(int index)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameter
Name Description
index int
Returns
Type Description
DataResult.Builder

setData(int index, Struct value)

public DataResult.Builder setData(int index, Struct value)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameters
Name Description
index int
value Struct
Returns
Type Description
DataResult.Builder

setData(int index, Struct.Builder builderForValue)

public DataResult.Builder setData(int index, Struct.Builder builderForValue)

Optional. The content of the data. Each row is a struct that matches the schema. Simple values are represented as strings, while nested structures are represented as lists or structs.

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

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
DataResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataResult.Builder
Overrides

setName(String value)

public DataResult.Builder setName(String value)

Optional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.

  • Example: "total_sales_by_product"
  • Example: "sales_for_product_12345"

string name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DataResult.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataResult.Builder setNameBytes(ByteString value)

Optional. A snake-case name for the data result that reflects its contents. The name is used to pass the result around by reference, and serves as a signal about its meaning.

  • Example: "total_sales_by_product"
  • Example: "sales_for_product_12345"

string name = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DataResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataResult.Builder
Overrides

setSchema(Schema value)

public DataResult.Builder setSchema(Schema value)

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Schema
Returns
Type Description
DataResult.Builder

setSchema(Schema.Builder builderForValue)

public DataResult.Builder setSchema(Schema.Builder builderForValue)

Optional. The schema of the data.

.google.cloud.geminidataanalytics.v1beta.Schema schema = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
DataResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DataResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataResult.Builder
Overrides