Class UsageStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageStats.Builder>
com.google.cloud.datacatalog.v1beta1.UsageStats.Builder
- All Implemented Interfaces:
UsageStatsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UsageStats
public static final class UsageStats.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UsageStats.Builder>
implements UsageStatsOrBuilder
Detailed counts on the entry's usage. Caveats: - Only BigQuery tables have usage stats - The usage stats only include BigQuery query jobs - The usage stats might be underestimated, e.g. wildcard table references are not yet counted in usage computation https://cloud.google.com/bigquery/docs/querying-wildcard-tablesProtobuf type
google.cloud.datacatalog.v1beta1.UsageStats-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of times that the underlying entry was attempted to be used but was cancelled by the user.The number of times that the underlying entry was successfully used.Total time spent (in milliseconds) during uses the resulted in completions.The number of times that the underlying entry was attempted to be used but failed.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatThe number of times that the underlying entry was attempted to be used but was cancelled by the user.floatThe number of times that the underlying entry was successfully used.floatTotal time spent (in milliseconds) during uses the resulted in completions.floatThe number of times that the underlying entry was attempted to be used but failed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UsageStats other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setTotalCancellations(float value) The number of times that the underlying entry was attempted to be used but was cancelled by the user.setTotalCompletions(float value) The number of times that the underlying entry was successfully used.setTotalExecutionTimeForCompletionsMillis(float value) Total time spent (in milliseconds) during uses the resulted in completions.setTotalFailures(float value) The number of times that the underlying entry was attempted to be used but failed.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<UsageStats.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<UsageStats.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<UsageStats.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<UsageStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UsageStats.Builder>
-
mergeFrom
public UsageStats.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<UsageStats.Builder>- Throws:
IOException
-
getTotalCompletions
public float getTotalCompletions()The number of times that the underlying entry was successfully used.
float total_completions = 1;- Specified by:
getTotalCompletionsin interfaceUsageStatsOrBuilder- Returns:
- The totalCompletions.
-
setTotalCompletions
The number of times that the underlying entry was successfully used.
float total_completions = 1;- Parameters:
value- The totalCompletions to set.- Returns:
- This builder for chaining.
-
clearTotalCompletions
The number of times that the underlying entry was successfully used.
float total_completions = 1;- Returns:
- This builder for chaining.
-
getTotalFailures
public float getTotalFailures()The number of times that the underlying entry was attempted to be used but failed.
float total_failures = 2;- Specified by:
getTotalFailuresin interfaceUsageStatsOrBuilder- Returns:
- The totalFailures.
-
setTotalFailures
The number of times that the underlying entry was attempted to be used but failed.
float total_failures = 2;- Parameters:
value- The totalFailures to set.- Returns:
- This builder for chaining.
-
clearTotalFailures
The number of times that the underlying entry was attempted to be used but failed.
float total_failures = 2;- Returns:
- This builder for chaining.
-
getTotalCancellations
public float getTotalCancellations()The number of times that the underlying entry was attempted to be used but was cancelled by the user.
float total_cancellations = 3;- Specified by:
getTotalCancellationsin interfaceUsageStatsOrBuilder- Returns:
- The totalCancellations.
-
setTotalCancellations
The number of times that the underlying entry was attempted to be used but was cancelled by the user.
float total_cancellations = 3;- Parameters:
value- The totalCancellations to set.- Returns:
- This builder for chaining.
-
clearTotalCancellations
The number of times that the underlying entry was attempted to be used but was cancelled by the user.
float total_cancellations = 3;- Returns:
- This builder for chaining.
-
getTotalExecutionTimeForCompletionsMillis
public float getTotalExecutionTimeForCompletionsMillis()Total time spent (in milliseconds) during uses the resulted in completions.
float total_execution_time_for_completions_millis = 4;- Specified by:
getTotalExecutionTimeForCompletionsMillisin interfaceUsageStatsOrBuilder- Returns:
- The totalExecutionTimeForCompletionsMillis.
-
setTotalExecutionTimeForCompletionsMillis
Total time spent (in milliseconds) during uses the resulted in completions.
float total_execution_time_for_completions_millis = 4;- Parameters:
value- The totalExecutionTimeForCompletionsMillis to set.- Returns:
- This builder for chaining.
-
clearTotalExecutionTimeForCompletionsMillis
Total time spent (in milliseconds) during uses the resulted in completions.
float total_execution_time_for_completions_millis = 4;- Returns:
- This builder for chaining.
-