Class SignalFilter.Builder

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

public static final class SignalFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<SignalFilter.Builder> implements SignalFilterOrBuilder
 A filter for Signals.

 If signal_type is left unset, all signals should be returned.
 For example, the following filter returns all issues.
 signal_filter: {
 signal_status: SIGNAL_STATUS_ISSUE;
 }

 Another example, the following filter returns issues of the given type:
 signal_filter: {
 type: SIGNAL_TYPE_NO_PROMOTABLE_REPLICA
 signal_status: ISSUE
 }

 If signal_status is left unset or set to SIGNAL_STATE_UNSPECIFIED, an error
 should be returned.
 
Protobuf type google.cloud.databasecenter.v1beta.SignalFilter
  • 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<SignalFilter.Builder>
    • clear

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

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

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

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

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

      public SignalFilter.Builder mergeFrom(SignalFilter other)
    • isInitialized

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

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

      public int getSignalTypeValue()
       Optional. Represents the type of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignalTypeValue in interface SignalFilterOrBuilder
      Returns:
      The enum numeric value on the wire for signalType.
    • setSignalTypeValue

      public SignalFilter.Builder setSignalTypeValue(int value)
       Optional. Represents the type of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for signalType to set.
      Returns:
      This builder for chaining.
    • getSignalType

      public SignalType getSignalType()
       Optional. Represents the type of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignalType in interface SignalFilterOrBuilder
      Returns:
      The signalType.
    • setSignalType

      public SignalFilter.Builder setSignalType(SignalType value)
       Optional. Represents the type of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The signalType to set.
      Returns:
      This builder for chaining.
    • clearSignalType

      public SignalFilter.Builder clearSignalType()
       Optional. Represents the type of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalType signal_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSignalStatusValue

      public int getSignalStatusValue()
       Optional. Represents the status of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignalStatusValue in interface SignalFilterOrBuilder
      Returns:
      The enum numeric value on the wire for signalStatus.
    • setSignalStatusValue

      public SignalFilter.Builder setSignalStatusValue(int value)
       Optional. Represents the status of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for signalStatus to set.
      Returns:
      This builder for chaining.
    • getSignalStatus

      public SignalStatus getSignalStatus()
       Optional. Represents the status of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSignalStatus in interface SignalFilterOrBuilder
      Returns:
      The signalStatus.
    • setSignalStatus

      public SignalFilter.Builder setSignalStatus(SignalStatus value)
       Optional. Represents the status of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The signalStatus to set.
      Returns:
      This builder for chaining.
    • clearSignalStatus

      public SignalFilter.Builder clearSignalStatus()
       Optional. Represents the status of the Signal for which the filter is for.
       
      .google.cloud.databasecenter.v1beta.SignalStatus signal_status = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.