Class Spoke.StateReason.Builder

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

public static final class Spoke.StateReason.Builder extends com.google.protobuf.GeneratedMessage.Builder<Spoke.StateReason.Builder> implements Spoke.StateReasonOrBuilder
 The reason for the current state of the spoke.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Spoke.StateReason
  • 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<Spoke.StateReason.Builder>
    • clear

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

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

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

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

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

      public Spoke.StateReason.Builder mergeFrom(Spoke.StateReason other)
    • isInitialized

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

      public Spoke.StateReason.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<Spoke.StateReason.Builder>
      Throws:
      IOException
    • getCodeValue

      public int getCodeValue()
       The code associated with this reason.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code code = 1;
      Specified by:
      getCodeValue in interface Spoke.StateReasonOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public Spoke.StateReason.Builder setCodeValue(int value)
       The code associated with this reason.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code code = 1;
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public Spoke.StateReason.Code getCode()
       The code associated with this reason.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code code = 1;
      Specified by:
      getCode in interface Spoke.StateReasonOrBuilder
      Returns:
      The code.
    • setCode

       The code associated with this reason.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public Spoke.StateReason.Builder clearCode()
       The code associated with this reason.
       
      .google.cloud.networkconnectivity.v1beta.Spoke.StateReason.Code code = 1;
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       Human-readable details about this reason.
       
      string message = 2;
      Specified by:
      getMessage in interface Spoke.StateReasonOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Human-readable details about this reason.
       
      string message = 2;
      Specified by:
      getMessageBytes in interface Spoke.StateReasonOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public Spoke.StateReason.Builder setMessage(String value)
       Human-readable details about this reason.
       
      string message = 2;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public Spoke.StateReason.Builder clearMessage()
       Human-readable details about this reason.
       
      string message = 2;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public Spoke.StateReason.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Human-readable details about this reason.
       
      string message = 2;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getUserDetails

      public String getUserDetails()
       Additional information provided by the user in the RejectSpoke call.
       
      string user_details = 3;
      Specified by:
      getUserDetails in interface Spoke.StateReasonOrBuilder
      Returns:
      The userDetails.
    • getUserDetailsBytes

      public com.google.protobuf.ByteString getUserDetailsBytes()
       Additional information provided by the user in the RejectSpoke call.
       
      string user_details = 3;
      Specified by:
      getUserDetailsBytes in interface Spoke.StateReasonOrBuilder
      Returns:
      The bytes for userDetails.
    • setUserDetails

      public Spoke.StateReason.Builder setUserDetails(String value)
       Additional information provided by the user in the RejectSpoke call.
       
      string user_details = 3;
      Parameters:
      value - The userDetails to set.
      Returns:
      This builder for chaining.
    • clearUserDetails

      public Spoke.StateReason.Builder clearUserDetails()
       Additional information provided by the user in the RejectSpoke call.
       
      string user_details = 3;
      Returns:
      This builder for chaining.
    • setUserDetailsBytes

      public Spoke.StateReason.Builder setUserDetailsBytes(com.google.protobuf.ByteString value)
       Additional information provided by the user in the RejectSpoke call.
       
      string user_details = 3;
      Parameters:
      value - The bytes for userDetails to set.
      Returns:
      This builder for chaining.