Class ChannelConnectivityState.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ChannelConnectivityStateOrBuilder, java.lang.Cloneable
    Enclosing class:
    ChannelConnectivityState

    public static final class ChannelConnectivityState.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ChannelConnectivityState.Builder>
    implements ChannelConnectivityStateOrBuilder
     These come from the specified states in this document:
     https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md
     
    Protobuf type grpc.channelz.v1.ChannelConnectivityState
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitField0_  
      private int state_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Builder()  
      private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)  
    • Field Detail

      • bitField0_

        private int bitField0_
      • state_

        private int state_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

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

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

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

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

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

        public ChannelConnectivityState.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws java.io.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<ChannelConnectivityState.Builder>
        Throws:
        java.io.IOException
      • getStateValue

        public int getStateValue()
        .grpc.channelz.v1.ChannelConnectivityState.State state = 1;
        Specified by:
        getStateValue in interface ChannelConnectivityStateOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public ChannelConnectivityState.Builder setStateValue​(int value)
        .grpc.channelz.v1.ChannelConnectivityState.State state = 1;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • clearState

        public ChannelConnectivityState.Builder clearState()
        .grpc.channelz.v1.ChannelConnectivityState.State state = 1;
        Returns:
        This builder for chaining.