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

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

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

package io.grpc.channelz.v1;

/**
 * Protobuf type {@code grpc.channelz.v1.GetServerSocketsResponse}
 */
public final class GetServerSocketsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.channelz.v1.GetServerSocketsResponse)
    GetServerSocketsResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetServerSocketsResponse.newBuilder() to construct.
  private GetServerSocketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GetServerSocketsResponse() {
    socketRef_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new GetServerSocketsResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetServerSocketsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetServerSocketsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.channelz.v1.GetServerSocketsResponse.class, io.grpc.channelz.v1.GetServerSocketsResponse.Builder.class);
  }

  public static final int SOCKET_REF_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List socketRef_;
  /**
   * 
   * list of socket refs that the connection detail service knows about.  Sorted in
   * ascending socket_id order.
   * Must contain at least 1 result, otherwise 'end' must be true.
   * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ @java.lang.Override public java.util.List getSocketRefList() { return socketRef_; } /** *
   * list of socket refs that the connection detail service knows about.  Sorted in
   * ascending socket_id order.
   * Must contain at least 1 result, otherwise 'end' must be true.
   * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ @java.lang.Override public java.util.List getSocketRefOrBuilderList() { return socketRef_; } /** *
   * list of socket refs that the connection detail service knows about.  Sorted in
   * ascending socket_id order.
   * Must contain at least 1 result, otherwise 'end' must be true.
   * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ @java.lang.Override public int getSocketRefCount() { return socketRef_.size(); } /** *
   * list of socket refs that the connection detail service knows about.  Sorted in
   * ascending socket_id order.
   * Must contain at least 1 result, otherwise 'end' must be true.
   * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ @java.lang.Override public io.grpc.channelz.v1.SocketRef getSocketRef(int index) { return socketRef_.get(index); } /** *
   * list of socket refs that the connection detail service knows about.  Sorted in
   * ascending socket_id order.
   * Must contain at least 1 result, otherwise 'end' must be true.
   * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ @java.lang.Override public io.grpc.channelz.v1.SocketRefOrBuilder getSocketRefOrBuilder( int index) { return socketRef_.get(index); } public static final int END_FIELD_NUMBER = 2; private boolean end_ = false; /** *
   * If set, indicates that the list of sockets is the final list.  Requesting
   * more sockets will only return more if they are created after this RPC
   * completes.
   * 
* * bool end = 2; * @return The end. */ @java.lang.Override public boolean getEnd() { return end_; } 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 { for (int i = 0; i < socketRef_.size(); i++) { output.writeMessage(1, socketRef_.get(i)); } if (end_ != false) { output.writeBool(2, end_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < socketRef_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, socketRef_.get(i)); } if (end_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, end_); } 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.GetServerSocketsResponse)) { return super.equals(obj); } io.grpc.channelz.v1.GetServerSocketsResponse other = (io.grpc.channelz.v1.GetServerSocketsResponse) obj; if (!getSocketRefList() .equals(other.getSocketRefList())) return false; if (getEnd() != other.getEnd()) 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 (getSocketRefCount() > 0) { hash = (37 * hash) + SOCKET_REF_FIELD_NUMBER; hash = (53 * hash) + getSocketRefList().hashCode(); } hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnd()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.GetServerSocketsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetServerSocketsResponse 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.GetServerSocketsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetServerSocketsResponse 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.GetServerSocketsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetServerSocketsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.GetServerSocketsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetServerSocketsResponse 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.GetServerSocketsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetServerSocketsResponse 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.GetServerSocketsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetServerSocketsResponse 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.GetServerSocketsResponse 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; } /** * Protobuf type {@code grpc.channelz.v1.GetServerSocketsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.GetServerSocketsResponse) io.grpc.channelz.v1.GetServerSocketsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetServerSocketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetServerSocketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.GetServerSocketsResponse.class, io.grpc.channelz.v1.GetServerSocketsResponse.Builder.class); } // Construct using io.grpc.channelz.v1.GetServerSocketsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (socketRefBuilder_ == null) { socketRef_ = java.util.Collections.emptyList(); } else { socketRef_ = null; socketRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); end_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetServerSocketsResponse_descriptor; } @java.lang.Override public io.grpc.channelz.v1.GetServerSocketsResponse getDefaultInstanceForType() { return io.grpc.channelz.v1.GetServerSocketsResponse.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.GetServerSocketsResponse build() { io.grpc.channelz.v1.GetServerSocketsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.GetServerSocketsResponse buildPartial() { io.grpc.channelz.v1.GetServerSocketsResponse result = new io.grpc.channelz.v1.GetServerSocketsResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.channelz.v1.GetServerSocketsResponse result) { if (socketRefBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { socketRef_ = java.util.Collections.unmodifiableList(socketRef_); bitField0_ = (bitField0_ & ~0x00000001); } result.socketRef_ = socketRef_; } else { result.socketRef_ = socketRefBuilder_.build(); } } private void buildPartial0(io.grpc.channelz.v1.GetServerSocketsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = end_; } } @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.GetServerSocketsResponse) { return mergeFrom((io.grpc.channelz.v1.GetServerSocketsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.GetServerSocketsResponse other) { if (other == io.grpc.channelz.v1.GetServerSocketsResponse.getDefaultInstance()) return this; if (socketRefBuilder_ == null) { if (!other.socketRef_.isEmpty()) { if (socketRef_.isEmpty()) { socketRef_ = other.socketRef_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSocketRefIsMutable(); socketRef_.addAll(other.socketRef_); } onChanged(); } } else { if (!other.socketRef_.isEmpty()) { if (socketRefBuilder_.isEmpty()) { socketRefBuilder_.dispose(); socketRefBuilder_ = null; socketRef_ = other.socketRef_; bitField0_ = (bitField0_ & ~0x00000001); socketRefBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSocketRefFieldBuilder() : null; } else { socketRefBuilder_.addAllMessages(other.socketRef_); } } } if (other.getEnd() != false) { setEnd(other.getEnd()); } 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: { 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 10 case 16: { end_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 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 java.util.List socketRef_ = java.util.Collections.emptyList(); private void ensureSocketRefIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { socketRef_ = new java.util.ArrayList(socketRef_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.channelz.v1.SocketRef, io.grpc.channelz.v1.SocketRef.Builder, io.grpc.channelz.v1.SocketRefOrBuilder> socketRefBuilder_; /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public java.util.List getSocketRefList() { if (socketRefBuilder_ == null) { return java.util.Collections.unmodifiableList(socketRef_); } else { return socketRefBuilder_.getMessageList(); } } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public int getSocketRefCount() { if (socketRefBuilder_ == null) { return socketRef_.size(); } else { return socketRefBuilder_.getCount(); } } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public io.grpc.channelz.v1.SocketRef getSocketRef(int index) { if (socketRefBuilder_ == null) { return socketRef_.get(index); } else { return socketRefBuilder_.getMessage(index); } } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public Builder addAllSocketRef( java.lang.Iterable values) { if (socketRefBuilder_ == null) { ensureSocketRefIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, socketRef_); onChanged(); } else { socketRefBuilder_.addAllMessages(values); } return this; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public Builder clearSocketRef() { if (socketRefBuilder_ == null) { socketRef_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { socketRefBuilder_.clear(); } return this; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public Builder removeSocketRef(int index) { if (socketRefBuilder_ == null) { ensureSocketRefIsMutable(); socketRef_.remove(index); onChanged(); } else { socketRefBuilder_.remove(index); } return this; } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public io.grpc.channelz.v1.SocketRef.Builder getSocketRefBuilder( int index) { return getSocketRefFieldBuilder().getBuilder(index); } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public io.grpc.channelz.v1.SocketRefOrBuilder getSocketRefOrBuilder( int index) { if (socketRefBuilder_ == null) { return socketRef_.get(index); } else { return socketRefBuilder_.getMessageOrBuilder(index); } } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public java.util.List getSocketRefOrBuilderList() { if (socketRefBuilder_ != null) { return socketRefBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(socketRef_); } } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public io.grpc.channelz.v1.SocketRef.Builder addSocketRefBuilder() { return getSocketRefFieldBuilder().addBuilder( io.grpc.channelz.v1.SocketRef.getDefaultInstance()); } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ public io.grpc.channelz.v1.SocketRef.Builder addSocketRefBuilder( int index) { return getSocketRefFieldBuilder().addBuilder( index, io.grpc.channelz.v1.SocketRef.getDefaultInstance()); } /** *
     * list of socket refs that the connection detail service knows about.  Sorted in
     * ascending socket_id order.
     * Must contain at least 1 result, otherwise 'end' must be true.
     * 
* * repeated .grpc.channelz.v1.SocketRef socket_ref = 1; */ 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); socketRef_ = null; } return socketRefBuilder_; } private boolean end_ ; /** *
     * If set, indicates that the list of sockets is the final list.  Requesting
     * more sockets will only return more if they are created after this RPC
     * completes.
     * 
* * bool end = 2; * @return The end. */ @java.lang.Override public boolean getEnd() { return end_; } /** *
     * If set, indicates that the list of sockets is the final list.  Requesting
     * more sockets will only return more if they are created after this RPC
     * completes.
     * 
* * bool end = 2; * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(boolean value) { end_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * If set, indicates that the list of sockets is the final list.  Requesting
     * more sockets will only return more if they are created after this RPC
     * completes.
     * 
* * bool end = 2; * @return This builder for chaining. */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = false; onChanged(); return this; } @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.GetServerSocketsResponse) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.GetServerSocketsResponse) private static final io.grpc.channelz.v1.GetServerSocketsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.GetServerSocketsResponse(); } public static io.grpc.channelz.v1.GetServerSocketsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetServerSocketsResponse 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.GetServerSocketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy