| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: grpc/channelz/v1/channelz.proto |
| |
| package io.grpc.channelz.v1; |
| |
| /** |
| * <pre> |
| * SocketData is data associated for a specific Socket. The fields present |
| * are specific to the implementation, so there may be minor differences in |
| * the semantics. (e.g. flow control windows) |
| * </pre> |
| * |
| * Protobuf type {@code grpc.channelz.v1.SocketData} |
| */ |
| public final class SocketData extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:grpc.channelz.v1.SocketData) |
| SocketDataOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use SocketData.newBuilder() to construct. |
| private SocketData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private SocketData() { |
| streamsStarted_ = 0L; |
| streamsSucceeded_ = 0L; |
| streamsFailed_ = 0L; |
| messagesSent_ = 0L; |
| messagesReceived_ = 0L; |
| keepAlivesSent_ = 0L; |
| option_ = java.util.Collections.emptyList(); |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private SocketData( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| this(); |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| int mutable_bitField0_ = 0; |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder(); |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| default: { |
| if (!parseUnknownFieldProto3( |
| input, unknownFields, extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| |
| streamsStarted_ = input.readInt64(); |
| break; |
| } |
| case 16: { |
| |
| streamsSucceeded_ = input.readInt64(); |
| break; |
| } |
| case 24: { |
| |
| streamsFailed_ = input.readInt64(); |
| break; |
| } |
| case 32: { |
| |
| messagesSent_ = input.readInt64(); |
| break; |
| } |
| case 40: { |
| |
| messagesReceived_ = input.readInt64(); |
| break; |
| } |
| case 48: { |
| |
| keepAlivesSent_ = input.readInt64(); |
| break; |
| } |
| case 58: { |
| com.google.protobuf.Timestamp.Builder subBuilder = null; |
| if (lastLocalStreamCreatedTimestamp_ != null) { |
| subBuilder = lastLocalStreamCreatedTimestamp_.toBuilder(); |
| } |
| lastLocalStreamCreatedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(lastLocalStreamCreatedTimestamp_); |
| lastLocalStreamCreatedTimestamp_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 66: { |
| com.google.protobuf.Timestamp.Builder subBuilder = null; |
| if (lastRemoteStreamCreatedTimestamp_ != null) { |
| subBuilder = lastRemoteStreamCreatedTimestamp_.toBuilder(); |
| } |
| lastRemoteStreamCreatedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(lastRemoteStreamCreatedTimestamp_); |
| lastRemoteStreamCreatedTimestamp_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 74: { |
| com.google.protobuf.Timestamp.Builder subBuilder = null; |
| if (lastMessageSentTimestamp_ != null) { |
| subBuilder = lastMessageSentTimestamp_.toBuilder(); |
| } |
| lastMessageSentTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(lastMessageSentTimestamp_); |
| lastMessageSentTimestamp_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 82: { |
| com.google.protobuf.Timestamp.Builder subBuilder = null; |
| if (lastMessageReceivedTimestamp_ != null) { |
| subBuilder = lastMessageReceivedTimestamp_.toBuilder(); |
| } |
| lastMessageReceivedTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(lastMessageReceivedTimestamp_); |
| lastMessageReceivedTimestamp_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 90: { |
| com.google.protobuf.Int64Value.Builder subBuilder = null; |
| if (localFlowControlWindow_ != null) { |
| subBuilder = localFlowControlWindow_.toBuilder(); |
| } |
| localFlowControlWindow_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(localFlowControlWindow_); |
| localFlowControlWindow_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 98: { |
| com.google.protobuf.Int64Value.Builder subBuilder = null; |
| if (remoteFlowControlWindow_ != null) { |
| subBuilder = remoteFlowControlWindow_.toBuilder(); |
| } |
| remoteFlowControlWindow_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(remoteFlowControlWindow_); |
| remoteFlowControlWindow_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| case 106: { |
| if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { |
| option_ = new java.util.ArrayList<io.grpc.channelz.v1.SocketOption>(); |
| mutable_bitField0_ |= 0x00001000; |
| } |
| option_.add( |
| input.readMessage(io.grpc.channelz.v1.SocketOption.parser(), extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { |
| option_ = java.util.Collections.unmodifiableList(option_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_SocketData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_SocketData_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.channelz.v1.SocketData.class, io.grpc.channelz.v1.SocketData.Builder.class); |
| } |
| |
| private int bitField0_; |
| public static final int STREAMS_STARTED_FIELD_NUMBER = 1; |
| private long streamsStarted_; |
| /** |
| * <pre> |
| * The number of streams that have been started. |
| * </pre> |
| * |
| * <code>int64 streams_started = 1;</code> |
| */ |
| public long getStreamsStarted() { |
| return streamsStarted_; |
| } |
| |
| public static final int STREAMS_SUCCEEDED_FIELD_NUMBER = 2; |
| private long streamsSucceeded_; |
| /** |
| * <pre> |
| * The number of streams that have ended successfully: |
| * On client side, received frame with eos bit set; |
| * On server side, sent frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_succeeded = 2;</code> |
| */ |
| public long getStreamsSucceeded() { |
| return streamsSucceeded_; |
| } |
| |
| public static final int STREAMS_FAILED_FIELD_NUMBER = 3; |
| private long streamsFailed_; |
| /** |
| * <pre> |
| * The number of streams that have ended unsuccessfully: |
| * On client side, ended without receiving frame with eos bit set; |
| * On server side, ended without sending frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_failed = 3;</code> |
| */ |
| public long getStreamsFailed() { |
| return streamsFailed_; |
| } |
| |
| public static final int MESSAGES_SENT_FIELD_NUMBER = 4; |
| private long messagesSent_; |
| /** |
| * <pre> |
| * The number of grpc messages successfully sent on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_sent = 4;</code> |
| */ |
| public long getMessagesSent() { |
| return messagesSent_; |
| } |
| |
| public static final int MESSAGES_RECEIVED_FIELD_NUMBER = 5; |
| private long messagesReceived_; |
| /** |
| * <pre> |
| * The number of grpc messages received on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_received = 5;</code> |
| */ |
| public long getMessagesReceived() { |
| return messagesReceived_; |
| } |
| |
| public static final int KEEP_ALIVES_SENT_FIELD_NUMBER = 6; |
| private long keepAlivesSent_; |
| /** |
| * <pre> |
| * The number of keep alives sent. This is typically implemented with HTTP/2 |
| * ping messages. |
| * </pre> |
| * |
| * <code>int64 keep_alives_sent = 6;</code> |
| */ |
| public long getKeepAlivesSent() { |
| return keepAlivesSent_; |
| } |
| |
| public static final int LAST_LOCAL_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER = 7; |
| private com.google.protobuf.Timestamp lastLocalStreamCreatedTimestamp_; |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public boolean hasLastLocalStreamCreatedTimestamp() { |
| return lastLocalStreamCreatedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastLocalStreamCreatedTimestamp() { |
| return lastLocalStreamCreatedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastLocalStreamCreatedTimestamp_; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastLocalStreamCreatedTimestampOrBuilder() { |
| return getLastLocalStreamCreatedTimestamp(); |
| } |
| |
| public static final int LAST_REMOTE_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER = 8; |
| private com.google.protobuf.Timestamp lastRemoteStreamCreatedTimestamp_; |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public boolean hasLastRemoteStreamCreatedTimestamp() { |
| return lastRemoteStreamCreatedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastRemoteStreamCreatedTimestamp() { |
| return lastRemoteStreamCreatedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRemoteStreamCreatedTimestamp_; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastRemoteStreamCreatedTimestampOrBuilder() { |
| return getLastRemoteStreamCreatedTimestamp(); |
| } |
| |
| public static final int LAST_MESSAGE_SENT_TIMESTAMP_FIELD_NUMBER = 9; |
| private com.google.protobuf.Timestamp lastMessageSentTimestamp_; |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public boolean hasLastMessageSentTimestamp() { |
| return lastMessageSentTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastMessageSentTimestamp() { |
| return lastMessageSentTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageSentTimestamp_; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastMessageSentTimestampOrBuilder() { |
| return getLastMessageSentTimestamp(); |
| } |
| |
| public static final int LAST_MESSAGE_RECEIVED_TIMESTAMP_FIELD_NUMBER = 10; |
| private com.google.protobuf.Timestamp lastMessageReceivedTimestamp_; |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public boolean hasLastMessageReceivedTimestamp() { |
| return lastMessageReceivedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastMessageReceivedTimestamp() { |
| return lastMessageReceivedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageReceivedTimestamp_; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastMessageReceivedTimestampOrBuilder() { |
| return getLastMessageReceivedTimestamp(); |
| } |
| |
| public static final int LOCAL_FLOW_CONTROL_WINDOW_FIELD_NUMBER = 11; |
| private com.google.protobuf.Int64Value localFlowControlWindow_; |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public boolean hasLocalFlowControlWindow() { |
| return localFlowControlWindow_ != null; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public com.google.protobuf.Int64Value getLocalFlowControlWindow() { |
| return localFlowControlWindow_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : localFlowControlWindow_; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public com.google.protobuf.Int64ValueOrBuilder getLocalFlowControlWindowOrBuilder() { |
| return getLocalFlowControlWindow(); |
| } |
| |
| public static final int REMOTE_FLOW_CONTROL_WINDOW_FIELD_NUMBER = 12; |
| private com.google.protobuf.Int64Value remoteFlowControlWindow_; |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public boolean hasRemoteFlowControlWindow() { |
| return remoteFlowControlWindow_ != null; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public com.google.protobuf.Int64Value getRemoteFlowControlWindow() { |
| return remoteFlowControlWindow_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : remoteFlowControlWindow_; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public com.google.protobuf.Int64ValueOrBuilder getRemoteFlowControlWindowOrBuilder() { |
| return getRemoteFlowControlWindow(); |
| } |
| |
| public static final int OPTION_FIELD_NUMBER = 13; |
| private java.util.List<io.grpc.channelz.v1.SocketOption> option_; |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public java.util.List<io.grpc.channelz.v1.SocketOption> getOptionList() { |
| return option_; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public java.util.List<? extends io.grpc.channelz.v1.SocketOptionOrBuilder> |
| getOptionOrBuilderList() { |
| return option_; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public int getOptionCount() { |
| return option_.size(); |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOption getOption(int index) { |
| return option_.get(index); |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOptionOrBuilder getOptionOrBuilder( |
| int index) { |
| return option_.get(index); |
| } |
| |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized == 1) return true; |
| if (isInitialized == 0) return false; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| if (streamsStarted_ != 0L) { |
| output.writeInt64(1, streamsStarted_); |
| } |
| if (streamsSucceeded_ != 0L) { |
| output.writeInt64(2, streamsSucceeded_); |
| } |
| if (streamsFailed_ != 0L) { |
| output.writeInt64(3, streamsFailed_); |
| } |
| if (messagesSent_ != 0L) { |
| output.writeInt64(4, messagesSent_); |
| } |
| if (messagesReceived_ != 0L) { |
| output.writeInt64(5, messagesReceived_); |
| } |
| if (keepAlivesSent_ != 0L) { |
| output.writeInt64(6, keepAlivesSent_); |
| } |
| if (lastLocalStreamCreatedTimestamp_ != null) { |
| output.writeMessage(7, getLastLocalStreamCreatedTimestamp()); |
| } |
| if (lastRemoteStreamCreatedTimestamp_ != null) { |
| output.writeMessage(8, getLastRemoteStreamCreatedTimestamp()); |
| } |
| if (lastMessageSentTimestamp_ != null) { |
| output.writeMessage(9, getLastMessageSentTimestamp()); |
| } |
| if (lastMessageReceivedTimestamp_ != null) { |
| output.writeMessage(10, getLastMessageReceivedTimestamp()); |
| } |
| if (localFlowControlWindow_ != null) { |
| output.writeMessage(11, getLocalFlowControlWindow()); |
| } |
| if (remoteFlowControlWindow_ != null) { |
| output.writeMessage(12, getRemoteFlowControlWindow()); |
| } |
| for (int i = 0; i < option_.size(); i++) { |
| output.writeMessage(13, option_.get(i)); |
| } |
| unknownFields.writeTo(output); |
| } |
| |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (streamsStarted_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(1, streamsStarted_); |
| } |
| if (streamsSucceeded_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(2, streamsSucceeded_); |
| } |
| if (streamsFailed_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(3, streamsFailed_); |
| } |
| if (messagesSent_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(4, messagesSent_); |
| } |
| if (messagesReceived_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(5, messagesReceived_); |
| } |
| if (keepAlivesSent_ != 0L) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(6, keepAlivesSent_); |
| } |
| if (lastLocalStreamCreatedTimestamp_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(7, getLastLocalStreamCreatedTimestamp()); |
| } |
| if (lastRemoteStreamCreatedTimestamp_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(8, getLastRemoteStreamCreatedTimestamp()); |
| } |
| if (lastMessageSentTimestamp_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(9, getLastMessageSentTimestamp()); |
| } |
| if (lastMessageReceivedTimestamp_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(10, getLastMessageReceivedTimestamp()); |
| } |
| if (localFlowControlWindow_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(11, getLocalFlowControlWindow()); |
| } |
| if (remoteFlowControlWindow_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(12, getRemoteFlowControlWindow()); |
| } |
| for (int i = 0; i < option_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(13, option_.get(i)); |
| } |
| size += unknownFields.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.SocketData)) { |
| return super.equals(obj); |
| } |
| io.grpc.channelz.v1.SocketData other = (io.grpc.channelz.v1.SocketData) obj; |
| |
| boolean result = true; |
| result = result && (getStreamsStarted() |
| == other.getStreamsStarted()); |
| result = result && (getStreamsSucceeded() |
| == other.getStreamsSucceeded()); |
| result = result && (getStreamsFailed() |
| == other.getStreamsFailed()); |
| result = result && (getMessagesSent() |
| == other.getMessagesSent()); |
| result = result && (getMessagesReceived() |
| == other.getMessagesReceived()); |
| result = result && (getKeepAlivesSent() |
| == other.getKeepAlivesSent()); |
| result = result && (hasLastLocalStreamCreatedTimestamp() == other.hasLastLocalStreamCreatedTimestamp()); |
| if (hasLastLocalStreamCreatedTimestamp()) { |
| result = result && getLastLocalStreamCreatedTimestamp() |
| .equals(other.getLastLocalStreamCreatedTimestamp()); |
| } |
| result = result && (hasLastRemoteStreamCreatedTimestamp() == other.hasLastRemoteStreamCreatedTimestamp()); |
| if (hasLastRemoteStreamCreatedTimestamp()) { |
| result = result && getLastRemoteStreamCreatedTimestamp() |
| .equals(other.getLastRemoteStreamCreatedTimestamp()); |
| } |
| result = result && (hasLastMessageSentTimestamp() == other.hasLastMessageSentTimestamp()); |
| if (hasLastMessageSentTimestamp()) { |
| result = result && getLastMessageSentTimestamp() |
| .equals(other.getLastMessageSentTimestamp()); |
| } |
| result = result && (hasLastMessageReceivedTimestamp() == other.hasLastMessageReceivedTimestamp()); |
| if (hasLastMessageReceivedTimestamp()) { |
| result = result && getLastMessageReceivedTimestamp() |
| .equals(other.getLastMessageReceivedTimestamp()); |
| } |
| result = result && (hasLocalFlowControlWindow() == other.hasLocalFlowControlWindow()); |
| if (hasLocalFlowControlWindow()) { |
| result = result && getLocalFlowControlWindow() |
| .equals(other.getLocalFlowControlWindow()); |
| } |
| result = result && (hasRemoteFlowControlWindow() == other.hasRemoteFlowControlWindow()); |
| if (hasRemoteFlowControlWindow()) { |
| result = result && getRemoteFlowControlWindow() |
| .equals(other.getRemoteFlowControlWindow()); |
| } |
| result = result && getOptionList() |
| .equals(other.getOptionList()); |
| result = result && unknownFields.equals(other.unknownFields); |
| return result; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptor().hashCode(); |
| hash = (37 * hash) + STREAMS_STARTED_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getStreamsStarted()); |
| hash = (37 * hash) + STREAMS_SUCCEEDED_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getStreamsSucceeded()); |
| hash = (37 * hash) + STREAMS_FAILED_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getStreamsFailed()); |
| hash = (37 * hash) + MESSAGES_SENT_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getMessagesSent()); |
| hash = (37 * hash) + MESSAGES_RECEIVED_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getMessagesReceived()); |
| hash = (37 * hash) + KEEP_ALIVES_SENT_FIELD_NUMBER; |
| hash = (53 * hash) + com.google.protobuf.Internal.hashLong( |
| getKeepAlivesSent()); |
| if (hasLastLocalStreamCreatedTimestamp()) { |
| hash = (37 * hash) + LAST_LOCAL_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER; |
| hash = (53 * hash) + getLastLocalStreamCreatedTimestamp().hashCode(); |
| } |
| if (hasLastRemoteStreamCreatedTimestamp()) { |
| hash = (37 * hash) + LAST_REMOTE_STREAM_CREATED_TIMESTAMP_FIELD_NUMBER; |
| hash = (53 * hash) + getLastRemoteStreamCreatedTimestamp().hashCode(); |
| } |
| if (hasLastMessageSentTimestamp()) { |
| hash = (37 * hash) + LAST_MESSAGE_SENT_TIMESTAMP_FIELD_NUMBER; |
| hash = (53 * hash) + getLastMessageSentTimestamp().hashCode(); |
| } |
| if (hasLastMessageReceivedTimestamp()) { |
| hash = (37 * hash) + LAST_MESSAGE_RECEIVED_TIMESTAMP_FIELD_NUMBER; |
| hash = (53 * hash) + getLastMessageReceivedTimestamp().hashCode(); |
| } |
| if (hasLocalFlowControlWindow()) { |
| hash = (37 * hash) + LOCAL_FLOW_CONTROL_WINDOW_FIELD_NUMBER; |
| hash = (53 * hash) + getLocalFlowControlWindow().hashCode(); |
| } |
| if (hasRemoteFlowControlWindow()) { |
| hash = (37 * hash) + REMOTE_FLOW_CONTROL_WINDOW_FIELD_NUMBER; |
| hash = (53 * hash) + getRemoteFlowControlWindow().hashCode(); |
| } |
| if (getOptionCount() > 0) { |
| hash = (37 * hash) + OPTION_FIELD_NUMBER; |
| hash = (53 * hash) + getOptionList().hashCode(); |
| } |
| hash = (29 * hash) + unknownFields.hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static io.grpc.channelz.v1.SocketData parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.SocketData 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.SocketData parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.SocketData 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.SocketData parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.SocketData parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static io.grpc.channelz.v1.SocketData parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.SocketData 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.SocketData parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.SocketData 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.SocketData parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.SocketData parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input, extensionRegistry); |
| } |
| |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder() { |
| return DEFAULT_INSTANCE.toBuilder(); |
| } |
| public static Builder newBuilder(io.grpc.channelz.v1.SocketData prototype) { |
| return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); |
| } |
| 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; |
| } |
| /** |
| * <pre> |
| * SocketData is data associated for a specific Socket. The fields present |
| * are specific to the implementation, so there may be minor differences in |
| * the semantics. (e.g. flow control windows) |
| * </pre> |
| * |
| * Protobuf type {@code grpc.channelz.v1.SocketData} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.SocketData) |
| io.grpc.channelz.v1.SocketDataOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_SocketData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_SocketData_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.channelz.v1.SocketData.class, io.grpc.channelz.v1.SocketData.Builder.class); |
| } |
| |
| // Construct using io.grpc.channelz.v1.SocketData.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessageV3 |
| .alwaysUseFieldBuilders) { |
| getOptionFieldBuilder(); |
| } |
| } |
| public Builder clear() { |
| super.clear(); |
| streamsStarted_ = 0L; |
| |
| streamsSucceeded_ = 0L; |
| |
| streamsFailed_ = 0L; |
| |
| messagesSent_ = 0L; |
| |
| messagesReceived_ = 0L; |
| |
| keepAlivesSent_ = 0L; |
| |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| lastLocalStreamCreatedTimestamp_ = null; |
| } else { |
| lastLocalStreamCreatedTimestamp_ = null; |
| lastLocalStreamCreatedTimestampBuilder_ = null; |
| } |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| lastRemoteStreamCreatedTimestamp_ = null; |
| } else { |
| lastRemoteStreamCreatedTimestamp_ = null; |
| lastRemoteStreamCreatedTimestampBuilder_ = null; |
| } |
| if (lastMessageSentTimestampBuilder_ == null) { |
| lastMessageSentTimestamp_ = null; |
| } else { |
| lastMessageSentTimestamp_ = null; |
| lastMessageSentTimestampBuilder_ = null; |
| } |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| lastMessageReceivedTimestamp_ = null; |
| } else { |
| lastMessageReceivedTimestamp_ = null; |
| lastMessageReceivedTimestampBuilder_ = null; |
| } |
| if (localFlowControlWindowBuilder_ == null) { |
| localFlowControlWindow_ = null; |
| } else { |
| localFlowControlWindow_ = null; |
| localFlowControlWindowBuilder_ = null; |
| } |
| if (remoteFlowControlWindowBuilder_ == null) { |
| remoteFlowControlWindow_ = null; |
| } else { |
| remoteFlowControlWindow_ = null; |
| remoteFlowControlWindowBuilder_ = null; |
| } |
| if (optionBuilder_ == null) { |
| option_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00001000); |
| } else { |
| optionBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_SocketData_descriptor; |
| } |
| |
| public io.grpc.channelz.v1.SocketData getDefaultInstanceForType() { |
| return io.grpc.channelz.v1.SocketData.getDefaultInstance(); |
| } |
| |
| public io.grpc.channelz.v1.SocketData build() { |
| io.grpc.channelz.v1.SocketData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public io.grpc.channelz.v1.SocketData buildPartial() { |
| io.grpc.channelz.v1.SocketData result = new io.grpc.channelz.v1.SocketData(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| result.streamsStarted_ = streamsStarted_; |
| result.streamsSucceeded_ = streamsSucceeded_; |
| result.streamsFailed_ = streamsFailed_; |
| result.messagesSent_ = messagesSent_; |
| result.messagesReceived_ = messagesReceived_; |
| result.keepAlivesSent_ = keepAlivesSent_; |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| result.lastLocalStreamCreatedTimestamp_ = lastLocalStreamCreatedTimestamp_; |
| } else { |
| result.lastLocalStreamCreatedTimestamp_ = lastLocalStreamCreatedTimestampBuilder_.build(); |
| } |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| result.lastRemoteStreamCreatedTimestamp_ = lastRemoteStreamCreatedTimestamp_; |
| } else { |
| result.lastRemoteStreamCreatedTimestamp_ = lastRemoteStreamCreatedTimestampBuilder_.build(); |
| } |
| if (lastMessageSentTimestampBuilder_ == null) { |
| result.lastMessageSentTimestamp_ = lastMessageSentTimestamp_; |
| } else { |
| result.lastMessageSentTimestamp_ = lastMessageSentTimestampBuilder_.build(); |
| } |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| result.lastMessageReceivedTimestamp_ = lastMessageReceivedTimestamp_; |
| } else { |
| result.lastMessageReceivedTimestamp_ = lastMessageReceivedTimestampBuilder_.build(); |
| } |
| if (localFlowControlWindowBuilder_ == null) { |
| result.localFlowControlWindow_ = localFlowControlWindow_; |
| } else { |
| result.localFlowControlWindow_ = localFlowControlWindowBuilder_.build(); |
| } |
| if (remoteFlowControlWindowBuilder_ == null) { |
| result.remoteFlowControlWindow_ = remoteFlowControlWindow_; |
| } else { |
| result.remoteFlowControlWindow_ = remoteFlowControlWindowBuilder_.build(); |
| } |
| if (optionBuilder_ == null) { |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| option_ = java.util.Collections.unmodifiableList(option_); |
| bitField0_ = (bitField0_ & ~0x00001000); |
| } |
| result.option_ = option_; |
| } else { |
| result.option_ = optionBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder clone() { |
| return (Builder) super.clone(); |
| } |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.setField(field, value); |
| } |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return (Builder) super.clearField(field); |
| } |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return (Builder) super.clearOneof(oneof); |
| } |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return (Builder) super.setRepeatedField(field, index, value); |
| } |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.addRepeatedField(field, value); |
| } |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof io.grpc.channelz.v1.SocketData) { |
| return mergeFrom((io.grpc.channelz.v1.SocketData)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(io.grpc.channelz.v1.SocketData other) { |
| if (other == io.grpc.channelz.v1.SocketData.getDefaultInstance()) return this; |
| if (other.getStreamsStarted() != 0L) { |
| setStreamsStarted(other.getStreamsStarted()); |
| } |
| if (other.getStreamsSucceeded() != 0L) { |
| setStreamsSucceeded(other.getStreamsSucceeded()); |
| } |
| if (other.getStreamsFailed() != 0L) { |
| setStreamsFailed(other.getStreamsFailed()); |
| } |
| if (other.getMessagesSent() != 0L) { |
| setMessagesSent(other.getMessagesSent()); |
| } |
| if (other.getMessagesReceived() != 0L) { |
| setMessagesReceived(other.getMessagesReceived()); |
| } |
| if (other.getKeepAlivesSent() != 0L) { |
| setKeepAlivesSent(other.getKeepAlivesSent()); |
| } |
| if (other.hasLastLocalStreamCreatedTimestamp()) { |
| mergeLastLocalStreamCreatedTimestamp(other.getLastLocalStreamCreatedTimestamp()); |
| } |
| if (other.hasLastRemoteStreamCreatedTimestamp()) { |
| mergeLastRemoteStreamCreatedTimestamp(other.getLastRemoteStreamCreatedTimestamp()); |
| } |
| if (other.hasLastMessageSentTimestamp()) { |
| mergeLastMessageSentTimestamp(other.getLastMessageSentTimestamp()); |
| } |
| if (other.hasLastMessageReceivedTimestamp()) { |
| mergeLastMessageReceivedTimestamp(other.getLastMessageReceivedTimestamp()); |
| } |
| if (other.hasLocalFlowControlWindow()) { |
| mergeLocalFlowControlWindow(other.getLocalFlowControlWindow()); |
| } |
| if (other.hasRemoteFlowControlWindow()) { |
| mergeRemoteFlowControlWindow(other.getRemoteFlowControlWindow()); |
| } |
| if (optionBuilder_ == null) { |
| if (!other.option_.isEmpty()) { |
| if (option_.isEmpty()) { |
| option_ = other.option_; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| } else { |
| ensureOptionIsMutable(); |
| option_.addAll(other.option_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.option_.isEmpty()) { |
| if (optionBuilder_.isEmpty()) { |
| optionBuilder_.dispose(); |
| optionBuilder_ = null; |
| option_ = other.option_; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| optionBuilder_ = |
| com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? |
| getOptionFieldBuilder() : null; |
| } else { |
| optionBuilder_.addAllMessages(other.option_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.unknownFields); |
| onChanged(); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| io.grpc.channelz.v1.SocketData parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (io.grpc.channelz.v1.SocketData) e.getUnfinishedMessage(); |
| throw e.unwrapIOException(); |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| private long streamsStarted_ ; |
| /** |
| * <pre> |
| * The number of streams that have been started. |
| * </pre> |
| * |
| * <code>int64 streams_started = 1;</code> |
| */ |
| public long getStreamsStarted() { |
| return streamsStarted_; |
| } |
| /** |
| * <pre> |
| * The number of streams that have been started. |
| * </pre> |
| * |
| * <code>int64 streams_started = 1;</code> |
| */ |
| public Builder setStreamsStarted(long value) { |
| |
| streamsStarted_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of streams that have been started. |
| * </pre> |
| * |
| * <code>int64 streams_started = 1;</code> |
| */ |
| public Builder clearStreamsStarted() { |
| |
| streamsStarted_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private long streamsSucceeded_ ; |
| /** |
| * <pre> |
| * The number of streams that have ended successfully: |
| * On client side, received frame with eos bit set; |
| * On server side, sent frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_succeeded = 2;</code> |
| */ |
| public long getStreamsSucceeded() { |
| return streamsSucceeded_; |
| } |
| /** |
| * <pre> |
| * The number of streams that have ended successfully: |
| * On client side, received frame with eos bit set; |
| * On server side, sent frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_succeeded = 2;</code> |
| */ |
| public Builder setStreamsSucceeded(long value) { |
| |
| streamsSucceeded_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of streams that have ended successfully: |
| * On client side, received frame with eos bit set; |
| * On server side, sent frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_succeeded = 2;</code> |
| */ |
| public Builder clearStreamsSucceeded() { |
| |
| streamsSucceeded_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private long streamsFailed_ ; |
| /** |
| * <pre> |
| * The number of streams that have ended unsuccessfully: |
| * On client side, ended without receiving frame with eos bit set; |
| * On server side, ended without sending frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_failed = 3;</code> |
| */ |
| public long getStreamsFailed() { |
| return streamsFailed_; |
| } |
| /** |
| * <pre> |
| * The number of streams that have ended unsuccessfully: |
| * On client side, ended without receiving frame with eos bit set; |
| * On server side, ended without sending frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_failed = 3;</code> |
| */ |
| public Builder setStreamsFailed(long value) { |
| |
| streamsFailed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of streams that have ended unsuccessfully: |
| * On client side, ended without receiving frame with eos bit set; |
| * On server side, ended without sending frame with eos bit set. |
| * </pre> |
| * |
| * <code>int64 streams_failed = 3;</code> |
| */ |
| public Builder clearStreamsFailed() { |
| |
| streamsFailed_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private long messagesSent_ ; |
| /** |
| * <pre> |
| * The number of grpc messages successfully sent on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_sent = 4;</code> |
| */ |
| public long getMessagesSent() { |
| return messagesSent_; |
| } |
| /** |
| * <pre> |
| * The number of grpc messages successfully sent on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_sent = 4;</code> |
| */ |
| public Builder setMessagesSent(long value) { |
| |
| messagesSent_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of grpc messages successfully sent on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_sent = 4;</code> |
| */ |
| public Builder clearMessagesSent() { |
| |
| messagesSent_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private long messagesReceived_ ; |
| /** |
| * <pre> |
| * The number of grpc messages received on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_received = 5;</code> |
| */ |
| public long getMessagesReceived() { |
| return messagesReceived_; |
| } |
| /** |
| * <pre> |
| * The number of grpc messages received on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_received = 5;</code> |
| */ |
| public Builder setMessagesReceived(long value) { |
| |
| messagesReceived_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of grpc messages received on this socket. |
| * </pre> |
| * |
| * <code>int64 messages_received = 5;</code> |
| */ |
| public Builder clearMessagesReceived() { |
| |
| messagesReceived_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private long keepAlivesSent_ ; |
| /** |
| * <pre> |
| * The number of keep alives sent. This is typically implemented with HTTP/2 |
| * ping messages. |
| * </pre> |
| * |
| * <code>int64 keep_alives_sent = 6;</code> |
| */ |
| public long getKeepAlivesSent() { |
| return keepAlivesSent_; |
| } |
| /** |
| * <pre> |
| * The number of keep alives sent. This is typically implemented with HTTP/2 |
| * ping messages. |
| * </pre> |
| * |
| * <code>int64 keep_alives_sent = 6;</code> |
| */ |
| public Builder setKeepAlivesSent(long value) { |
| |
| keepAlivesSent_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <pre> |
| * The number of keep alives sent. This is typically implemented with HTTP/2 |
| * ping messages. |
| * </pre> |
| * |
| * <code>int64 keep_alives_sent = 6;</code> |
| */ |
| public Builder clearKeepAlivesSent() { |
| |
| keepAlivesSent_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| private com.google.protobuf.Timestamp lastLocalStreamCreatedTimestamp_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastLocalStreamCreatedTimestampBuilder_; |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public boolean hasLastLocalStreamCreatedTimestamp() { |
| return lastLocalStreamCreatedTimestampBuilder_ != null || lastLocalStreamCreatedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastLocalStreamCreatedTimestamp() { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| return lastLocalStreamCreatedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastLocalStreamCreatedTimestamp_; |
| } else { |
| return lastLocalStreamCreatedTimestampBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public Builder setLastLocalStreamCreatedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lastLocalStreamCreatedTimestamp_ = value; |
| onChanged(); |
| } else { |
| lastLocalStreamCreatedTimestampBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public Builder setLastLocalStreamCreatedTimestamp( |
| com.google.protobuf.Timestamp.Builder builderForValue) { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| lastLocalStreamCreatedTimestamp_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| lastLocalStreamCreatedTimestampBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public Builder mergeLastLocalStreamCreatedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| if (lastLocalStreamCreatedTimestamp_ != null) { |
| lastLocalStreamCreatedTimestamp_ = |
| com.google.protobuf.Timestamp.newBuilder(lastLocalStreamCreatedTimestamp_).mergeFrom(value).buildPartial(); |
| } else { |
| lastLocalStreamCreatedTimestamp_ = value; |
| } |
| onChanged(); |
| } else { |
| lastLocalStreamCreatedTimestampBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public Builder clearLastLocalStreamCreatedTimestamp() { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| lastLocalStreamCreatedTimestamp_ = null; |
| onChanged(); |
| } else { |
| lastLocalStreamCreatedTimestamp_ = null; |
| lastLocalStreamCreatedTimestampBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public com.google.protobuf.Timestamp.Builder getLastLocalStreamCreatedTimestampBuilder() { |
| |
| onChanged(); |
| return getLastLocalStreamCreatedTimestampFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastLocalStreamCreatedTimestampOrBuilder() { |
| if (lastLocalStreamCreatedTimestampBuilder_ != null) { |
| return lastLocalStreamCreatedTimestampBuilder_.getMessageOrBuilder(); |
| } else { |
| return lastLocalStreamCreatedTimestamp_ == null ? |
| com.google.protobuf.Timestamp.getDefaultInstance() : lastLocalStreamCreatedTimestamp_; |
| } |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by this endpoint. Usually unset for |
| * servers. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_local_stream_created_timestamp = 7;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> |
| getLastLocalStreamCreatedTimestampFieldBuilder() { |
| if (lastLocalStreamCreatedTimestampBuilder_ == null) { |
| lastLocalStreamCreatedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( |
| getLastLocalStreamCreatedTimestamp(), |
| getParentForChildren(), |
| isClean()); |
| lastLocalStreamCreatedTimestamp_ = null; |
| } |
| return lastLocalStreamCreatedTimestampBuilder_; |
| } |
| |
| private com.google.protobuf.Timestamp lastRemoteStreamCreatedTimestamp_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastRemoteStreamCreatedTimestampBuilder_; |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public boolean hasLastRemoteStreamCreatedTimestamp() { |
| return lastRemoteStreamCreatedTimestampBuilder_ != null || lastRemoteStreamCreatedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastRemoteStreamCreatedTimestamp() { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| return lastRemoteStreamCreatedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRemoteStreamCreatedTimestamp_; |
| } else { |
| return lastRemoteStreamCreatedTimestampBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public Builder setLastRemoteStreamCreatedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lastRemoteStreamCreatedTimestamp_ = value; |
| onChanged(); |
| } else { |
| lastRemoteStreamCreatedTimestampBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public Builder setLastRemoteStreamCreatedTimestamp( |
| com.google.protobuf.Timestamp.Builder builderForValue) { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| lastRemoteStreamCreatedTimestamp_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| lastRemoteStreamCreatedTimestampBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public Builder mergeLastRemoteStreamCreatedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| if (lastRemoteStreamCreatedTimestamp_ != null) { |
| lastRemoteStreamCreatedTimestamp_ = |
| com.google.protobuf.Timestamp.newBuilder(lastRemoteStreamCreatedTimestamp_).mergeFrom(value).buildPartial(); |
| } else { |
| lastRemoteStreamCreatedTimestamp_ = value; |
| } |
| onChanged(); |
| } else { |
| lastRemoteStreamCreatedTimestampBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public Builder clearLastRemoteStreamCreatedTimestamp() { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| lastRemoteStreamCreatedTimestamp_ = null; |
| onChanged(); |
| } else { |
| lastRemoteStreamCreatedTimestamp_ = null; |
| lastRemoteStreamCreatedTimestampBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public com.google.protobuf.Timestamp.Builder getLastRemoteStreamCreatedTimestampBuilder() { |
| |
| onChanged(); |
| return getLastRemoteStreamCreatedTimestampFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastRemoteStreamCreatedTimestampOrBuilder() { |
| if (lastRemoteStreamCreatedTimestampBuilder_ != null) { |
| return lastRemoteStreamCreatedTimestampBuilder_.getMessageOrBuilder(); |
| } else { |
| return lastRemoteStreamCreatedTimestamp_ == null ? |
| com.google.protobuf.Timestamp.getDefaultInstance() : lastRemoteStreamCreatedTimestamp_; |
| } |
| } |
| /** |
| * <pre> |
| * The last time a stream was created by the remote endpoint. Usually unset |
| * for clients. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_remote_stream_created_timestamp = 8;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> |
| getLastRemoteStreamCreatedTimestampFieldBuilder() { |
| if (lastRemoteStreamCreatedTimestampBuilder_ == null) { |
| lastRemoteStreamCreatedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( |
| getLastRemoteStreamCreatedTimestamp(), |
| getParentForChildren(), |
| isClean()); |
| lastRemoteStreamCreatedTimestamp_ = null; |
| } |
| return lastRemoteStreamCreatedTimestampBuilder_; |
| } |
| |
| private com.google.protobuf.Timestamp lastMessageSentTimestamp_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMessageSentTimestampBuilder_; |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public boolean hasLastMessageSentTimestamp() { |
| return lastMessageSentTimestampBuilder_ != null || lastMessageSentTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastMessageSentTimestamp() { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| return lastMessageSentTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageSentTimestamp_; |
| } else { |
| return lastMessageSentTimestampBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public Builder setLastMessageSentTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lastMessageSentTimestamp_ = value; |
| onChanged(); |
| } else { |
| lastMessageSentTimestampBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public Builder setLastMessageSentTimestamp( |
| com.google.protobuf.Timestamp.Builder builderForValue) { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| lastMessageSentTimestamp_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| lastMessageSentTimestampBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public Builder mergeLastMessageSentTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| if (lastMessageSentTimestamp_ != null) { |
| lastMessageSentTimestamp_ = |
| com.google.protobuf.Timestamp.newBuilder(lastMessageSentTimestamp_).mergeFrom(value).buildPartial(); |
| } else { |
| lastMessageSentTimestamp_ = value; |
| } |
| onChanged(); |
| } else { |
| lastMessageSentTimestampBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public Builder clearLastMessageSentTimestamp() { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| lastMessageSentTimestamp_ = null; |
| onChanged(); |
| } else { |
| lastMessageSentTimestamp_ = null; |
| lastMessageSentTimestampBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public com.google.protobuf.Timestamp.Builder getLastMessageSentTimestampBuilder() { |
| |
| onChanged(); |
| return getLastMessageSentTimestampFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastMessageSentTimestampOrBuilder() { |
| if (lastMessageSentTimestampBuilder_ != null) { |
| return lastMessageSentTimestampBuilder_.getMessageOrBuilder(); |
| } else { |
| return lastMessageSentTimestamp_ == null ? |
| com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageSentTimestamp_; |
| } |
| } |
| /** |
| * <pre> |
| * The last time a message was sent by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_sent_timestamp = 9;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> |
| getLastMessageSentTimestampFieldBuilder() { |
| if (lastMessageSentTimestampBuilder_ == null) { |
| lastMessageSentTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( |
| getLastMessageSentTimestamp(), |
| getParentForChildren(), |
| isClean()); |
| lastMessageSentTimestamp_ = null; |
| } |
| return lastMessageSentTimestampBuilder_; |
| } |
| |
| private com.google.protobuf.Timestamp lastMessageReceivedTimestamp_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMessageReceivedTimestampBuilder_; |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public boolean hasLastMessageReceivedTimestamp() { |
| return lastMessageReceivedTimestampBuilder_ != null || lastMessageReceivedTimestamp_ != null; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public com.google.protobuf.Timestamp getLastMessageReceivedTimestamp() { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| return lastMessageReceivedTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageReceivedTimestamp_; |
| } else { |
| return lastMessageReceivedTimestampBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public Builder setLastMessageReceivedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lastMessageReceivedTimestamp_ = value; |
| onChanged(); |
| } else { |
| lastMessageReceivedTimestampBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public Builder setLastMessageReceivedTimestamp( |
| com.google.protobuf.Timestamp.Builder builderForValue) { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| lastMessageReceivedTimestamp_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| lastMessageReceivedTimestampBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public Builder mergeLastMessageReceivedTimestamp(com.google.protobuf.Timestamp value) { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| if (lastMessageReceivedTimestamp_ != null) { |
| lastMessageReceivedTimestamp_ = |
| com.google.protobuf.Timestamp.newBuilder(lastMessageReceivedTimestamp_).mergeFrom(value).buildPartial(); |
| } else { |
| lastMessageReceivedTimestamp_ = value; |
| } |
| onChanged(); |
| } else { |
| lastMessageReceivedTimestampBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public Builder clearLastMessageReceivedTimestamp() { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| lastMessageReceivedTimestamp_ = null; |
| onChanged(); |
| } else { |
| lastMessageReceivedTimestamp_ = null; |
| lastMessageReceivedTimestampBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public com.google.protobuf.Timestamp.Builder getLastMessageReceivedTimestampBuilder() { |
| |
| onChanged(); |
| return getLastMessageReceivedTimestampFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| public com.google.protobuf.TimestampOrBuilder getLastMessageReceivedTimestampOrBuilder() { |
| if (lastMessageReceivedTimestampBuilder_ != null) { |
| return lastMessageReceivedTimestampBuilder_.getMessageOrBuilder(); |
| } else { |
| return lastMessageReceivedTimestamp_ == null ? |
| com.google.protobuf.Timestamp.getDefaultInstance() : lastMessageReceivedTimestamp_; |
| } |
| } |
| /** |
| * <pre> |
| * The last time a message was received by this endpoint. |
| * </pre> |
| * |
| * <code>.google.protobuf.Timestamp last_message_received_timestamp = 10;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> |
| getLastMessageReceivedTimestampFieldBuilder() { |
| if (lastMessageReceivedTimestampBuilder_ == null) { |
| lastMessageReceivedTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( |
| getLastMessageReceivedTimestamp(), |
| getParentForChildren(), |
| isClean()); |
| lastMessageReceivedTimestamp_ = null; |
| } |
| return lastMessageReceivedTimestampBuilder_; |
| } |
| |
| private com.google.protobuf.Int64Value localFlowControlWindow_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> localFlowControlWindowBuilder_; |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public boolean hasLocalFlowControlWindow() { |
| return localFlowControlWindowBuilder_ != null || localFlowControlWindow_ != null; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public com.google.protobuf.Int64Value getLocalFlowControlWindow() { |
| if (localFlowControlWindowBuilder_ == null) { |
| return localFlowControlWindow_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : localFlowControlWindow_; |
| } else { |
| return localFlowControlWindowBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public Builder setLocalFlowControlWindow(com.google.protobuf.Int64Value value) { |
| if (localFlowControlWindowBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| localFlowControlWindow_ = value; |
| onChanged(); |
| } else { |
| localFlowControlWindowBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public Builder setLocalFlowControlWindow( |
| com.google.protobuf.Int64Value.Builder builderForValue) { |
| if (localFlowControlWindowBuilder_ == null) { |
| localFlowControlWindow_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| localFlowControlWindowBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public Builder mergeLocalFlowControlWindow(com.google.protobuf.Int64Value value) { |
| if (localFlowControlWindowBuilder_ == null) { |
| if (localFlowControlWindow_ != null) { |
| localFlowControlWindow_ = |
| com.google.protobuf.Int64Value.newBuilder(localFlowControlWindow_).mergeFrom(value).buildPartial(); |
| } else { |
| localFlowControlWindow_ = value; |
| } |
| onChanged(); |
| } else { |
| localFlowControlWindowBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public Builder clearLocalFlowControlWindow() { |
| if (localFlowControlWindowBuilder_ == null) { |
| localFlowControlWindow_ = null; |
| onChanged(); |
| } else { |
| localFlowControlWindow_ = null; |
| localFlowControlWindowBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public com.google.protobuf.Int64Value.Builder getLocalFlowControlWindowBuilder() { |
| |
| onChanged(); |
| return getLocalFlowControlWindowFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| public com.google.protobuf.Int64ValueOrBuilder getLocalFlowControlWindowOrBuilder() { |
| if (localFlowControlWindowBuilder_ != null) { |
| return localFlowControlWindowBuilder_.getMessageOrBuilder(); |
| } else { |
| return localFlowControlWindow_ == null ? |
| com.google.protobuf.Int64Value.getDefaultInstance() : localFlowControlWindow_; |
| } |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the local endpoint by the remote endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value local_flow_control_window = 11;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> |
| getLocalFlowControlWindowFieldBuilder() { |
| if (localFlowControlWindowBuilder_ == null) { |
| localFlowControlWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( |
| getLocalFlowControlWindow(), |
| getParentForChildren(), |
| isClean()); |
| localFlowControlWindow_ = null; |
| } |
| return localFlowControlWindowBuilder_; |
| } |
| |
| private com.google.protobuf.Int64Value remoteFlowControlWindow_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> remoteFlowControlWindowBuilder_; |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public boolean hasRemoteFlowControlWindow() { |
| return remoteFlowControlWindowBuilder_ != null || remoteFlowControlWindow_ != null; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public com.google.protobuf.Int64Value getRemoteFlowControlWindow() { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| return remoteFlowControlWindow_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : remoteFlowControlWindow_; |
| } else { |
| return remoteFlowControlWindowBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public Builder setRemoteFlowControlWindow(com.google.protobuf.Int64Value value) { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| remoteFlowControlWindow_ = value; |
| onChanged(); |
| } else { |
| remoteFlowControlWindowBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public Builder setRemoteFlowControlWindow( |
| com.google.protobuf.Int64Value.Builder builderForValue) { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| remoteFlowControlWindow_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| remoteFlowControlWindowBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public Builder mergeRemoteFlowControlWindow(com.google.protobuf.Int64Value value) { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| if (remoteFlowControlWindow_ != null) { |
| remoteFlowControlWindow_ = |
| com.google.protobuf.Int64Value.newBuilder(remoteFlowControlWindow_).mergeFrom(value).buildPartial(); |
| } else { |
| remoteFlowControlWindow_ = value; |
| } |
| onChanged(); |
| } else { |
| remoteFlowControlWindowBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public Builder clearRemoteFlowControlWindow() { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| remoteFlowControlWindow_ = null; |
| onChanged(); |
| } else { |
| remoteFlowControlWindow_ = null; |
| remoteFlowControlWindowBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public com.google.protobuf.Int64Value.Builder getRemoteFlowControlWindowBuilder() { |
| |
| onChanged(); |
| return getRemoteFlowControlWindowFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| public com.google.protobuf.Int64ValueOrBuilder getRemoteFlowControlWindowOrBuilder() { |
| if (remoteFlowControlWindowBuilder_ != null) { |
| return remoteFlowControlWindowBuilder_.getMessageOrBuilder(); |
| } else { |
| return remoteFlowControlWindow_ == null ? |
| com.google.protobuf.Int64Value.getDefaultInstance() : remoteFlowControlWindow_; |
| } |
| } |
| /** |
| * <pre> |
| * The amount of window, granted to the remote endpoint by the local endpoint. |
| * This may be slightly out of date due to network latency. This does NOT |
| * include stream level or TCP level flow control info. |
| * </pre> |
| * |
| * <code>.google.protobuf.Int64Value remote_flow_control_window = 12;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> |
| getRemoteFlowControlWindowFieldBuilder() { |
| if (remoteFlowControlWindowBuilder_ == null) { |
| remoteFlowControlWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( |
| getRemoteFlowControlWindow(), |
| getParentForChildren(), |
| isClean()); |
| remoteFlowControlWindow_ = null; |
| } |
| return remoteFlowControlWindowBuilder_; |
| } |
| |
| private java.util.List<io.grpc.channelz.v1.SocketOption> option_ = |
| java.util.Collections.emptyList(); |
| private void ensureOptionIsMutable() { |
| if (!((bitField0_ & 0x00001000) == 0x00001000)) { |
| option_ = new java.util.ArrayList<io.grpc.channelz.v1.SocketOption>(option_); |
| bitField0_ |= 0x00001000; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilderV3< |
| io.grpc.channelz.v1.SocketOption, io.grpc.channelz.v1.SocketOption.Builder, io.grpc.channelz.v1.SocketOptionOrBuilder> optionBuilder_; |
| |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public java.util.List<io.grpc.channelz.v1.SocketOption> getOptionList() { |
| if (optionBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(option_); |
| } else { |
| return optionBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public int getOptionCount() { |
| if (optionBuilder_ == null) { |
| return option_.size(); |
| } else { |
| return optionBuilder_.getCount(); |
| } |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOption getOption(int index) { |
| if (optionBuilder_ == null) { |
| return option_.get(index); |
| } else { |
| return optionBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder setOption( |
| int index, io.grpc.channelz.v1.SocketOption value) { |
| if (optionBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOptionIsMutable(); |
| option_.set(index, value); |
| onChanged(); |
| } else { |
| optionBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder setOption( |
| int index, io.grpc.channelz.v1.SocketOption.Builder builderForValue) { |
| if (optionBuilder_ == null) { |
| ensureOptionIsMutable(); |
| option_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| optionBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder addOption(io.grpc.channelz.v1.SocketOption value) { |
| if (optionBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOptionIsMutable(); |
| option_.add(value); |
| onChanged(); |
| } else { |
| optionBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder addOption( |
| int index, io.grpc.channelz.v1.SocketOption value) { |
| if (optionBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOptionIsMutable(); |
| option_.add(index, value); |
| onChanged(); |
| } else { |
| optionBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder addOption( |
| io.grpc.channelz.v1.SocketOption.Builder builderForValue) { |
| if (optionBuilder_ == null) { |
| ensureOptionIsMutable(); |
| option_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| optionBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder addOption( |
| int index, io.grpc.channelz.v1.SocketOption.Builder builderForValue) { |
| if (optionBuilder_ == null) { |
| ensureOptionIsMutable(); |
| option_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| optionBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder addAllOption( |
| java.lang.Iterable<? extends io.grpc.channelz.v1.SocketOption> values) { |
| if (optionBuilder_ == null) { |
| ensureOptionIsMutable(); |
| com.google.protobuf.AbstractMessageLite.Builder.addAll( |
| values, option_); |
| onChanged(); |
| } else { |
| optionBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder clearOption() { |
| if (optionBuilder_ == null) { |
| option_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00001000); |
| onChanged(); |
| } else { |
| optionBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public Builder removeOption(int index) { |
| if (optionBuilder_ == null) { |
| ensureOptionIsMutable(); |
| option_.remove(index); |
| onChanged(); |
| } else { |
| optionBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOption.Builder getOptionBuilder( |
| int index) { |
| return getOptionFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOptionOrBuilder getOptionOrBuilder( |
| int index) { |
| if (optionBuilder_ == null) { |
| return option_.get(index); } else { |
| return optionBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public java.util.List<? extends io.grpc.channelz.v1.SocketOptionOrBuilder> |
| getOptionOrBuilderList() { |
| if (optionBuilder_ != null) { |
| return optionBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(option_); |
| } |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOption.Builder addOptionBuilder() { |
| return getOptionFieldBuilder().addBuilder( |
| io.grpc.channelz.v1.SocketOption.getDefaultInstance()); |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public io.grpc.channelz.v1.SocketOption.Builder addOptionBuilder( |
| int index) { |
| return getOptionFieldBuilder().addBuilder( |
| index, io.grpc.channelz.v1.SocketOption.getDefaultInstance()); |
| } |
| /** |
| * <pre> |
| * Socket options set on this socket. May be absent. |
| * </pre> |
| * |
| * <code>repeated .grpc.channelz.v1.SocketOption option = 13;</code> |
| */ |
| public java.util.List<io.grpc.channelz.v1.SocketOption.Builder> |
| getOptionBuilderList() { |
| return getOptionFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilderV3< |
| io.grpc.channelz.v1.SocketOption, io.grpc.channelz.v1.SocketOption.Builder, io.grpc.channelz.v1.SocketOptionOrBuilder> |
| getOptionFieldBuilder() { |
| if (optionBuilder_ == null) { |
| optionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< |
| io.grpc.channelz.v1.SocketOption, io.grpc.channelz.v1.SocketOption.Builder, io.grpc.channelz.v1.SocketOptionOrBuilder>( |
| option_, |
| ((bitField0_ & 0x00001000) == 0x00001000), |
| getParentForChildren(), |
| isClean()); |
| option_ = null; |
| } |
| return optionBuilder_; |
| } |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFieldsProto3(unknownFields); |
| } |
| |
| public final Builder mergeUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.mergeUnknownFields(unknownFields); |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:grpc.channelz.v1.SocketData) |
| } |
| |
| // @@protoc_insertion_point(class_scope:grpc.channelz.v1.SocketData) |
| private static final io.grpc.channelz.v1.SocketData DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new io.grpc.channelz.v1.SocketData(); |
| } |
| |
| public static io.grpc.channelz.v1.SocketData getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| private static final com.google.protobuf.Parser<SocketData> |
| PARSER = new com.google.protobuf.AbstractParser<SocketData>() { |
| public SocketData parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new SocketData(input, extensionRegistry); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<SocketData> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<SocketData> getParserForType() { |
| return PARSER; |
| } |
| |
| public io.grpc.channelz.v1.SocketData getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |