Class InterconnectDiagnosticsLinkOpticalPower.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InterconnectDiagnosticsLinkOpticalPower.Builder>
com.google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPower.Builder
All Implemented Interfaces:
InterconnectDiagnosticsLinkOpticalPowerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InterconnectDiagnosticsLinkOpticalPower

public static final class InterconnectDiagnosticsLinkOpticalPower.Builder extends com.google.protobuf.GeneratedMessage.Builder<InterconnectDiagnosticsLinkOpticalPower.Builder> implements InterconnectDiagnosticsLinkOpticalPowerOrBuilder
 
Protobuf type google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPower
  • 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<InterconnectDiagnosticsLinkOpticalPower.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<InterconnectDiagnosticsLinkOpticalPower.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<InterconnectDiagnosticsLinkOpticalPower.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public InterconnectDiagnosticsLinkOpticalPower.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<InterconnectDiagnosticsLinkOpticalPower.Builder>
      Throws:
      IOException
    • hasState

      public boolean hasState()
       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      hasState in interface InterconnectDiagnosticsLinkOpticalPowerOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public String getState()
       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getState in interface InterconnectDiagnosticsLinkOpticalPowerOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Specified by:
      getStateBytes in interface InterconnectDiagnosticsLinkOpticalPowerOrBuilder
      Returns:
      The bytes for state.
    • setState

       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Returns:
      This builder for chaining.
    • setStateBytes

      public InterconnectDiagnosticsLinkOpticalPower.Builder setStateBytes(com.google.protobuf.ByteString value)
       The status of the current value when compared to the warning and alarm
       levels for the receiving or transmitting transceiver. Possible states
       include:
      
      
       - OK: The value has not crossed a warning threshold.
       - LOW_WARNING: The value has crossed below the low
       warning threshold.
       - HIGH_WARNING: The value has
       crossed above the high warning threshold.
       - LOW_ALARM: The value has crossed below the low alarm
       threshold.
       - HIGH_ALARM: The value has crossed above the high alarm
       threshold.
       Check the State enum for the list of possible values.
       
      optional string state = 109757585;
      Parameters:
      value - The bytes for state to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Value of the current receiving or transmitting optical power, read in
       dBm. Take a known good optical value, give it a 10% margin and trigger
       warnings relative to that value. In general, a -7dBm warning and a -11dBm
       alarm are good optical value estimates for most links.
       
      optional float value = 111972721;
      Specified by:
      hasValue in interface InterconnectDiagnosticsLinkOpticalPowerOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public float getValue()
       Value of the current receiving or transmitting optical power, read in
       dBm. Take a known good optical value, give it a 10% margin and trigger
       warnings relative to that value. In general, a -7dBm warning and a -11dBm
       alarm are good optical value estimates for most links.
       
      optional float value = 111972721;
      Specified by:
      getValue in interface InterconnectDiagnosticsLinkOpticalPowerOrBuilder
      Returns:
      The value.
    • setValue

      public InterconnectDiagnosticsLinkOpticalPower.Builder setValue(float value)
       Value of the current receiving or transmitting optical power, read in
       dBm. Take a known good optical value, give it a 10% margin and trigger
       warnings relative to that value. In general, a -7dBm warning and a -11dBm
       alarm are good optical value estimates for most links.
       
      optional float value = 111972721;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

       Value of the current receiving or transmitting optical power, read in
       dBm. Take a known good optical value, give it a 10% margin and trigger
       warnings relative to that value. In general, a -7dBm warning and a -11dBm
       alarm are good optical value estimates for most links.
       
      optional float value = 111972721;
      Returns:
      This builder for chaining.