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

io.grpc.channelz.v1.GetSocketResponse Maven / Gradle / Ivy

There is a newer version: 1.68.1
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;

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

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

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

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

  private int bitField0_;
  public static final int SOCKET_FIELD_NUMBER = 1;
  private io.grpc.channelz.v1.Socket socket_;
  /**
   * 
   * The Socket that corresponds to the requested socket_id.  This field
   * should be set.
   * 
* * .grpc.channelz.v1.Socket socket = 1; * @return Whether the socket field is set. */ @java.lang.Override public boolean hasSocket() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The Socket that corresponds to the requested socket_id.  This field
   * should be set.
   * 
* * .grpc.channelz.v1.Socket socket = 1; * @return The socket. */ @java.lang.Override public io.grpc.channelz.v1.Socket getSocket() { return socket_ == null ? io.grpc.channelz.v1.Socket.getDefaultInstance() : socket_; } /** *
   * The Socket that corresponds to the requested socket_id.  This field
   * should be set.
   * 
* * .grpc.channelz.v1.Socket socket = 1; */ @java.lang.Override public io.grpc.channelz.v1.SocketOrBuilder getSocketOrBuilder() { return socket_ == null ? io.grpc.channelz.v1.Socket.getDefaultInstance() : socket_; } 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, getSocket()); } 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, getSocket()); } 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.GetSocketResponse)) { return super.equals(obj); } io.grpc.channelz.v1.GetSocketResponse other = (io.grpc.channelz.v1.GetSocketResponse) obj; if (hasSocket() != other.hasSocket()) return false; if (hasSocket()) { if (!getSocket() .equals(other.getSocket())) 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 (hasSocket()) { hash = (37 * hash) + SOCKET_FIELD_NUMBER; hash = (53 * hash) + getSocket().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.GetSocketResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetSocketResponse 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.GetSocketResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetSocketResponse 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.GetSocketResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.GetSocketResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.GetSocketResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetSocketResponse 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.GetSocketResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetSocketResponse 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.GetSocketResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.GetSocketResponse 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.GetSocketResponse 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.GetSocketResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.GetSocketResponse) io.grpc.channelz.v1.GetSocketResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetSocketResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetSocketResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.GetSocketResponse.class, io.grpc.channelz.v1.GetSocketResponse.Builder.class); } // Construct using io.grpc.channelz.v1.GetSocketResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSocketFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; socket_ = null; if (socketBuilder_ != null) { socketBuilder_.dispose(); socketBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetSocketResponse_descriptor; } @java.lang.Override public io.grpc.channelz.v1.GetSocketResponse getDefaultInstanceForType() { return io.grpc.channelz.v1.GetSocketResponse.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.GetSocketResponse build() { io.grpc.channelz.v1.GetSocketResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.GetSocketResponse buildPartial() { io.grpc.channelz.v1.GetSocketResponse result = new io.grpc.channelz.v1.GetSocketResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.GetSocketResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.socket_ = socketBuilder_ == null ? socket_ : socketBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.GetSocketResponse) { return mergeFrom((io.grpc.channelz.v1.GetSocketResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.GetSocketResponse other) { if (other == io.grpc.channelz.v1.GetSocketResponse.getDefaultInstance()) return this; if (other.hasSocket()) { mergeSocket(other.getSocket()); } 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( getSocketFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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.Socket socket_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Socket, io.grpc.channelz.v1.Socket.Builder, io.grpc.channelz.v1.SocketOrBuilder> socketBuilder_; /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; * @return Whether the socket field is set. */ public boolean hasSocket() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; * @return The socket. */ public io.grpc.channelz.v1.Socket getSocket() { if (socketBuilder_ == null) { return socket_ == null ? io.grpc.channelz.v1.Socket.getDefaultInstance() : socket_; } else { return socketBuilder_.getMessage(); } } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public Builder setSocket(io.grpc.channelz.v1.Socket value) { if (socketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } socket_ = value; } else { socketBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public Builder setSocket( io.grpc.channelz.v1.Socket.Builder builderForValue) { if (socketBuilder_ == null) { socket_ = builderForValue.build(); } else { socketBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public Builder mergeSocket(io.grpc.channelz.v1.Socket value) { if (socketBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && socket_ != null && socket_ != io.grpc.channelz.v1.Socket.getDefaultInstance()) { getSocketBuilder().mergeFrom(value); } else { socket_ = value; } } else { socketBuilder_.mergeFrom(value); } if (socket_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public Builder clearSocket() { bitField0_ = (bitField0_ & ~0x00000001); socket_ = null; if (socketBuilder_ != null) { socketBuilder_.dispose(); socketBuilder_ = null; } onChanged(); return this; } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public io.grpc.channelz.v1.Socket.Builder getSocketBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSocketFieldBuilder().getBuilder(); } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ public io.grpc.channelz.v1.SocketOrBuilder getSocketOrBuilder() { if (socketBuilder_ != null) { return socketBuilder_.getMessageOrBuilder(); } else { return socket_ == null ? io.grpc.channelz.v1.Socket.getDefaultInstance() : socket_; } } /** *
     * The Socket that corresponds to the requested socket_id.  This field
     * should be set.
     * 
* * .grpc.channelz.v1.Socket socket = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Socket, io.grpc.channelz.v1.Socket.Builder, io.grpc.channelz.v1.SocketOrBuilder> getSocketFieldBuilder() { if (socketBuilder_ == null) { socketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Socket, io.grpc.channelz.v1.Socket.Builder, io.grpc.channelz.v1.SocketOrBuilder>( getSocket(), getParentForChildren(), isClean()); socket_ = null; } return socketBuilder_; } @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.GetSocketResponse) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.GetSocketResponse) private static final io.grpc.channelz.v1.GetSocketResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.GetSocketResponse(); } public static io.grpc.channelz.v1.GetSocketResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetSocketResponse 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.GetSocketResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy