Class UsageSignal.Builder (1.52.0)

public static final class UsageSignal.Builder extends GeneratedMessageV3.Builder<UsageSignal.Builder> implements UsageSignalOrBuilder

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

Protobuf type google.cloud.datacatalog.v1beta1.UsageSignal

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UsageSignal.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageSignal.Builder
Overrides

build()

public UsageSignal build()
Returns
Type Description
UsageSignal

buildPartial()

public UsageSignal buildPartial()
Returns
Type Description
UsageSignal

clear()

public UsageSignal.Builder clear()
Returns
Type Description
UsageSignal.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UsageSignal.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UsageSignal.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UsageSignal.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UsageSignal.Builder
Overrides

clearUpdateTime()

public UsageSignal.Builder clearUpdateTime()

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Returns
Type Description
UsageSignal.Builder

clearUsageWithinTimeRange()

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

clone()

public UsageSignal.Builder clone()
Returns
Type Description
UsageSignal.Builder
Overrides

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

getDefaultInstanceForType()

public UsageSignal getDefaultInstanceForType()
Returns
Type Description
UsageSignal

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableUsageWithinTimeRange() (deprecated)

public Map<String,UsageStats> getMutableUsageWithinTimeRange()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,UsageStats>

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Returns
Type Description
Builder

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsageSignal other)

public UsageSignal.Builder mergeFrom(UsageSignal other)
Parameter
Name Description
other UsageSignal
Returns
Type Description
UsageSignal.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsageSignal.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsageSignal.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UsageSignal.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UsageSignal.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UsageSignal.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageSignal.Builder
Overrides

mergeUpdateTime(Timestamp value)

public UsageSignal.Builder mergeUpdateTime(Timestamp value)

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
UsageSignal.Builder

putAllUsageWithinTimeRange(Map<String,UsageStats> values)

public UsageSignal.Builder putAllUsageWithinTimeRange(Map<String,UsageStats> values)

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
values Map<String,UsageStats>
Returns
Type Description
UsageSignal.Builder

putUsageWithinTimeRange(String key, UsageStats value)

public UsageSignal.Builder putUsageWithinTimeRange(String key, UsageStats value)

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
value UsageStats
Returns
Type Description
UsageSignal.Builder

putUsageWithinTimeRangeBuilderIfAbsent(String key)

public UsageStats.Builder putUsageWithinTimeRangeBuilderIfAbsent(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.Builder

removeUsageWithinTimeRange(String key)

public UsageSignal.Builder removeUsageWithinTimeRange(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
UsageSignal.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UsageSignal.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UsageSignal.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UsageSignal.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UsageSignal.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UsageSignal.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UsageSignal.Builder
Overrides

setUpdateTime(Timestamp value)

public UsageSignal.Builder setUpdateTime(Timestamp value)

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
UsageSignal.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public UsageSignal.Builder setUpdateTime(Timestamp.Builder builderForValue)

The timestamp of the end of the usage statistics duration.

.google.protobuf.Timestamp update_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UsageSignal.Builder