Class IssueStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IssueStats.Builder>
com.google.cloud.databasecenter.v1beta.IssueStats.Builder
All Implemented Interfaces:
IssueStatsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IssueStats

public static final class IssueStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<IssueStats.Builder> implements IssueStatsOrBuilder
 IssueStats holds stats for a particular signal category.
 
Protobuf type google.cloud.databasecenter.v1beta.IssueStats
  • Method Details

    • getDescriptor

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

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

      public IssueStats.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<IssueStats.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<IssueStats.Builder>
    • getDefaultInstanceForType

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

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

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

      public IssueStats.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<IssueStats.Builder>
    • mergeFrom

      public IssueStats.Builder mergeFrom(IssueStats other)
    • isInitialized

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

      public IssueStats.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<IssueStats.Builder>
      Throws:
      IOException
    • getSignalTypeValue

      public int getSignalTypeValue()
       Type of signal which is an issue.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
      Specified by:
      getSignalTypeValue in interface IssueStatsOrBuilder
      Returns:
      The enum numeric value on the wire for signalType.
    • setSignalTypeValue

      public IssueStats.Builder setSignalTypeValue(int value)
       Type of signal which is an issue.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
      Parameters:
      value - The enum numeric value on the wire for signalType to set.
      Returns:
      This builder for chaining.
    • getSignalType

      public SignalType getSignalType()
       Type of signal which is an issue.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
      Specified by:
      getSignalType in interface IssueStatsOrBuilder
      Returns:
      The signalType.
    • setSignalType

      public IssueStats.Builder setSignalType(SignalType value)
       Type of signal which is an issue.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
      Parameters:
      value - The signalType to set.
      Returns:
      This builder for chaining.
    • clearSignalType

      public IssueStats.Builder clearSignalType()
       Type of signal which is an issue.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1;
      Returns:
      This builder for chaining.
    • getResourceCount

      public int getResourceCount()
       Number of resources having issues of a given type.
       
      int32 resource_count = 2;
      Specified by:
      getResourceCount in interface IssueStatsOrBuilder
      Returns:
      The resourceCount.
    • setResourceCount

      public IssueStats.Builder setResourceCount(int value)
       Number of resources having issues of a given type.
       
      int32 resource_count = 2;
      Parameters:
      value - The resourceCount to set.
      Returns:
      This builder for chaining.
    • clearResourceCount

      public IssueStats.Builder clearResourceCount()
       Number of resources having issues of a given type.
       
      int32 resource_count = 2;
      Returns:
      This builder for chaining.
    • hasDeltaDetails

      public boolean hasDeltaDetails()
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDeltaDetails in interface IssueStatsOrBuilder
      Returns:
      Whether the deltaDetails field is set.
    • getDeltaDetails

      public DeltaDetails getDeltaDetails()
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeltaDetails in interface IssueStatsOrBuilder
      Returns:
      The deltaDetails.
    • setDeltaDetails

      public IssueStats.Builder setDeltaDetails(DeltaDetails value)
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setDeltaDetails

      public IssueStats.Builder setDeltaDetails(DeltaDetails.Builder builderForValue)
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDeltaDetails

      public IssueStats.Builder mergeDeltaDetails(DeltaDetails value)
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearDeltaDetails

      public IssueStats.Builder clearDeltaDetails()
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDeltaDetailsBuilder

      public DeltaDetails.Builder getDeltaDetailsBuilder()
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDeltaDetailsOrBuilder

      public DeltaDetailsOrBuilder getDeltaDetailsOrBuilder()
       Optional. Delta counts and details of resources for which issue was raised
       or fixed.
       
      optional .google.cloud.databasecenter.v1beta.DeltaDetails delta_details = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeltaDetailsOrBuilder in interface IssueStatsOrBuilder
    • hasIssueSeverity

      public boolean hasIssueSeverity()
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Specified by:
      hasIssueSeverity in interface IssueStatsOrBuilder
      Returns:
      Whether the issueSeverity field is set.
    • getIssueSeverityValue

      public int getIssueSeverityValue()
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Specified by:
      getIssueSeverityValue in interface IssueStatsOrBuilder
      Returns:
      The enum numeric value on the wire for issueSeverity.
    • setIssueSeverityValue

      public IssueStats.Builder setIssueSeverityValue(int value)
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Parameters:
      value - The enum numeric value on the wire for issueSeverity to set.
      Returns:
      This builder for chaining.
    • getIssueSeverity

      public IssueSeverity getIssueSeverity()
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Specified by:
      getIssueSeverity in interface IssueStatsOrBuilder
      Returns:
      The issueSeverity.
    • setIssueSeverity

      public IssueStats.Builder setIssueSeverity(IssueSeverity value)
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Parameters:
      value - The issueSeverity to set.
      Returns:
      This builder for chaining.
    • clearIssueSeverity

      public IssueStats.Builder clearIssueSeverity()
       Severity of the issue.
       
      optional .google.cloud.databasecenter.v1beta.IssueSeverity issue_severity = 4;
      Returns:
      This builder for chaining.