public final class UsageSignal extends GeneratedMessageV3 implements UsageSignalOrBuilder
The set of all usage signals that Data Catalog stores.
Note: Usually, these signals are updated daily. In rare cases, an update may
fail but will be performed again on the next day.
Protobuf type google.cloud.datacatalog.v1.UsageSignal
Static Fields
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER
public static final int USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static UsageSignal getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static UsageSignal.Builder newBuilder()
Returns
newBuilder(UsageSignal prototype)
public static UsageSignal.Builder newBuilder(UsageSignal prototype)
Parameter
Returns
public static UsageSignal parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UsageSignal parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static UsageSignal parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UsageSignal parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static UsageSignal parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UsageSignal parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UsageSignal parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UsageSignal parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UsageSignal parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UsageSignal parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static UsageSignal parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UsageSignal parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<UsageSignal> parser()
Returns
Methods
containsUsageWithinTimeRange(String key)
public boolean containsUsageWithinTimeRange(String key)
Usage statistics over each of the predefined time ranges.
Supported time ranges are {"24H", "7D", "30D"}
.
map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public UsageSignal getDefaultInstanceForType()
Returns
getParserForType()
public Parser<UsageSignal> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
The end timestamp of the duration of usage statistics.
.google.protobuf.Timestamp update_time = 1;
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
The end timestamp of the duration of usage statistics.
.google.protobuf.Timestamp update_time = 1;
Returns
getUsageWithinTimeRange()
public Map<String,UsageStats> getUsageWithinTimeRange()
Returns
getUsageWithinTimeRangeCount()
public int getUsageWithinTimeRangeCount()
Usage statistics over each of the predefined time ranges.
Supported time ranges are {"24H", "7D", "30D"}
.
map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2;
Returns
getUsageWithinTimeRangeMap()
public Map<String,UsageStats> getUsageWithinTimeRangeMap()
Usage statistics over each of the predefined time ranges.
Supported time ranges are {"24H", "7D", "30D"}
.
map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2;
Returns
getUsageWithinTimeRangeOrDefault(String key, UsageStats defaultValue)
public UsageStats getUsageWithinTimeRangeOrDefault(String key, UsageStats defaultValue)
Usage statistics over each of the predefined time ranges.
Supported time ranges are {"24H", "7D", "30D"}
.
map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2;
Parameters
Returns
getUsageWithinTimeRangeOrThrow(String key)
public UsageStats getUsageWithinTimeRangeOrThrow(String key)
Usage statistics over each of the predefined time ranges.
Supported time ranges are {"24H", "7D", "30D"}
.
map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2;
Parameter
Returns
hasUpdateTime()
public boolean hasUpdateTime()
The end timestamp of the duration of usage statistics.
.google.protobuf.Timestamp update_time = 1;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public UsageSignal.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UsageSignal.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public UsageSignal.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions