Class UsageSignal.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder
All Implemented Interfaces:
UsageSignalOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UsageSignal

public static final class UsageSignal.Builder extends com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder> implements UsageSignalOrBuilder
 The set of all usage signals that we store in Data Catalog.
 
Protobuf type google.cloud.datacatalog.v1beta1.UsageSignal
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • clear

      public UsageSignal.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • getDefaultInstanceForType

      public UsageSignal getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UsageSignal build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UsageSignal buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UsageSignal.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSignal.Builder>
    • mergeFrom

      public UsageSignal.Builder mergeFrom(UsageSignal other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UsageSignal.Builder>
    • mergeFrom

      public UsageSignal.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UsageSignal.Builder>
      Throws:
      IOException
    • hasUpdateTime

      public boolean hasUpdateTime()
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
      Specified by:
      hasUpdateTime in interface UsageSignalOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
      Specified by:
      getUpdateTime in interface UsageSignalOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public UsageSignal.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
    • setUpdateTime

      public UsageSignal.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
    • mergeUpdateTime

      public UsageSignal.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
    • clearUpdateTime

      public UsageSignal.Builder clearUpdateTime()
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The timestamp of the end of the usage statistics duration.
       
      .google.protobuf.Timestamp update_time = 1;
      Specified by:
      getUpdateTimeOrBuilder in interface UsageSignalOrBuilder
    • getUsageWithinTimeRangeCount

      public int getUsageWithinTimeRangeCount()
      Description copied from interface: UsageSignalOrBuilder
       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;
      Specified by:
      getUsageWithinTimeRangeCount in interface UsageSignalOrBuilder
    • containsUsageWithinTimeRange

      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;
      Specified by:
      containsUsageWithinTimeRange in interface UsageSignalOrBuilder
    • getUsageWithinTimeRange

      @Deprecated public Map<String,UsageStats> getUsageWithinTimeRange()
      Deprecated.
      Specified by:
      getUsageWithinTimeRange in interface UsageSignalOrBuilder
    • 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;
      Specified by:
      getUsageWithinTimeRangeMap in interface UsageSignalOrBuilder
    • getUsageWithinTimeRangeOrDefault

      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;
      Specified by:
      getUsageWithinTimeRangeOrDefault in interface UsageSignalOrBuilder
    • getUsageWithinTimeRangeOrThrow

      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;
      Specified by:
      getUsageWithinTimeRangeOrThrow in interface UsageSignalOrBuilder
    • clearUsageWithinTimeRange

      public UsageSignal.Builder clearUsageWithinTimeRange()
    • removeUsageWithinTimeRange

      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;
    • getMutableUsageWithinTimeRange

      @Deprecated public Map<String,UsageStats> getMutableUsageWithinTimeRange()
      Deprecated.
      Use alternate mutation accessors instead.
    • putUsageWithinTimeRange

      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;
    • putAllUsageWithinTimeRange

      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;
    • putUsageWithinTimeRangeBuilderIfAbsent

      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;