Class UsageSignal (1.48.0)

public final class UsageSignal extends GeneratedMessageV3 implements UsageSignalOrBuilder

The set of all usage signals that we store in Data Catalog.

Protobuf type google.cloud.datacatalog.v1beta1.UsageSignal

Static Fields

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER

public static final int USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UsageSignal getDefaultInstance()
Returns
Type Description
UsageSignal

getDescriptor()

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

newBuilder()

public static UsageSignal.Builder newBuilder()
Returns
Type Description
UsageSignal.Builder

newBuilder(UsageSignal prototype)

public static UsageSignal.Builder newBuilder(UsageSignal prototype)
Parameter
Name Description
prototype UsageSignal
Returns
Type Description
UsageSignal.Builder

parseDelimitedFrom(InputStream input)

public static UsageSignal parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UsageSignal parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UsageSignal parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UsageSignal parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UsageSignal parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UsageSignal parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UsageSignal parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UsageSignal> parser()
Returns
Type Description
Parser<UsageSignal>

Methods

containsUsageWithinTimeRange(String key)

public boolean containsUsageWithinTimeRange(String key)

Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}.

map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UsageSignal getDefaultInstanceForType()
Returns
Type Description
UsageSignal

getParserForType()

public Parser<UsageSignal> getParserForType()
Returns
Type Description
Parser<UsageSignal>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Returns
Type Description
TimestampOrBuilder

getUsageWithinTimeRange() (deprecated)

public Map<String,UsageStats> getUsageWithinTimeRange()
Returns
Type Description
Map<String,UsageStats>

getUsageWithinTimeRangeCount()

public int getUsageWithinTimeRangeCount()

Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}.

map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2;

Returns
Type Description
int

getUsageWithinTimeRangeMap()

public Map<String,UsageStats> getUsageWithinTimeRangeMap()

Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}.

map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2;

Returns
Type Description
Map<String,UsageStats>

getUsageWithinTimeRangeOrDefault(String key, UsageStats defaultValue)

public UsageStats getUsageWithinTimeRangeOrDefault(String key, UsageStats defaultValue)

Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}.

map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2;

Parameters
Name Description
key String
defaultValue UsageStats
Returns
Type Description
UsageStats

getUsageWithinTimeRangeOrThrow(String key)

public UsageStats getUsageWithinTimeRangeOrThrow(String key)

Usage statistics over each of the pre-defined time ranges, supported strings for time ranges are {"24H", "7D", "30D"}.

map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2;

Parameter
Name Description
key String
Returns
Type Description
UsageStats

hasUpdateTime()

public boolean hasUpdateTime()

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UsageSignal.Builder newBuilderForType()
Returns
Type Description
UsageSignal.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UsageSignal.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UsageSignal.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public UsageSignal.Builder toBuilder()
Returns
Type Description
UsageSignal.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException