Class ChannelData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>
com.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
io.grpc.channelz.v1.ChannelData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ChannelDataOrBuilder, Cloneable
Enclosing class:
ChannelData

public static final class ChannelData.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder> implements ChannelDataOrBuilder
 Channel data is data related to a specific Channel or Subchannel.
 
Protobuf type grpc.channelz.v1.ChannelData
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • 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<ChannelData.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

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

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

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

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

      private void buildPartial0(ChannelData result)
    • mergeFrom

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

      public ChannelData.Builder mergeFrom(ChannelData other)
    • isInitialized

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

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

      public boolean hasState()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
      Specified by:
      hasState in interface ChannelDataOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public ChannelConnectivityState getState()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
      Specified by:
      getState in interface ChannelDataOrBuilder
      Returns:
      The state.
    • setState

       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • setState

      public ChannelData.Builder setState(ChannelConnectivityState.Builder builderForValue)
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • mergeState

      public ChannelData.Builder mergeState(ChannelConnectivityState value)
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • clearState

      public ChannelData.Builder clearState()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • getStateBuilder

      public ChannelConnectivityState.Builder getStateBuilder()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • getStateOrBuilder

      public ChannelConnectivityStateOrBuilder getStateOrBuilder()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
      Specified by:
      getStateOrBuilder in interface ChannelDataOrBuilder
    • getStateFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder,ChannelConnectivityStateOrBuilder> getStateFieldBuilder()
       The connectivity state of the channel or subchannel.  Implementations
       should always set this.
       
      .grpc.channelz.v1.ChannelConnectivityState state = 1;
    • getTarget

      public String getTarget()
       The target this channel originally tried to connect to.  May be absent
       
      string target = 2;
      Specified by:
      getTarget in interface ChannelDataOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       The target this channel originally tried to connect to.  May be absent
       
      string target = 2;
      Specified by:
      getTargetBytes in interface ChannelDataOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public ChannelData.Builder setTarget(String value)
       The target this channel originally tried to connect to.  May be absent
       
      string target = 2;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public ChannelData.Builder clearTarget()
       The target this channel originally tried to connect to.  May be absent
       
      string target = 2;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public ChannelData.Builder setTargetBytes(com.google.protobuf.ByteString value)
       The target this channel originally tried to connect to.  May be absent
       
      string target = 2;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • hasTrace

      public boolean hasTrace()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
      Specified by:
      hasTrace in interface ChannelDataOrBuilder
      Returns:
      Whether the trace field is set.
    • getTrace

      public ChannelTrace getTrace()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
      Specified by:
      getTrace in interface ChannelDataOrBuilder
      Returns:
      The trace.
    • setTrace

      public ChannelData.Builder setTrace(ChannelTrace value)
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • setTrace

      public ChannelData.Builder setTrace(ChannelTrace.Builder builderForValue)
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • mergeTrace

      public ChannelData.Builder mergeTrace(ChannelTrace value)
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • clearTrace

      public ChannelData.Builder clearTrace()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • getTraceBuilder

      public ChannelTrace.Builder getTraceBuilder()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • getTraceOrBuilder

      public ChannelTraceOrBuilder getTraceOrBuilder()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
      Specified by:
      getTraceOrBuilder in interface ChannelDataOrBuilder
    • getTraceFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder,ChannelTraceOrBuilder> getTraceFieldBuilder()
       A trace of recent events on the channel.  May be absent.
       
      .grpc.channelz.v1.ChannelTrace trace = 3;
    • getCallsStarted

      public long getCallsStarted()
       The number of calls started on the channel
       
      int64 calls_started = 4;
      Specified by:
      getCallsStarted in interface ChannelDataOrBuilder
      Returns:
      The callsStarted.
    • setCallsStarted

      public ChannelData.Builder setCallsStarted(long value)
       The number of calls started on the channel
       
      int64 calls_started = 4;
      Parameters:
      value - The callsStarted to set.
      Returns:
      This builder for chaining.
    • clearCallsStarted

      public ChannelData.Builder clearCallsStarted()
       The number of calls started on the channel
       
      int64 calls_started = 4;
      Returns:
      This builder for chaining.
    • getCallsSucceeded

      public long getCallsSucceeded()
       The number of calls that have completed with an OK status
       
      int64 calls_succeeded = 5;
      Specified by:
      getCallsSucceeded in interface ChannelDataOrBuilder
      Returns:
      The callsSucceeded.
    • setCallsSucceeded

      public ChannelData.Builder setCallsSucceeded(long value)
       The number of calls that have completed with an OK status
       
      int64 calls_succeeded = 5;
      Parameters:
      value - The callsSucceeded to set.
      Returns:
      This builder for chaining.
    • clearCallsSucceeded

      public ChannelData.Builder clearCallsSucceeded()
       The number of calls that have completed with an OK status
       
      int64 calls_succeeded = 5;
      Returns:
      This builder for chaining.
    • getCallsFailed

      public long getCallsFailed()
       The number of calls that have completed with a non-OK status
       
      int64 calls_failed = 6;
      Specified by:
      getCallsFailed in interface ChannelDataOrBuilder
      Returns:
      The callsFailed.
    • setCallsFailed

      public ChannelData.Builder setCallsFailed(long value)
       The number of calls that have completed with a non-OK status
       
      int64 calls_failed = 6;
      Parameters:
      value - The callsFailed to set.
      Returns:
      This builder for chaining.
    • clearCallsFailed

      public ChannelData.Builder clearCallsFailed()
       The number of calls that have completed with a non-OK status
       
      int64 calls_failed = 6;
      Returns:
      This builder for chaining.
    • hasLastCallStartedTimestamp

      public boolean hasLastCallStartedTimestamp()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
      Specified by:
      hasLastCallStartedTimestamp in interface ChannelDataOrBuilder
      Returns:
      Whether the lastCallStartedTimestamp field is set.
    • getLastCallStartedTimestamp

      public com.google.protobuf.Timestamp getLastCallStartedTimestamp()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
      Specified by:
      getLastCallStartedTimestamp in interface ChannelDataOrBuilder
      Returns:
      The lastCallStartedTimestamp.
    • setLastCallStartedTimestamp

      public ChannelData.Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp value)
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
    • setLastCallStartedTimestamp

      public ChannelData.Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
    • mergeLastCallStartedTimestamp

      public ChannelData.Builder mergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value)
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
    • clearLastCallStartedTimestamp

      public ChannelData.Builder clearLastCallStartedTimestamp()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
    • getLastCallStartedTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getLastCallStartedTimestampBuilder()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
    • getLastCallStartedTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;
      Specified by:
      getLastCallStartedTimestampOrBuilder in interface ChannelDataOrBuilder
    • getLastCallStartedTimestampFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> getLastCallStartedTimestampFieldBuilder()
       The last time a call was started on the channel.
       
      .google.protobuf.Timestamp last_call_started_timestamp = 7;