shade.polaris.io.grpc.channelz.v1.Channel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/channelz/v1/channelz.proto
// Protobuf Java Version: 3.25.1
package io.grpc.channelz.v1;
/**
*
* Channel is a logical grouping of channels, subchannels, and sockets.
*
*
* Protobuf type {@code grpc.channelz.v1.Channel}
*/
public final class Channel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.channelz.v1.Channel)
ChannelOrBuilder {
private static final long serialVersionUID = 0L;
// Use Channel.newBuilder() to construct.
private Channel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Channel() {
channelRef_ = java.util.Collections.emptyList();
subchannelRef_ = java.util.Collections.emptyList();
socketRef_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Channel();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Channel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Channel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Channel.class, io.grpc.channelz.v1.Channel.Builder.class);
}
private int bitField0_;
public static final int REF_FIELD_NUMBER = 1;
private io.grpc.channelz.v1.ChannelRef ref_;
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
* @return Whether the ref field is set.
*/
@java.lang.Override
public boolean hasRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
* @return The ref.
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelRef getRef() {
return ref_ == null ? io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_;
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelRefOrBuilder getRefOrBuilder() {
return ref_ == null ? io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_;
}
public static final int DATA_FIELD_NUMBER = 2;
private io.grpc.channelz.v1.ChannelData data_;
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
* @return The data.
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelData getData() {
return data_ == null ? io.grpc.channelz.v1.ChannelData.getDefaultInstance() : data_;
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelDataOrBuilder getDataOrBuilder() {
return data_ == null ? io.grpc.channelz.v1.ChannelData.getDefaultInstance() : data_;
}
public static final int CHANNEL_REF_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List channelRef_;
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
@java.lang.Override
public java.util.List getChannelRefList() {
return channelRef_;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
@java.lang.Override
public java.util.List extends io.grpc.channelz.v1.ChannelRefOrBuilder>
getChannelRefOrBuilderList() {
return channelRef_;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
@java.lang.Override
public int getChannelRefCount() {
return channelRef_.size();
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelRef getChannelRef(int index) {
return channelRef_.get(index);
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
@java.lang.Override
public io.grpc.channelz.v1.ChannelRefOrBuilder getChannelRefOrBuilder(
int index) {
return channelRef_.get(index);
}
public static final int SUBCHANNEL_REF_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List subchannelRef_;
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
@java.lang.Override
public java.util.List getSubchannelRefList() {
return subchannelRef_;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
@java.lang.Override
public java.util.List extends io.grpc.channelz.v1.SubchannelRefOrBuilder>
getSubchannelRefOrBuilderList() {
return subchannelRef_;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
@java.lang.Override
public int getSubchannelRefCount() {
return subchannelRef_.size();
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
@java.lang.Override
public io.grpc.channelz.v1.SubchannelRef getSubchannelRef(int index) {
return subchannelRef_.get(index);
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
@java.lang.Override
public io.grpc.channelz.v1.SubchannelRefOrBuilder getSubchannelRefOrBuilder(
int index) {
return subchannelRef_.get(index);
}
public static final int SOCKET_REF_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List socketRef_;
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
@java.lang.Override
public java.util.List getSocketRefList() {
return socketRef_;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
@java.lang.Override
public java.util.List extends io.grpc.channelz.v1.SocketRefOrBuilder>
getSocketRefOrBuilderList() {
return socketRef_;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
@java.lang.Override
public int getSocketRefCount() {
return socketRef_.size();
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
@java.lang.Override
public io.grpc.channelz.v1.SocketRef getSocketRef(int index) {
return socketRef_.get(index);
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
@java.lang.Override
public io.grpc.channelz.v1.SocketRefOrBuilder getSocketRefOrBuilder(
int index) {
return socketRef_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getData());
}
for (int i = 0; i < channelRef_.size(); i++) {
output.writeMessage(3, channelRef_.get(i));
}
for (int i = 0; i < subchannelRef_.size(); i++) {
output.writeMessage(4, subchannelRef_.get(i));
}
for (int i = 0; i < socketRef_.size(); i++) {
output.writeMessage(5, socketRef_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRef());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
for (int i = 0; i < channelRef_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, channelRef_.get(i));
}
for (int i = 0; i < subchannelRef_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, subchannelRef_.get(i));
}
for (int i = 0; i < socketRef_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, socketRef_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grpc.channelz.v1.Channel)) {
return super.equals(obj);
}
io.grpc.channelz.v1.Channel other = (io.grpc.channelz.v1.Channel) obj;
if (hasRef() != other.hasRef()) return false;
if (hasRef()) {
if (!getRef()
.equals(other.getRef())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (!getChannelRefList()
.equals(other.getChannelRefList())) return false;
if (!getSubchannelRefList()
.equals(other.getSubchannelRefList())) return false;
if (!getSocketRefList()
.equals(other.getSocketRefList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRef()) {
hash = (37 * hash) + REF_FIELD_NUMBER;
hash = (53 * hash) + getRef().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (getChannelRefCount() > 0) {
hash = (37 * hash) + CHANNEL_REF_FIELD_NUMBER;
hash = (53 * hash) + getChannelRefList().hashCode();
}
if (getSubchannelRefCount() > 0) {
hash = (37 * hash) + SUBCHANNEL_REF_FIELD_NUMBER;
hash = (53 * hash) + getSubchannelRefList().hashCode();
}
if (getSocketRefCount() > 0) {
hash = (37 * hash) + SOCKET_REF_FIELD_NUMBER;
hash = (53 * hash) + getSocketRefList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.channelz.v1.Channel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Channel 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.Channel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Channel 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.Channel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.channelz.v1.Channel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.channelz.v1.Channel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Channel 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.Channel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Channel 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.Channel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.channelz.v1.Channel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grpc.channelz.v1.Channel prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Channel is a logical grouping of channels, subchannels, and sockets.
*
*
* Protobuf type {@code grpc.channelz.v1.Channel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Channel)
io.grpc.channelz.v1.ChannelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Channel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Channel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.channelz.v1.Channel.class, io.grpc.channelz.v1.Channel.Builder.class);
}
// Construct using io.grpc.channelz.v1.Channel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRefFieldBuilder();
getDataFieldBuilder();
getChannelRefFieldBuilder();
getSubchannelRefFieldBuilder();
getSocketRefFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ref_ = null;
if (refBuilder_ != null) {
refBuilder_.dispose();
refBuilder_ = null;
}
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
if (channelRefBuilder_ == null) {
channelRef_ = java.util.Collections.emptyList();
} else {
channelRef_ = null;
channelRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (subchannelRefBuilder_ == null) {
subchannelRef_ = java.util.Collections.emptyList();
} else {
subchannelRef_ = null;
subchannelRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (socketRefBuilder_ == null) {
socketRef_ = java.util.Collections.emptyList();
} else {
socketRef_ = null;
socketRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Channel_descriptor;
}
@java.lang.Override
public io.grpc.channelz.v1.Channel getDefaultInstanceForType() {
return io.grpc.channelz.v1.Channel.getDefaultInstance();
}
@java.lang.Override
public io.grpc.channelz.v1.Channel build() {
io.grpc.channelz.v1.Channel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.channelz.v1.Channel buildPartial() {
io.grpc.channelz.v1.Channel result = new io.grpc.channelz.v1.Channel(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.grpc.channelz.v1.Channel result) {
if (channelRefBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
channelRef_ = java.util.Collections.unmodifiableList(channelRef_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.channelRef_ = channelRef_;
} else {
result.channelRef_ = channelRefBuilder_.build();
}
if (subchannelRefBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
subchannelRef_ = java.util.Collections.unmodifiableList(subchannelRef_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.subchannelRef_ = subchannelRef_;
} else {
result.subchannelRef_ = subchannelRefBuilder_.build();
}
if (socketRefBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
socketRef_ = java.util.Collections.unmodifiableList(socketRef_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.socketRef_ = socketRef_;
} else {
result.socketRef_ = socketRefBuilder_.build();
}
}
private void buildPartial0(io.grpc.channelz.v1.Channel result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ref_ = refBuilder_ == null
? ref_
: refBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.data_ = dataBuilder_ == null
? data_
: dataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.channelz.v1.Channel) {
return mergeFrom((io.grpc.channelz.v1.Channel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.channelz.v1.Channel other) {
if (other == io.grpc.channelz.v1.Channel.getDefaultInstance()) return this;
if (other.hasRef()) {
mergeRef(other.getRef());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (channelRefBuilder_ == null) {
if (!other.channelRef_.isEmpty()) {
if (channelRef_.isEmpty()) {
channelRef_ = other.channelRef_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureChannelRefIsMutable();
channelRef_.addAll(other.channelRef_);
}
onChanged();
}
} else {
if (!other.channelRef_.isEmpty()) {
if (channelRefBuilder_.isEmpty()) {
channelRefBuilder_.dispose();
channelRefBuilder_ = null;
channelRef_ = other.channelRef_;
bitField0_ = (bitField0_ & ~0x00000004);
channelRefBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChannelRefFieldBuilder() : null;
} else {
channelRefBuilder_.addAllMessages(other.channelRef_);
}
}
}
if (subchannelRefBuilder_ == null) {
if (!other.subchannelRef_.isEmpty()) {
if (subchannelRef_.isEmpty()) {
subchannelRef_ = other.subchannelRef_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSubchannelRefIsMutable();
subchannelRef_.addAll(other.subchannelRef_);
}
onChanged();
}
} else {
if (!other.subchannelRef_.isEmpty()) {
if (subchannelRefBuilder_.isEmpty()) {
subchannelRefBuilder_.dispose();
subchannelRefBuilder_ = null;
subchannelRef_ = other.subchannelRef_;
bitField0_ = (bitField0_ & ~0x00000008);
subchannelRefBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSubchannelRefFieldBuilder() : null;
} else {
subchannelRefBuilder_.addAllMessages(other.subchannelRef_);
}
}
}
if (socketRefBuilder_ == null) {
if (!other.socketRef_.isEmpty()) {
if (socketRef_.isEmpty()) {
socketRef_ = other.socketRef_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSocketRefIsMutable();
socketRef_.addAll(other.socketRef_);
}
onChanged();
}
} else {
if (!other.socketRef_.isEmpty()) {
if (socketRefBuilder_.isEmpty()) {
socketRefBuilder_.dispose();
socketRefBuilder_ = null;
socketRef_ = other.socketRef_;
bitField0_ = (bitField0_ & ~0x00000010);
socketRefBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSocketRefFieldBuilder() : null;
} else {
socketRefBuilder_.addAllMessages(other.socketRef_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getDataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
io.grpc.channelz.v1.ChannelRef m =
input.readMessage(
io.grpc.channelz.v1.ChannelRef.parser(),
extensionRegistry);
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
channelRef_.add(m);
} else {
channelRefBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
io.grpc.channelz.v1.SubchannelRef m =
input.readMessage(
io.grpc.channelz.v1.SubchannelRef.parser(),
extensionRegistry);
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
subchannelRef_.add(m);
} else {
subchannelRefBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
io.grpc.channelz.v1.SocketRef m =
input.readMessage(
io.grpc.channelz.v1.SocketRef.parser(),
extensionRegistry);
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
socketRef_.add(m);
} else {
socketRefBuilder_.addMessage(m);
}
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.grpc.channelz.v1.ChannelRef ref_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder> refBuilder_;
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
* @return Whether the ref field is set.
*/
public boolean hasRef() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
* @return The ref.
*/
public io.grpc.channelz.v1.ChannelRef getRef() {
if (refBuilder_ == null) {
return ref_ == null ? io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_;
} else {
return refBuilder_.getMessage();
}
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public Builder setRef(io.grpc.channelz.v1.ChannelRef value) {
if (refBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ref_ = value;
} else {
refBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public Builder setRef(
io.grpc.channelz.v1.ChannelRef.Builder builderForValue) {
if (refBuilder_ == null) {
ref_ = builderForValue.build();
} else {
refBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public Builder mergeRef(io.grpc.channelz.v1.ChannelRef value) {
if (refBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ref_ != null &&
ref_ != io.grpc.channelz.v1.ChannelRef.getDefaultInstance()) {
getRefBuilder().mergeFrom(value);
} else {
ref_ = value;
}
} else {
refBuilder_.mergeFrom(value);
}
if (ref_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public Builder clearRef() {
bitField0_ = (bitField0_ & ~0x00000001);
ref_ = null;
if (refBuilder_ != null) {
refBuilder_.dispose();
refBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public io.grpc.channelz.v1.ChannelRef.Builder getRefBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRefFieldBuilder().getBuilder();
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
public io.grpc.channelz.v1.ChannelRefOrBuilder getRefOrBuilder() {
if (refBuilder_ != null) {
return refBuilder_.getMessageOrBuilder();
} else {
return ref_ == null ?
io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_;
}
}
/**
*
* The identifier for this channel. This should be set.
*
*
* .grpc.channelz.v1.ChannelRef ref = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder>
getRefFieldBuilder() {
if (refBuilder_ == null) {
refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder>(
getRef(),
getParentForChildren(),
isClean());
ref_ = null;
}
return refBuilder_;
}
private io.grpc.channelz.v1.ChannelData data_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelData, io.grpc.channelz.v1.ChannelData.Builder, io.grpc.channelz.v1.ChannelDataOrBuilder> dataBuilder_;
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
* @return The data.
*/
public io.grpc.channelz.v1.ChannelData getData() {
if (dataBuilder_ == null) {
return data_ == null ? io.grpc.channelz.v1.ChannelData.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public Builder setData(io.grpc.channelz.v1.ChannelData value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public Builder setData(
io.grpc.channelz.v1.ChannelData.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public Builder mergeData(io.grpc.channelz.v1.ChannelData value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
data_ != null &&
data_ != io.grpc.channelz.v1.ChannelData.getDefaultInstance()) {
getDataBuilder().mergeFrom(value);
} else {
data_ = value;
}
} else {
dataBuilder_.mergeFrom(value);
}
if (data_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public io.grpc.channelz.v1.ChannelData.Builder getDataBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
public io.grpc.channelz.v1.ChannelDataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
io.grpc.channelz.v1.ChannelData.getDefaultInstance() : data_;
}
}
/**
*
* Data specific to this channel.
*
*
* .grpc.channelz.v1.ChannelData data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelData, io.grpc.channelz.v1.ChannelData.Builder, io.grpc.channelz.v1.ChannelDataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.channelz.v1.ChannelData, io.grpc.channelz.v1.ChannelData.Builder, io.grpc.channelz.v1.ChannelDataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private java.util.List channelRef_ =
java.util.Collections.emptyList();
private void ensureChannelRefIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
channelRef_ = new java.util.ArrayList(channelRef_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder> channelRefBuilder_;
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public java.util.List getChannelRefList() {
if (channelRefBuilder_ == null) {
return java.util.Collections.unmodifiableList(channelRef_);
} else {
return channelRefBuilder_.getMessageList();
}
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public int getChannelRefCount() {
if (channelRefBuilder_ == null) {
return channelRef_.size();
} else {
return channelRefBuilder_.getCount();
}
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public io.grpc.channelz.v1.ChannelRef getChannelRef(int index) {
if (channelRefBuilder_ == null) {
return channelRef_.get(index);
} else {
return channelRefBuilder_.getMessage(index);
}
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder setChannelRef(
int index, io.grpc.channelz.v1.ChannelRef value) {
if (channelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelRefIsMutable();
channelRef_.set(index, value);
onChanged();
} else {
channelRefBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder setChannelRef(
int index, io.grpc.channelz.v1.ChannelRef.Builder builderForValue) {
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
channelRef_.set(index, builderForValue.build());
onChanged();
} else {
channelRefBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder addChannelRef(io.grpc.channelz.v1.ChannelRef value) {
if (channelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelRefIsMutable();
channelRef_.add(value);
onChanged();
} else {
channelRefBuilder_.addMessage(value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder addChannelRef(
int index, io.grpc.channelz.v1.ChannelRef value) {
if (channelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelRefIsMutable();
channelRef_.add(index, value);
onChanged();
} else {
channelRefBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder addChannelRef(
io.grpc.channelz.v1.ChannelRef.Builder builderForValue) {
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
channelRef_.add(builderForValue.build());
onChanged();
} else {
channelRefBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder addChannelRef(
int index, io.grpc.channelz.v1.ChannelRef.Builder builderForValue) {
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
channelRef_.add(index, builderForValue.build());
onChanged();
} else {
channelRefBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder addAllChannelRef(
java.lang.Iterable extends io.grpc.channelz.v1.ChannelRef> values) {
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, channelRef_);
onChanged();
} else {
channelRefBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder clearChannelRef() {
if (channelRefBuilder_ == null) {
channelRef_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
channelRefBuilder_.clear();
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public Builder removeChannelRef(int index) {
if (channelRefBuilder_ == null) {
ensureChannelRefIsMutable();
channelRef_.remove(index);
onChanged();
} else {
channelRefBuilder_.remove(index);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public io.grpc.channelz.v1.ChannelRef.Builder getChannelRefBuilder(
int index) {
return getChannelRefFieldBuilder().getBuilder(index);
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public io.grpc.channelz.v1.ChannelRefOrBuilder getChannelRefOrBuilder(
int index) {
if (channelRefBuilder_ == null) {
return channelRef_.get(index); } else {
return channelRefBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public java.util.List extends io.grpc.channelz.v1.ChannelRefOrBuilder>
getChannelRefOrBuilderList() {
if (channelRefBuilder_ != null) {
return channelRefBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(channelRef_);
}
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public io.grpc.channelz.v1.ChannelRef.Builder addChannelRefBuilder() {
return getChannelRefFieldBuilder().addBuilder(
io.grpc.channelz.v1.ChannelRef.getDefaultInstance());
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public io.grpc.channelz.v1.ChannelRef.Builder addChannelRefBuilder(
int index) {
return getChannelRefFieldBuilder().addBuilder(
index, io.grpc.channelz.v1.ChannelRef.getDefaultInstance());
}
/**
*
* There are no ordering guarantees on the order of channel refs.
* There may not be cycles in the ref graph.
* A channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.ChannelRef channel_ref = 3;
*/
public java.util.List
getChannelRefBuilderList() {
return getChannelRefFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder>
getChannelRefFieldBuilder() {
if (channelRefBuilder_ == null) {
channelRefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.ChannelRef, io.grpc.channelz.v1.ChannelRef.Builder, io.grpc.channelz.v1.ChannelRefOrBuilder>(
channelRef_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
channelRef_ = null;
}
return channelRefBuilder_;
}
private java.util.List subchannelRef_ =
java.util.Collections.emptyList();
private void ensureSubchannelRefIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
subchannelRef_ = new java.util.ArrayList(subchannelRef_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SubchannelRef, io.grpc.channelz.v1.SubchannelRef.Builder, io.grpc.channelz.v1.SubchannelRefOrBuilder> subchannelRefBuilder_;
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public java.util.List getSubchannelRefList() {
if (subchannelRefBuilder_ == null) {
return java.util.Collections.unmodifiableList(subchannelRef_);
} else {
return subchannelRefBuilder_.getMessageList();
}
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public int getSubchannelRefCount() {
if (subchannelRefBuilder_ == null) {
return subchannelRef_.size();
} else {
return subchannelRefBuilder_.getCount();
}
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public io.grpc.channelz.v1.SubchannelRef getSubchannelRef(int index) {
if (subchannelRefBuilder_ == null) {
return subchannelRef_.get(index);
} else {
return subchannelRefBuilder_.getMessage(index);
}
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder setSubchannelRef(
int index, io.grpc.channelz.v1.SubchannelRef value) {
if (subchannelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubchannelRefIsMutable();
subchannelRef_.set(index, value);
onChanged();
} else {
subchannelRefBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder setSubchannelRef(
int index, io.grpc.channelz.v1.SubchannelRef.Builder builderForValue) {
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
subchannelRef_.set(index, builderForValue.build());
onChanged();
} else {
subchannelRefBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder addSubchannelRef(io.grpc.channelz.v1.SubchannelRef value) {
if (subchannelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubchannelRefIsMutable();
subchannelRef_.add(value);
onChanged();
} else {
subchannelRefBuilder_.addMessage(value);
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder addSubchannelRef(
int index, io.grpc.channelz.v1.SubchannelRef value) {
if (subchannelRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSubchannelRefIsMutable();
subchannelRef_.add(index, value);
onChanged();
} else {
subchannelRefBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder addSubchannelRef(
io.grpc.channelz.v1.SubchannelRef.Builder builderForValue) {
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
subchannelRef_.add(builderForValue.build());
onChanged();
} else {
subchannelRefBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder addSubchannelRef(
int index, io.grpc.channelz.v1.SubchannelRef.Builder builderForValue) {
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
subchannelRef_.add(index, builderForValue.build());
onChanged();
} else {
subchannelRefBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder addAllSubchannelRef(
java.lang.Iterable extends io.grpc.channelz.v1.SubchannelRef> values) {
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subchannelRef_);
onChanged();
} else {
subchannelRefBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder clearSubchannelRef() {
if (subchannelRefBuilder_ == null) {
subchannelRef_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
subchannelRefBuilder_.clear();
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public Builder removeSubchannelRef(int index) {
if (subchannelRefBuilder_ == null) {
ensureSubchannelRefIsMutable();
subchannelRef_.remove(index);
onChanged();
} else {
subchannelRefBuilder_.remove(index);
}
return this;
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public io.grpc.channelz.v1.SubchannelRef.Builder getSubchannelRefBuilder(
int index) {
return getSubchannelRefFieldBuilder().getBuilder(index);
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public io.grpc.channelz.v1.SubchannelRefOrBuilder getSubchannelRefOrBuilder(
int index) {
if (subchannelRefBuilder_ == null) {
return subchannelRef_.get(index); } else {
return subchannelRefBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public java.util.List extends io.grpc.channelz.v1.SubchannelRefOrBuilder>
getSubchannelRefOrBuilderList() {
if (subchannelRefBuilder_ != null) {
return subchannelRefBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(subchannelRef_);
}
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public io.grpc.channelz.v1.SubchannelRef.Builder addSubchannelRefBuilder() {
return getSubchannelRefFieldBuilder().addBuilder(
io.grpc.channelz.v1.SubchannelRef.getDefaultInstance());
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public io.grpc.channelz.v1.SubchannelRef.Builder addSubchannelRefBuilder(
int index) {
return getSubchannelRefFieldBuilder().addBuilder(
index, io.grpc.channelz.v1.SubchannelRef.getDefaultInstance());
}
/**
*
* At most one of 'channel_ref+subchannel_ref' and 'socket' is set.
* There are no ordering guarantees on the order of subchannel refs.
* There may not be cycles in the ref graph.
* A sub channel ref may be present in more than one channel or subchannel.
*
*
* repeated .grpc.channelz.v1.SubchannelRef subchannel_ref = 4;
*/
public java.util.List
getSubchannelRefBuilderList() {
return getSubchannelRefFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SubchannelRef, io.grpc.channelz.v1.SubchannelRef.Builder, io.grpc.channelz.v1.SubchannelRefOrBuilder>
getSubchannelRefFieldBuilder() {
if (subchannelRefBuilder_ == null) {
subchannelRefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SubchannelRef, io.grpc.channelz.v1.SubchannelRef.Builder, io.grpc.channelz.v1.SubchannelRefOrBuilder>(
subchannelRef_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
subchannelRef_ = null;
}
return subchannelRefBuilder_;
}
private java.util.List socketRef_ =
java.util.Collections.emptyList();
private void ensureSocketRefIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
socketRef_ = new java.util.ArrayList(socketRef_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> socketRefBuilder_;
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public java.util.List getSocketRefList() {
if (socketRefBuilder_ == null) {
return java.util.Collections.unmodifiableList(socketRef_);
} else {
return socketRefBuilder_.getMessageList();
}
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public int getSocketRefCount() {
if (socketRefBuilder_ == null) {
return socketRef_.size();
} else {
return socketRefBuilder_.getCount();
}
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public io.grpc.channelz.v1.SocketRef getSocketRef(int index) {
if (socketRefBuilder_ == null) {
return socketRef_.get(index);
} else {
return socketRefBuilder_.getMessage(index);
}
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder setSocketRef(
int index, io.grpc.channelz.v1.SocketRef value) {
if (socketRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketRefIsMutable();
socketRef_.set(index, value);
onChanged();
} else {
socketRefBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder setSocketRef(
int index, io.grpc.channelz.v1.SocketRef.Builder builderForValue) {
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
socketRef_.set(index, builderForValue.build());
onChanged();
} else {
socketRefBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder addSocketRef(io.grpc.channelz.v1.SocketRef value) {
if (socketRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketRefIsMutable();
socketRef_.add(value);
onChanged();
} else {
socketRefBuilder_.addMessage(value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder addSocketRef(
int index, io.grpc.channelz.v1.SocketRef value) {
if (socketRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSocketRefIsMutable();
socketRef_.add(index, value);
onChanged();
} else {
socketRefBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder addSocketRef(
io.grpc.channelz.v1.SocketRef.Builder builderForValue) {
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
socketRef_.add(builderForValue.build());
onChanged();
} else {
socketRefBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder addSocketRef(
int index, io.grpc.channelz.v1.SocketRef.Builder builderForValue) {
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
socketRef_.add(index, builderForValue.build());
onChanged();
} else {
socketRefBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder addAllSocketRef(
java.lang.Iterable extends io.grpc.channelz.v1.SocketRef> values) {
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, socketRef_);
onChanged();
} else {
socketRefBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder clearSocketRef() {
if (socketRefBuilder_ == null) {
socketRef_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
socketRefBuilder_.clear();
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public Builder removeSocketRef(int index) {
if (socketRefBuilder_ == null) {
ensureSocketRefIsMutable();
socketRef_.remove(index);
onChanged();
} else {
socketRefBuilder_.remove(index);
}
return this;
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public io.grpc.channelz.v1.SocketRef.Builder getSocketRefBuilder(
int index) {
return getSocketRefFieldBuilder().getBuilder(index);
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public io.grpc.channelz.v1.SocketRefOrBuilder getSocketRefOrBuilder(
int index) {
if (socketRefBuilder_ == null) {
return socketRef_.get(index); } else {
return socketRefBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public java.util.List extends io.grpc.channelz.v1.SocketRefOrBuilder>
getSocketRefOrBuilderList() {
if (socketRefBuilder_ != null) {
return socketRefBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(socketRef_);
}
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public io.grpc.channelz.v1.SocketRef.Builder addSocketRefBuilder() {
return getSocketRefFieldBuilder().addBuilder(
io.grpc.channelz.v1.SocketRef.getDefaultInstance());
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public io.grpc.channelz.v1.SocketRef.Builder addSocketRefBuilder(
int index) {
return getSocketRefFieldBuilder().addBuilder(
index, io.grpc.channelz.v1.SocketRef.getDefaultInstance());
}
/**
*
* There are no ordering guarantees on the order of sockets.
*
*
* repeated .grpc.channelz.v1.SocketRef socket_ref = 5;
*/
public java.util.List
getSocketRefBuilderList() {
return getSocketRefFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder>
getSocketRefFieldBuilder() {
if (socketRefBuilder_ == null) {
socketRefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder>(
socketRef_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
socketRef_ = null;
}
return socketRefBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.channelz.v1.Channel)
}
// @@protoc_insertion_point(class_scope:grpc.channelz.v1.Channel)
private static final io.grpc.channelz.v1.Channel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.channelz.v1.Channel();
}
public static io.grpc.channelz.v1.Channel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Channel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.channelz.v1.Channel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}