All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shade.polaris.io.grpc.channelz.v1.ChannelData Maven / Gradle / Ivy

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/channelz/v1/channelz.proto

package io.grpc.channelz.v1;

/**
 * 
 * Channel data is data related to a specific Channel or Subchannel.
 * 
* * Protobuf type {@code grpc.channelz.v1.ChannelData} */ public final class ChannelData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.ChannelData) ChannelDataOrBuilder { private static final long serialVersionUID = 0L; // Use ChannelData.newBuilder() to construct. private ChannelData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChannelData() { target_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChannelData(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.ChannelData.class, io.grpc.channelz.v1.ChannelData.Builder.class); } private int bitField0_; public static final int STATE_FIELD_NUMBER = 1; private io.grpc.channelz.v1.ChannelConnectivityState state_; /** *
   * The connectivity state of the channel or subchannel.  Implementations
   * should always set this.
   * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The connectivity state of the channel or subchannel.  Implementations
   * should always set this.
   * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; * @return The state. */ @java.lang.Override public io.grpc.channelz.v1.ChannelConnectivityState getState() { return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; } /** *
   * The connectivity state of the channel or subchannel.  Implementations
   * should always set this.
   * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ @java.lang.Override public io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder getStateOrBuilder() { return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; } public static final int TARGET_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** *
   * The target this channel originally tried to connect to.  May be absent
   * 
* * string target = 2; * @return The target. */ @java.lang.Override public java.lang.String getTarget() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** *
   * The target this channel originally tried to connect to.  May be absent
   * 
* * string target = 2; * @return The bytes for target. */ @java.lang.Override public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRACE_FIELD_NUMBER = 3; private io.grpc.channelz.v1.ChannelTrace trace_; /** *
   * A trace of recent events on the channel.  May be absent.
   * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; * @return Whether the trace field is set. */ @java.lang.Override public boolean hasTrace() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * A trace of recent events on the channel.  May be absent.
   * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; * @return The trace. */ @java.lang.Override public io.grpc.channelz.v1.ChannelTrace getTrace() { return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; } /** *
   * A trace of recent events on the channel.  May be absent.
   * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ @java.lang.Override public io.grpc.channelz.v1.ChannelTraceOrBuilder getTraceOrBuilder() { return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; } public static final int CALLS_STARTED_FIELD_NUMBER = 4; private long callsStarted_ = 0L; /** *
   * The number of calls started on the channel
   * 
* * int64 calls_started = 4; * @return The callsStarted. */ @java.lang.Override public long getCallsStarted() { return callsStarted_; } public static final int CALLS_SUCCEEDED_FIELD_NUMBER = 5; private long callsSucceeded_ = 0L; /** *
   * The number of calls that have completed with an OK status
   * 
* * int64 calls_succeeded = 5; * @return The callsSucceeded. */ @java.lang.Override public long getCallsSucceeded() { return callsSucceeded_; } public static final int CALLS_FAILED_FIELD_NUMBER = 6; private long callsFailed_ = 0L; /** *
   * The number of calls that have completed with a non-OK status
   * 
* * int64 calls_failed = 6; * @return The callsFailed. */ @java.lang.Override public long getCallsFailed() { return callsFailed_; } public static final int LAST_CALL_STARTED_TIMESTAMP_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastCallStartedTimestamp_; /** *
   * The last time a call was started on the channel.
   * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; * @return Whether the lastCallStartedTimestamp field is set. */ @java.lang.Override public boolean hasLastCallStartedTimestamp() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The last time a call was started on the channel.
   * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; * @return The lastCallStartedTimestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getLastCallStartedTimestamp() { return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; } /** *
   * The last time a call was started on the channel.
   * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder() { return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTrace()); } if (callsStarted_ != 0L) { output.writeInt64(4, callsStarted_); } if (callsSucceeded_ != 0L) { output.writeInt64(5, callsSucceeded_); } if (callsFailed_ != 0L) { output.writeInt64(6, callsFailed_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getLastCallStartedTimestamp()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTrace()); } if (callsStarted_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, callsStarted_); } if (callsSucceeded_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, callsSucceeded_); } if (callsFailed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, callsFailed_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLastCallStartedTimestamp()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grpc.channelz.v1.ChannelData)) { return super.equals(obj); } io.grpc.channelz.v1.ChannelData other = (io.grpc.channelz.v1.ChannelData) obj; if (hasState() != other.hasState()) return false; if (hasState()) { if (!getState() .equals(other.getState())) return false; } if (!getTarget() .equals(other.getTarget())) return false; if (hasTrace() != other.hasTrace()) return false; if (hasTrace()) { if (!getTrace() .equals(other.getTrace())) return false; } if (getCallsStarted() != other.getCallsStarted()) return false; if (getCallsSucceeded() != other.getCallsSucceeded()) return false; if (getCallsFailed() != other.getCallsFailed()) return false; if (hasLastCallStartedTimestamp() != other.hasLastCallStartedTimestamp()) return false; if (hasLastCallStartedTimestamp()) { if (!getLastCallStartedTimestamp() .equals(other.getLastCallStartedTimestamp())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); if (hasTrace()) { hash = (37 * hash) + TRACE_FIELD_NUMBER; hash = (53 * hash) + getTrace().hashCode(); } hash = (37 * hash) + CALLS_STARTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallsStarted()); hash = (37 * hash) + CALLS_SUCCEEDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallsSucceeded()); hash = (37 * hash) + CALLS_FAILED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallsFailed()); if (hasLastCallStartedTimestamp()) { hash = (37 * hash) + LAST_CALL_STARTED_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getLastCallStartedTimestamp().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.ChannelData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.ChannelData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.ChannelData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.ChannelData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.ChannelData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.ChannelData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.ChannelData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.ChannelData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.channelz.v1.ChannelData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.ChannelData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.grpc.channelz.v1.ChannelData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.ChannelData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.grpc.channelz.v1.ChannelData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Channel data is data related to a specific Channel or Subchannel.
   * 
* * Protobuf type {@code grpc.channelz.v1.ChannelData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.ChannelData) io.grpc.channelz.v1.ChannelDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.ChannelData.class, io.grpc.channelz.v1.ChannelData.Builder.class); } // Construct using io.grpc.channelz.v1.ChannelData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStateFieldBuilder(); getTraceFieldBuilder(); getLastCallStartedTimestampFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); stateBuilder_ = null; } target_ = ""; trace_ = null; if (traceBuilder_ != null) { traceBuilder_.dispose(); traceBuilder_ = null; } callsStarted_ = 0L; callsSucceeded_ = 0L; callsFailed_ = 0L; lastCallStartedTimestamp_ = null; if (lastCallStartedTimestampBuilder_ != null) { lastCallStartedTimestampBuilder_.dispose(); lastCallStartedTimestampBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_ChannelData_descriptor; } @java.lang.Override public io.grpc.channelz.v1.ChannelData getDefaultInstanceForType() { return io.grpc.channelz.v1.ChannelData.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.ChannelData build() { io.grpc.channelz.v1.ChannelData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.ChannelData buildPartial() { io.grpc.channelz.v1.ChannelData result = new io.grpc.channelz.v1.ChannelData(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.ChannelData result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.target_ = target_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.trace_ = traceBuilder_ == null ? trace_ : traceBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.callsStarted_ = callsStarted_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.callsSucceeded_ = callsSucceeded_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.callsFailed_ = callsFailed_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.lastCallStartedTimestamp_ = lastCallStartedTimestampBuilder_ == null ? lastCallStartedTimestamp_ : lastCallStartedTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.channelz.v1.ChannelData) { return mergeFrom((io.grpc.channelz.v1.ChannelData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.ChannelData other) { if (other == io.grpc.channelz.v1.ChannelData.getDefaultInstance()) return this; if (other.hasState()) { mergeState(other.getState()); } if (!other.getTarget().isEmpty()) { target_ = other.target_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasTrace()) { mergeTrace(other.getTrace()); } if (other.getCallsStarted() != 0L) { setCallsStarted(other.getCallsStarted()); } if (other.getCallsSucceeded() != 0L) { setCallsSucceeded(other.getCallsSucceeded()); } if (other.getCallsFailed() != 0L) { setCallsFailed(other.getCallsFailed()); } if (other.hasLastCallStartedTimestamp()) { mergeLastCallStartedTimestamp(other.getLastCallStartedTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { target_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTraceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { callsStarted_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { callsSucceeded_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { callsFailed_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getLastCallStartedTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private io.grpc.channelz.v1.ChannelConnectivityState state_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder> stateBuilder_; /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; * @return Whether the state field is set. */ public boolean hasState() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; * @return The state. */ public io.grpc.channelz.v1.ChannelConnectivityState getState() { if (stateBuilder_ == null) { return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public Builder setState(io.grpc.channelz.v1.ChannelConnectivityState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } state_ = value; } else { stateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public Builder setState( io.grpc.channelz.v1.ChannelConnectivityState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public Builder mergeState(io.grpc.channelz.v1.ChannelConnectivityState value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && state_ != null && state_ != io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance()) { getStateBuilder().mergeFrom(value); } else { state_ = value; } } else { stateBuilder_.mergeFrom(value); } if (state_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000001); state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); stateBuilder_ = null; } onChanged(); return this; } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public io.grpc.channelz.v1.ChannelConnectivityState.Builder getStateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStateFieldBuilder().getBuilder(); } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ public io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_ == null ? io.grpc.channelz.v1.ChannelConnectivityState.getDefaultInstance() : state_; } } /** *
     * The connectivity state of the channel or subchannel.  Implementations
     * should always set this.
     * 
* * .grpc.channelz.v1.ChannelConnectivityState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelConnectivityState, io.grpc.channelz.v1.ChannelConnectivityState.Builder, io.grpc.channelz.v1.ChannelConnectivityStateOrBuilder>( getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private java.lang.Object target_ = ""; /** *
     * The target this channel originally tried to connect to.  May be absent
     * 
* * string target = 2; * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The target this channel originally tried to connect to.  May be absent
     * 
* * string target = 2; * @return The bytes for target. */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The target this channel originally tried to connect to.  May be absent
     * 
* * string target = 2; * @param value The target to set. * @return This builder for chaining. */ public Builder setTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The target this channel originally tried to connect to.  May be absent
     * 
* * string target = 2; * @return This builder for chaining. */ public Builder clearTarget() { target_ = getDefaultInstance().getTarget(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The target this channel originally tried to connect to.  May be absent
     * 
* * string target = 2; * @param value The bytes for target to set. * @return This builder for chaining. */ public Builder setTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private io.grpc.channelz.v1.ChannelTrace trace_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder> traceBuilder_; /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; * @return Whether the trace field is set. */ public boolean hasTrace() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; * @return The trace. */ public io.grpc.channelz.v1.ChannelTrace getTrace() { if (traceBuilder_ == null) { return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; } else { return traceBuilder_.getMessage(); } } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public Builder setTrace(io.grpc.channelz.v1.ChannelTrace value) { if (traceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trace_ = value; } else { traceBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public Builder setTrace( io.grpc.channelz.v1.ChannelTrace.Builder builderForValue) { if (traceBuilder_ == null) { trace_ = builderForValue.build(); } else { traceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public Builder mergeTrace(io.grpc.channelz.v1.ChannelTrace value) { if (traceBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && trace_ != null && trace_ != io.grpc.channelz.v1.ChannelTrace.getDefaultInstance()) { getTraceBuilder().mergeFrom(value); } else { trace_ = value; } } else { traceBuilder_.mergeFrom(value); } if (trace_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public Builder clearTrace() { bitField0_ = (bitField0_ & ~0x00000004); trace_ = null; if (traceBuilder_ != null) { traceBuilder_.dispose(); traceBuilder_ = null; } onChanged(); return this; } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public io.grpc.channelz.v1.ChannelTrace.Builder getTraceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTraceFieldBuilder().getBuilder(); } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ public io.grpc.channelz.v1.ChannelTraceOrBuilder getTraceOrBuilder() { if (traceBuilder_ != null) { return traceBuilder_.getMessageOrBuilder(); } else { return trace_ == null ? io.grpc.channelz.v1.ChannelTrace.getDefaultInstance() : trace_; } } /** *
     * A trace of recent events on the channel.  May be absent.
     * 
* * .grpc.channelz.v1.ChannelTrace trace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder> getTraceFieldBuilder() { if (traceBuilder_ == null) { traceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ChannelTrace, io.grpc.channelz.v1.ChannelTrace.Builder, io.grpc.channelz.v1.ChannelTraceOrBuilder>( getTrace(), getParentForChildren(), isClean()); trace_ = null; } return traceBuilder_; } private long callsStarted_ ; /** *
     * The number of calls started on the channel
     * 
* * int64 calls_started = 4; * @return The callsStarted. */ @java.lang.Override public long getCallsStarted() { return callsStarted_; } /** *
     * The number of calls started on the channel
     * 
* * int64 calls_started = 4; * @param value The callsStarted to set. * @return This builder for chaining. */ public Builder setCallsStarted(long value) { callsStarted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The number of calls started on the channel
     * 
* * int64 calls_started = 4; * @return This builder for chaining. */ public Builder clearCallsStarted() { bitField0_ = (bitField0_ & ~0x00000008); callsStarted_ = 0L; onChanged(); return this; } private long callsSucceeded_ ; /** *
     * The number of calls that have completed with an OK status
     * 
* * int64 calls_succeeded = 5; * @return The callsSucceeded. */ @java.lang.Override public long getCallsSucceeded() { return callsSucceeded_; } /** *
     * The number of calls that have completed with an OK status
     * 
* * int64 calls_succeeded = 5; * @param value The callsSucceeded to set. * @return This builder for chaining. */ public Builder setCallsSucceeded(long value) { callsSucceeded_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The number of calls that have completed with an OK status
     * 
* * int64 calls_succeeded = 5; * @return This builder for chaining. */ public Builder clearCallsSucceeded() { bitField0_ = (bitField0_ & ~0x00000010); callsSucceeded_ = 0L; onChanged(); return this; } private long callsFailed_ ; /** *
     * The number of calls that have completed with a non-OK status
     * 
* * int64 calls_failed = 6; * @return The callsFailed. */ @java.lang.Override public long getCallsFailed() { return callsFailed_; } /** *
     * The number of calls that have completed with a non-OK status
     * 
* * int64 calls_failed = 6; * @param value The callsFailed to set. * @return This builder for chaining. */ public Builder setCallsFailed(long value) { callsFailed_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The number of calls that have completed with a non-OK status
     * 
* * int64 calls_failed = 6; * @return This builder for chaining. */ public Builder clearCallsFailed() { bitField0_ = (bitField0_ & ~0x00000020); callsFailed_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp lastCallStartedTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastCallStartedTimestampBuilder_; /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; * @return Whether the lastCallStartedTimestamp field is set. */ public boolean hasLastCallStartedTimestamp() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; * @return The lastCallStartedTimestamp. */ public com.google.protobuf.Timestamp getLastCallStartedTimestamp() { if (lastCallStartedTimestampBuilder_ == null) { return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; } else { return lastCallStartedTimestampBuilder_.getMessage(); } } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp value) { if (lastCallStartedTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastCallStartedTimestamp_ = value; } else { lastCallStartedTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public Builder setLastCallStartedTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastCallStartedTimestampBuilder_ == null) { lastCallStartedTimestamp_ = builderForValue.build(); } else { lastCallStartedTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public Builder mergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value) { if (lastCallStartedTimestampBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && lastCallStartedTimestamp_ != null && lastCallStartedTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastCallStartedTimestampBuilder().mergeFrom(value); } else { lastCallStartedTimestamp_ = value; } } else { lastCallStartedTimestampBuilder_.mergeFrom(value); } if (lastCallStartedTimestamp_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public Builder clearLastCallStartedTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); lastCallStartedTimestamp_ = null; if (lastCallStartedTimestampBuilder_ != null) { lastCallStartedTimestampBuilder_.dispose(); lastCallStartedTimestampBuilder_ = null; } onChanged(); return this; } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public com.google.protobuf.Timestamp.Builder getLastCallStartedTimestampBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLastCallStartedTimestampFieldBuilder().getBuilder(); } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder() { if (lastCallStartedTimestampBuilder_ != null) { return lastCallStartedTimestampBuilder_.getMessageOrBuilder(); } else { return lastCallStartedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastCallStartedTimestamp_; } } /** *
     * The last time a call was started on the channel.
     * 
* * .google.protobuf.Timestamp last_call_started_timestamp = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastCallStartedTimestampFieldBuilder() { if (lastCallStartedTimestampBuilder_ == null) { lastCallStartedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastCallStartedTimestamp(), getParentForChildren(), isClean()); lastCallStartedTimestamp_ = null; } return lastCallStartedTimestampBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:grpc.channelz.v1.ChannelData) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.ChannelData) private static final io.grpc.channelz.v1.ChannelData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.ChannelData(); } public static io.grpc.channelz.v1.ChannelData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChannelData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.grpc.channelz.v1.ChannelData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy