Package com.google.cloud.chronicle.v1
Class DashboardChart.ChartDatasource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
com.google.cloud.chronicle.v1.DashboardChart.ChartDatasource.Builder
- All Implemented Interfaces:
DashboardChart.ChartDatasourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DashboardChart.ChartDatasource
public static final class DashboardChart.ChartDatasource.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataSources(Iterable<? extends DataSource> values) Name of the datasource used in the chart.addAllDataSourcesValue(Iterable<Integer> values) Name of the datasource used in the chart.addDataSources(DataSource value) Name of the datasource used in the chart.addDataSourcesValue(int value) Name of the datasource used in the chart.build()clear()Reference to dashboard query resource used in the chart.Name of the datasource used in the chart.Reference to dashboard query resource used in the chart.com.google.protobuf.ByteStringReference to dashboard query resource used in the chart.getDataSources(int index) Name of the datasource used in the chart.intName of the datasource used in the chart.Name of the datasource used in the chart.intgetDataSourcesValue(int index) Name of the datasource used in the chart.Name of the datasource used in the chart.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDashboardQuery(String value) Reference to dashboard query resource used in the chart.setDashboardQueryBytes(com.google.protobuf.ByteString value) Reference to dashboard query resource used in the chart.setDataSources(int index, DataSource value) Name of the datasource used in the chart.setDataSourcesValue(int index, int value) Name of the datasource used in the chart.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DashboardChart.ChartDatasource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DashboardChart.ChartDatasource.Builder>
-
mergeFrom
public DashboardChart.ChartDatasource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DashboardChart.ChartDatasource.Builder>- Throws:
IOException
-
getDashboardQuery
Reference to dashboard query resource used in the chart.
string dashboard_query = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getDashboardQueryin interfaceDashboardChart.ChartDatasourceOrBuilder- Returns:
- The dashboardQuery.
-
getDashboardQueryBytes
public com.google.protobuf.ByteString getDashboardQueryBytes()Reference to dashboard query resource used in the chart.
string dashboard_query = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getDashboardQueryBytesin interfaceDashboardChart.ChartDatasourceOrBuilder- Returns:
- The bytes for dashboardQuery.
-
setDashboardQuery
Reference to dashboard query resource used in the chart.
string dashboard_query = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The dashboardQuery to set.- Returns:
- This builder for chaining.
-
clearDashboardQuery
Reference to dashboard query resource used in the chart.
string dashboard_query = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDashboardQueryBytes
public DashboardChart.ChartDatasource.Builder setDashboardQueryBytes(com.google.protobuf.ByteString value) Reference to dashboard query resource used in the chart.
string dashboard_query = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for dashboardQuery to set.- Returns:
- This builder for chaining.
-
getDataSourcesList
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Specified by:
getDataSourcesListin interfaceDashboardChart.ChartDatasourceOrBuilder- Returns:
- A list containing the dataSources.
-
getDataSourcesCount
public int getDataSourcesCount()Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Specified by:
getDataSourcesCountin interfaceDashboardChart.ChartDatasourceOrBuilder- Returns:
- The count of dataSources.
-
getDataSources
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Specified by:
getDataSourcesin interfaceDashboardChart.ChartDatasourceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dataSources at the given index.
-
setDataSources
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Parameters:
index- The index to set the value at.value- The dataSources to set.- Returns:
- This builder for chaining.
-
addDataSources
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Parameters:
value- The dataSources to add.- Returns:
- This builder for chaining.
-
addAllDataSources
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;- Parameters:
values- The dataSources to add.- Returns:
- This builder for chaining.
-
clearDataSources
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Returns:
- This builder for chaining.
-
getDataSourcesValueList
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Specified by:
getDataSourcesValueListin interfaceDashboardChart.ChartDatasourceOrBuilder- Returns:
- A list containing the enum numeric values on the wire for dataSources.
-
getDataSourcesValue
public int getDataSourcesValue(int index) Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Specified by:
getDataSourcesValuein interfaceDashboardChart.ChartDatasourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of dataSources at the given index.
-
setDataSourcesValue
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for dataSources to set.- Returns:
- This builder for chaining.
-
addDataSourcesValue
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Parameters:
value- The enum numeric value on the wire for dataSources to add.- Returns:
- This builder for chaining.
-
addAllDataSourcesValue
Name of the datasource used in the chart.
repeated .google.cloud.chronicle.v1.DataSource data_sources = 3;- Parameters:
values- The enum numeric values on the wire for dataSources to add.- Returns:
- This builder for chaining.
-