Class DashboardChart.ChartDatasource.Builder (0.31.0)

public static final class DashboardChart.ChartDatasource.Builder extends GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder> implements DashboardChart.ChartDatasourceOrBuilder

Datasource of the chart including the query reference and source name.

Protobuf type google.cloud.chronicle.v1.DashboardChart.ChartDatasource

Static Methods

getDescriptor()

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

Methods

addAllDataSources(Iterable<? extends DataSource> values)

public DashboardChart.ChartDatasource.Builder addAllDataSources(Iterable<? extends DataSource> values)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.chronicle.v1.DataSource>

The dataSources to add.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

addAllDataSourcesValue(Iterable<Integer> values)

public DashboardChart.ChartDatasource.Builder addAllDataSourcesValue(Iterable<Integer> values)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for dataSources to add.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

addDataSources(DataSource value)

public DashboardChart.ChartDatasource.Builder addDataSources(DataSource value)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
value DataSource

The dataSources to add.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

addDataSourcesValue(int value)

public DashboardChart.ChartDatasource.Builder addDataSourcesValue(int value)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for dataSources to add.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

build()

public DashboardChart.ChartDatasource build()
Returns
Type Description
DashboardChart.ChartDatasource

buildPartial()

public DashboardChart.ChartDatasource buildPartial()
Returns
Type Description
DashboardChart.ChartDatasource

clear()

public DashboardChart.ChartDatasource.Builder clear()
Returns
Type Description
DashboardChart.ChartDatasource.Builder
Overrides

clearDashboardQuery()

public DashboardChart.ChartDatasource.Builder clearDashboardQuery()

Reference to dashboard query resource used in the chart.

string dashboard_query = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

clearDataSources()

public DashboardChart.ChartDatasource.Builder clearDataSources()

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

getDashboardQuery()

public String getDashboardQuery()

Reference to dashboard query resource used in the chart.

string dashboard_query = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dashboardQuery.

getDashboardQueryBytes()

public ByteString getDashboardQueryBytes()

Reference to dashboard query resource used in the chart.

string dashboard_query = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dashboardQuery.

getDataSources(int index)

public DataSource getDataSources(int index)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DataSource

The dataSources at the given index.

getDataSourcesCount()

public int getDataSourcesCount()

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Returns
Type Description
int

The count of dataSources.

getDataSourcesList()

public List<DataSource> getDataSourcesList()

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Returns
Type Description
List<DataSource>

A list containing the dataSources.

getDataSourcesValue(int index)

public int getDataSourcesValue(int index)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of dataSources at the given index.

getDataSourcesValueList()

public List<Integer> getDataSourcesValueList()

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for dataSources.

getDefaultInstanceForType()

public DashboardChart.ChartDatasource getDefaultInstanceForType()
Returns
Type Description
DashboardChart.ChartDatasource

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DashboardChart.ChartDatasource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDashboardQuery(String value)

public DashboardChart.ChartDatasource.Builder setDashboardQuery(String value)

Reference to dashboard query resource used in the chart.

string dashboard_query = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dashboardQuery to set.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

setDashboardQueryBytes(ByteString value)

public DashboardChart.ChartDatasource.Builder setDashboardQueryBytes(ByteString value)

Reference to dashboard query resource used in the chart.

string dashboard_query = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dashboardQuery to set.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

setDataSources(int index, DataSource value)

public DashboardChart.ChartDatasource.Builder setDataSources(int index, DataSource value)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameters
Name Description
index int

The index to set the value at.

value DataSource

The dataSources to set.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.

setDataSourcesValue(int index, int value)

public DashboardChart.ChartDatasource.Builder setDataSourcesValue(int index, int value)

Name of the datasource used in the chart.

repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for dataSources to set.

Returns
Type Description
DashboardChart.ChartDatasource.Builder

This builder for chaining.