Class TimeSeriesQuery
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.monitoring.dashboard.v1.TimeSeriesQuery
- All Implemented Interfaces:
TimeSeriesQueryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class TimeSeriesQuery
extends com.google.protobuf.GeneratedMessage
implements TimeSeriesQueryOrBuilder
TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.Protobuf type
google.monitoring.dashboard.v1.TimeSeriesQuery- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TimeSeriesQuerystatic final com.google.protobuf.Descriptors.DescriptorbooleanOptional.com.google.protobuf.Parser<TimeSeriesQuery>A query used to fetch time series with PromQL.com.google.protobuf.ByteStringA query used to fetch time series with PromQL.intFilter parameters to fetch time series.Filter parameters to fetch time series.Parameters to fetch a ratio between two time series filters.Parameters to fetch a ratio between two time series filters.A query used to fetch time series with MQL.com.google.protobuf.ByteStringA query used to fetch time series with MQL.The unit of data contained in fetched time series.com.google.protobuf.ByteStringThe unit of data contained in fetched time series.inthashCode()booleanA query used to fetch time series with PromQL.booleanFilter parameters to fetch time series.booleanParameters to fetch a ratio between two time series filters.booleanA query used to fetch time series with MQL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TimeSeriesQuery.Builderstatic TimeSeriesQuery.BuildernewBuilder(TimeSeriesQuery prototype) protected TimeSeriesQuery.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TimeSeriesQueryparseDelimitedFrom(InputStream input) static TimeSeriesQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimeSeriesQueryparseFrom(byte[] data) static TimeSeriesQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimeSeriesQueryparseFrom(com.google.protobuf.ByteString data) static TimeSeriesQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimeSeriesQueryparseFrom(com.google.protobuf.CodedInputStream input) static TimeSeriesQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimeSeriesQueryparseFrom(InputStream input) static TimeSeriesQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TimeSeriesQueryparseFrom(ByteBuffer data) static TimeSeriesQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TimeSeriesQuery>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TIME_SERIES_FILTER_FIELD_NUMBER
public static final int TIME_SERIES_FILTER_FIELD_NUMBER- See Also:
-
TIME_SERIES_FILTER_RATIO_FIELD_NUMBER
public static final int TIME_SERIES_FILTER_RATIO_FIELD_NUMBER- See Also:
-
TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER
public static final int TIME_SERIES_QUERY_LANGUAGE_FIELD_NUMBER- See Also:
-
PROMETHEUS_QUERY_FIELD_NUMBER
public static final int PROMETHEUS_QUERY_FIELD_NUMBER- See Also:
-
UNIT_OVERRIDE_FIELD_NUMBER
public static final int UNIT_OVERRIDE_FIELD_NUMBER- See Also:
-
OUTPUT_FULL_DURATION_FIELD_NUMBER
public static final int OUTPUT_FULL_DURATION_FIELD_NUMBER- See Also:
-
-
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
-
getSourceCase
- Specified by:
getSourceCasein interfaceTimeSeriesQueryOrBuilder
-
hasTimeSeriesFilter
public boolean hasTimeSeriesFilter()Filter parameters to fetch time series.
.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;- Specified by:
hasTimeSeriesFilterin interfaceTimeSeriesQueryOrBuilder- Returns:
- Whether the timeSeriesFilter field is set.
-
getTimeSeriesFilter
Filter parameters to fetch time series.
.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;- Specified by:
getTimeSeriesFilterin interfaceTimeSeriesQueryOrBuilder- Returns:
- The timeSeriesFilter.
-
getTimeSeriesFilterOrBuilder
Filter parameters to fetch time series.
.google.monitoring.dashboard.v1.TimeSeriesFilter time_series_filter = 1;- Specified by:
getTimeSeriesFilterOrBuilderin interfaceTimeSeriesQueryOrBuilder
-
hasTimeSeriesFilterRatio
public boolean hasTimeSeriesFilterRatio()Parameters to fetch a ratio between two time series filters.
.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2;- Specified by:
hasTimeSeriesFilterRatioin interfaceTimeSeriesQueryOrBuilder- Returns:
- Whether the timeSeriesFilterRatio field is set.
-
getTimeSeriesFilterRatio
Parameters to fetch a ratio between two time series filters.
.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2;- Specified by:
getTimeSeriesFilterRatioin interfaceTimeSeriesQueryOrBuilder- Returns:
- The timeSeriesFilterRatio.
-
getTimeSeriesFilterRatioOrBuilder
Parameters to fetch a ratio between two time series filters.
.google.monitoring.dashboard.v1.TimeSeriesFilterRatio time_series_filter_ratio = 2;- Specified by:
getTimeSeriesFilterRatioOrBuilderin interfaceTimeSeriesQueryOrBuilder
-
hasTimeSeriesQueryLanguage
public boolean hasTimeSeriesQueryLanguage()A query used to fetch time series with MQL.
string time_series_query_language = 3;- Specified by:
hasTimeSeriesQueryLanguagein interfaceTimeSeriesQueryOrBuilder- Returns:
- Whether the timeSeriesQueryLanguage field is set.
-
getTimeSeriesQueryLanguage
A query used to fetch time series with MQL.
string time_series_query_language = 3;- Specified by:
getTimeSeriesQueryLanguagein interfaceTimeSeriesQueryOrBuilder- Returns:
- The timeSeriesQueryLanguage.
-
getTimeSeriesQueryLanguageBytes
public com.google.protobuf.ByteString getTimeSeriesQueryLanguageBytes()A query used to fetch time series with MQL.
string time_series_query_language = 3;- Specified by:
getTimeSeriesQueryLanguageBytesin interfaceTimeSeriesQueryOrBuilder- Returns:
- The bytes for timeSeriesQueryLanguage.
-
hasPrometheusQuery
public boolean hasPrometheusQuery()A query used to fetch time series with PromQL.
string prometheus_query = 6;- Specified by:
hasPrometheusQueryin interfaceTimeSeriesQueryOrBuilder- Returns:
- Whether the prometheusQuery field is set.
-
getPrometheusQuery
A query used to fetch time series with PromQL.
string prometheus_query = 6;- Specified by:
getPrometheusQueryin interfaceTimeSeriesQueryOrBuilder- Returns:
- The prometheusQuery.
-
getPrometheusQueryBytes
public com.google.protobuf.ByteString getPrometheusQueryBytes()A query used to fetch time series with PromQL.
string prometheus_query = 6;- Specified by:
getPrometheusQueryBytesin interfaceTimeSeriesQueryOrBuilder- Returns:
- The bytes for prometheusQuery.
-
getUnitOverride
The unit of data contained in fetched time series. If non-empty, this unit will override any unit that accompanies fetched data. The format is the same as the [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) field in `MetricDescriptor`.
string unit_override = 5;- Specified by:
getUnitOverridein interfaceTimeSeriesQueryOrBuilder- Returns:
- The unitOverride.
-
getUnitOverrideBytes
public com.google.protobuf.ByteString getUnitOverrideBytes()The unit of data contained in fetched time series. If non-empty, this unit will override any unit that accompanies fetched data. The format is the same as the [`unit`](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) field in `MetricDescriptor`.
string unit_override = 5;- Specified by:
getUnitOverrideBytesin interfaceTimeSeriesQueryOrBuilder- Returns:
- The bytes for unitOverride.
-
getOutputFullDuration
public boolean getOutputFullDuration()Optional. If set, Cloud Monitoring will treat the full query duration as the alignment period so that there will be only 1 output value. *Note: This could override the configured alignment period except for the cases where a series of data points are expected, like - XyChart - Scorecard's spark chart
bool output_full_duration = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputFullDurationin interfaceTimeSeriesQueryOrBuilder- Returns:
- The outputFullDuration.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TimeSeriesQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeriesQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeriesQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeriesQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeriesQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeriesQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TimeSeriesQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TimeSeriesQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TimeSeriesQuery parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TimeSeriesQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TimeSeriesQuery.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-