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

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

There is a newer version: 2.0.0.0-RC3
Show newest version
// 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;

/**
 * 
 * Server represents a single server.  There may be multiple servers in a single
 * program.
 * 
* * Protobuf type {@code grpc.channelz.v1.Server} */ public final class Server extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.Server) ServerOrBuilder { private static final long serialVersionUID = 0L; // Use Server.newBuilder() to construct. private Server(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Server() { listenSocket_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Server(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Server_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Server_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Server.class, io.grpc.channelz.v1.Server.Builder.class); } private int bitField0_; public static final int REF_FIELD_NUMBER = 1; private io.grpc.channelz.v1.ServerRef ref_; /** *
   * The identifier for a Server.  This should be set.
   * 
* * .grpc.channelz.v1.ServerRef ref = 1; * @return Whether the ref field is set. */ @java.lang.Override public boolean hasRef() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The identifier for a Server.  This should be set.
   * 
* * .grpc.channelz.v1.ServerRef ref = 1; * @return The ref. */ @java.lang.Override public io.grpc.channelz.v1.ServerRef getRef() { return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; } /** *
   * The identifier for a Server.  This should be set.
   * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ @java.lang.Override public io.grpc.channelz.v1.ServerRefOrBuilder getRefOrBuilder() { return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; } public static final int DATA_FIELD_NUMBER = 2; private io.grpc.channelz.v1.ServerData data_; /** *
   * The associated data of the Server.
   * 
* * .grpc.channelz.v1.ServerData data = 2; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The associated data of the Server.
   * 
* * .grpc.channelz.v1.ServerData data = 2; * @return The data. */ @java.lang.Override public io.grpc.channelz.v1.ServerData getData() { return data_ == null ? io.grpc.channelz.v1.ServerData.getDefaultInstance() : data_; } /** *
   * The associated data of the Server.
   * 
* * .grpc.channelz.v1.ServerData data = 2; */ @java.lang.Override public io.grpc.channelz.v1.ServerDataOrBuilder getDataOrBuilder() { return data_ == null ? io.grpc.channelz.v1.ServerData.getDefaultInstance() : data_; } public static final int LISTEN_SOCKET_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List listenSocket_; /** *
   * The sockets that the server is listening on.  There are no ordering
   * guarantees.  This may be absent.
   * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ @java.lang.Override public java.util.List getListenSocketList() { return listenSocket_; } /** *
   * The sockets that the server is listening on.  There are no ordering
   * guarantees.  This may be absent.
   * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ @java.lang.Override public java.util.List getListenSocketOrBuilderList() { return listenSocket_; } /** *
   * The sockets that the server is listening on.  There are no ordering
   * guarantees.  This may be absent.
   * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ @java.lang.Override public int getListenSocketCount() { return listenSocket_.size(); } /** *
   * The sockets that the server is listening on.  There are no ordering
   * guarantees.  This may be absent.
   * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ @java.lang.Override public io.grpc.channelz.v1.SocketRef getListenSocket(int index) { return listenSocket_.get(index); } /** *
   * The sockets that the server is listening on.  There are no ordering
   * guarantees.  This may be absent.
   * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ @java.lang.Override public io.grpc.channelz.v1.SocketRefOrBuilder getListenSocketOrBuilder( int index) { return listenSocket_.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 < listenSocket_.size(); i++) { output.writeMessage(3, listenSocket_.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 < listenSocket_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, listenSocket_.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.Server)) { return super.equals(obj); } io.grpc.channelz.v1.Server other = (io.grpc.channelz.v1.Server) 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 (!getListenSocketList() .equals(other.getListenSocketList())) 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 (getListenSocketCount() > 0) { hash = (37 * hash) + LISTEN_SOCKET_FIELD_NUMBER; hash = (53 * hash) + getListenSocketList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.Server parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Server 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.Server parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Server 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.Server parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Server parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Server parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Server 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.Server parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Server 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.Server parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Server 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.Server 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; } /** *
   * Server represents a single server.  There may be multiple servers in a single
   * program.
   * 
* * Protobuf type {@code grpc.channelz.v1.Server} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Server) io.grpc.channelz.v1.ServerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Server_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Server_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Server.class, io.grpc.channelz.v1.Server.Builder.class); } // Construct using io.grpc.channelz.v1.Server.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(); getListenSocketFieldBuilder(); } } @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 (listenSocketBuilder_ == null) { listenSocket_ = java.util.Collections.emptyList(); } else { listenSocket_ = null; listenSocketBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Server_descriptor; } @java.lang.Override public io.grpc.channelz.v1.Server getDefaultInstanceForType() { return io.grpc.channelz.v1.Server.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.Server build() { io.grpc.channelz.v1.Server result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.Server buildPartial() { io.grpc.channelz.v1.Server result = new io.grpc.channelz.v1.Server(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.channelz.v1.Server result) { if (listenSocketBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { listenSocket_ = java.util.Collections.unmodifiableList(listenSocket_); bitField0_ = (bitField0_ & ~0x00000004); } result.listenSocket_ = listenSocket_; } else { result.listenSocket_ = listenSocketBuilder_.build(); } } private void buildPartial0(io.grpc.channelz.v1.Server 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.Server) { return mergeFrom((io.grpc.channelz.v1.Server)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.Server other) { if (other == io.grpc.channelz.v1.Server.getDefaultInstance()) return this; if (other.hasRef()) { mergeRef(other.getRef()); } if (other.hasData()) { mergeData(other.getData()); } if (listenSocketBuilder_ == null) { if (!other.listenSocket_.isEmpty()) { if (listenSocket_.isEmpty()) { listenSocket_ = other.listenSocket_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureListenSocketIsMutable(); listenSocket_.addAll(other.listenSocket_); } onChanged(); } } else { if (!other.listenSocket_.isEmpty()) { if (listenSocketBuilder_.isEmpty()) { listenSocketBuilder_.dispose(); listenSocketBuilder_ = null; listenSocket_ = other.listenSocket_; bitField0_ = (bitField0_ & ~0x00000004); listenSocketBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getListenSocketFieldBuilder() : null; } else { listenSocketBuilder_.addAllMessages(other.listenSocket_); } } } 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.SocketRef m = input.readMessage( io.grpc.channelz.v1.SocketRef.parser(), extensionRegistry); if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); listenSocket_.add(m); } else { listenSocketBuilder_.addMessage(m); } break; } // case 26 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.ServerRef ref_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerRef, io.grpc.channelz.v1.ServerRef.Builder, io.grpc.channelz.v1.ServerRefOrBuilder> refBuilder_; /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; * @return Whether the ref field is set. */ public boolean hasRef() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; * @return The ref. */ public io.grpc.channelz.v1.ServerRef getRef() { if (refBuilder_ == null) { return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; } else { return refBuilder_.getMessage(); } } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public Builder setRef(io.grpc.channelz.v1.ServerRef value) { if (refBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ref_ = value; } else { refBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public Builder setRef( io.grpc.channelz.v1.ServerRef.Builder builderForValue) { if (refBuilder_ == null) { ref_ = builderForValue.build(); } else { refBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public Builder mergeRef(io.grpc.channelz.v1.ServerRef value) { if (refBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && ref_ != null && ref_ != io.grpc.channelz.v1.ServerRef.getDefaultInstance()) { getRefBuilder().mergeFrom(value); } else { ref_ = value; } } else { refBuilder_.mergeFrom(value); } if (ref_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000001); ref_ = null; if (refBuilder_ != null) { refBuilder_.dispose(); refBuilder_ = null; } onChanged(); return this; } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public io.grpc.channelz.v1.ServerRef.Builder getRefBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRefFieldBuilder().getBuilder(); } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ public io.grpc.channelz.v1.ServerRefOrBuilder getRefOrBuilder() { if (refBuilder_ != null) { return refBuilder_.getMessageOrBuilder(); } else { return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; } } /** *
     * The identifier for a Server.  This should be set.
     * 
* * .grpc.channelz.v1.ServerRef ref = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerRef, io.grpc.channelz.v1.ServerRef.Builder, io.grpc.channelz.v1.ServerRefOrBuilder> getRefFieldBuilder() { if (refBuilder_ == null) { refBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerRef, io.grpc.channelz.v1.ServerRef.Builder, io.grpc.channelz.v1.ServerRefOrBuilder>( getRef(), getParentForChildren(), isClean()); ref_ = null; } return refBuilder_; } private io.grpc.channelz.v1.ServerData data_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerData, io.grpc.channelz.v1.ServerData.Builder, io.grpc.channelz.v1.ServerDataOrBuilder> dataBuilder_; /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; * @return Whether the data field is set. */ public boolean hasData() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; * @return The data. */ public io.grpc.channelz.v1.ServerData getData() { if (dataBuilder_ == null) { return data_ == null ? io.grpc.channelz.v1.ServerData.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public Builder setData(io.grpc.channelz.v1.ServerData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; } else { dataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public Builder setData( io.grpc.channelz.v1.ServerData.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); } else { dataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public Builder mergeData(io.grpc.channelz.v1.ServerData value) { if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && data_ != null && data_ != io.grpc.channelz.v1.ServerData.getDefaultInstance()) { getDataBuilder().mergeFrom(value); } else { data_ = value; } } else { dataBuilder_.mergeFrom(value); } if (data_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = null; if (dataBuilder_ != null) { dataBuilder_.dispose(); dataBuilder_ = null; } onChanged(); return this; } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public io.grpc.channelz.v1.ServerData.Builder getDataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ public io.grpc.channelz.v1.ServerDataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? io.grpc.channelz.v1.ServerData.getDefaultInstance() : data_; } } /** *
     * The associated data of the Server.
     * 
* * .grpc.channelz.v1.ServerData data = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerData, io.grpc.channelz.v1.ServerData.Builder, io.grpc.channelz.v1.ServerDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.ServerData, io.grpc.channelz.v1.ServerData.Builder, io.grpc.channelz.v1.ServerDataOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private java.util.List listenSocket_ = java.util.Collections.emptyList(); private void ensureListenSocketIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { listenSocket_ = new java.util.ArrayList(listenSocket_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> listenSocketBuilder_; /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public java.util.List getListenSocketList() { if (listenSocketBuilder_ == null) { return java.util.Collections.unmodifiableList(listenSocket_); } else { return listenSocketBuilder_.getMessageList(); } } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public int getListenSocketCount() { if (listenSocketBuilder_ == null) { return listenSocket_.size(); } else { return listenSocketBuilder_.getCount(); } } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public io.grpc.channelz.v1.SocketRef getListenSocket(int index) { if (listenSocketBuilder_ == null) { return listenSocket_.get(index); } else { return listenSocketBuilder_.getMessage(index); } } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder setListenSocket( int index, io.grpc.channelz.v1.SocketRef value) { if (listenSocketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListenSocketIsMutable(); listenSocket_.set(index, value); onChanged(); } else { listenSocketBuilder_.setMessage(index, value); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder setListenSocket( int index, io.grpc.channelz.v1.SocketRef.Builder builderForValue) { if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); listenSocket_.set(index, builderForValue.build()); onChanged(); } else { listenSocketBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder addListenSocket(io.grpc.channelz.v1.SocketRef value) { if (listenSocketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListenSocketIsMutable(); listenSocket_.add(value); onChanged(); } else { listenSocketBuilder_.addMessage(value); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder addListenSocket( int index, io.grpc.channelz.v1.SocketRef value) { if (listenSocketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureListenSocketIsMutable(); listenSocket_.add(index, value); onChanged(); } else { listenSocketBuilder_.addMessage(index, value); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder addListenSocket( io.grpc.channelz.v1.SocketRef.Builder builderForValue) { if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); listenSocket_.add(builderForValue.build()); onChanged(); } else { listenSocketBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder addListenSocket( int index, io.grpc.channelz.v1.SocketRef.Builder builderForValue) { if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); listenSocket_.add(index, builderForValue.build()); onChanged(); } else { listenSocketBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder addAllListenSocket( java.lang.Iterable values) { if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, listenSocket_); onChanged(); } else { listenSocketBuilder_.addAllMessages(values); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder clearListenSocket() { if (listenSocketBuilder_ == null) { listenSocket_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { listenSocketBuilder_.clear(); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public Builder removeListenSocket(int index) { if (listenSocketBuilder_ == null) { ensureListenSocketIsMutable(); listenSocket_.remove(index); onChanged(); } else { listenSocketBuilder_.remove(index); } return this; } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public io.grpc.channelz.v1.SocketRef.Builder getListenSocketBuilder( int index) { return getListenSocketFieldBuilder().getBuilder(index); } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public io.grpc.channelz.v1.SocketRefOrBuilder getListenSocketOrBuilder( int index) { if (listenSocketBuilder_ == null) { return listenSocket_.get(index); } else { return listenSocketBuilder_.getMessageOrBuilder(index); } } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public java.util.List getListenSocketOrBuilderList() { if (listenSocketBuilder_ != null) { return listenSocketBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(listenSocket_); } } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public io.grpc.channelz.v1.SocketRef.Builder addListenSocketBuilder() { return getListenSocketFieldBuilder().addBuilder( io.grpc.channelz.v1.SocketRef.getDefaultInstance()); } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public io.grpc.channelz.v1.SocketRef.Builder addListenSocketBuilder( int index) { return getListenSocketFieldBuilder().addBuilder( index, io.grpc.channelz.v1.SocketRef.getDefaultInstance()); } /** *
     * The sockets that the server is listening on.  There are no ordering
     * guarantees.  This may be absent.
     * 
* * repeated .grpc.channelz.v1.SocketRef listen_socket = 3; */ public java.util.List getListenSocketBuilderList() { return getListenSocketFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> getListenSocketFieldBuilder() { if (listenSocketBuilder_ == null) { listenSocketBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder>( listenSocket_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); listenSocket_ = null; } return listenSocketBuilder_; } @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.Server) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.Server) private static final io.grpc.channelz.v1.Server DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.Server(); } public static io.grpc.channelz.v1.Server getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Server 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.Server getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy