| // 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.GetChannelResponse} |
| */ |
| public final class GetChannelResponse extends |
| com.google.protobuf.GeneratedMessageV3 implements |
| // @@protoc_insertion_point(message_implements:grpc.channelz.v1.GetChannelResponse) |
| GetChannelResponseOrBuilder { |
| private static final long serialVersionUID = 0L; |
| // Use GetChannelResponse.newBuilder() to construct. |
| private GetChannelResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { |
| super(builder); |
| } |
| private GetChannelResponse() { |
| } |
| |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetChannelResponse( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| this(); |
| if (extensionRegistry == null) { |
| throw new java.lang.NullPointerException(); |
| } |
| int mutable_bitField0_ = 0; |
| com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| com.google.protobuf.UnknownFieldSet.newBuilder(); |
| try { |
| boolean done = false; |
| while (!done) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| done = true; |
| break; |
| default: { |
| if (!parseUnknownFieldProto3( |
| input, unknownFields, extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| io.grpc.channelz.v1.Channel.Builder subBuilder = null; |
| if (channel_ != null) { |
| subBuilder = channel_.toBuilder(); |
| } |
| channel_ = input.readMessage(io.grpc.channelz.v1.Channel.parser(), extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(channel_); |
| channel_ = subBuilder.buildPartial(); |
| } |
| |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetChannelResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetChannelResponse_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.channelz.v1.GetChannelResponse.class, io.grpc.channelz.v1.GetChannelResponse.Builder.class); |
| } |
| |
| public static final int CHANNEL_FIELD_NUMBER = 1; |
| private io.grpc.channelz.v1.Channel channel_; |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public boolean hasChannel() { |
| return channel_ != null; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public io.grpc.channelz.v1.Channel getChannel() { |
| return channel_ == null ? io.grpc.channelz.v1.Channel.getDefaultInstance() : channel_; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder() { |
| return getChannel(); |
| } |
| |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized == 1) return true; |
| if (isInitialized == 0) return false; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| if (channel_ != null) { |
| output.writeMessage(1, getChannel()); |
| } |
| unknownFields.writeTo(output); |
| } |
| |
| public int getSerializedSize() { |
| int size = memoizedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (channel_ != null) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, getChannel()); |
| } |
| size += unknownFields.getSerializedSize(); |
| memoizedSize = size; |
| return size; |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof io.grpc.channelz.v1.GetChannelResponse)) { |
| return super.equals(obj); |
| } |
| io.grpc.channelz.v1.GetChannelResponse other = (io.grpc.channelz.v1.GetChannelResponse) obj; |
| |
| boolean result = true; |
| result = result && (hasChannel() == other.hasChannel()); |
| if (hasChannel()) { |
| result = result && getChannel() |
| .equals(other.getChannel()); |
| } |
| result = result && unknownFields.equals(other.unknownFields); |
| return result; |
| } |
| |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptor().hashCode(); |
| if (hasChannel()) { |
| hash = (37 * hash) + CHANNEL_FIELD_NUMBER; |
| hash = (53 * hash) + getChannel().hashCode(); |
| } |
| hash = (29 * hash) + unknownFields.hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static io.grpc.channelz.v1.GetChannelResponse parseFrom( |
| java.nio.ByteBuffer data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse 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.GetChannelResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse 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.GetChannelResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse 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.GetChannelResponse parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseDelimitedWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse 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.GetChannelResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input); |
| } |
| public static io.grpc.channelz.v1.GetChannelResponse parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return com.google.protobuf.GeneratedMessageV3 |
| .parseWithIOException(PARSER, input, extensionRegistry); |
| } |
| |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder() { |
| return DEFAULT_INSTANCE.toBuilder(); |
| } |
| public static Builder newBuilder(io.grpc.channelz.v1.GetChannelResponse prototype) { |
| return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { |
| return this == DEFAULT_INSTANCE |
| ? new Builder() : new Builder().mergeFrom(this); |
| } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code grpc.channelz.v1.GetChannelResponse} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements |
| // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.GetChannelResponse) |
| io.grpc.channelz.v1.GetChannelResponseOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetChannelResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetChannelResponse_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| io.grpc.channelz.v1.GetChannelResponse.class, io.grpc.channelz.v1.GetChannelResponse.Builder.class); |
| } |
| |
| // Construct using io.grpc.channelz.v1.GetChannelResponse.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessageV3 |
| .alwaysUseFieldBuilders) { |
| } |
| } |
| public Builder clear() { |
| super.clear(); |
| if (channelBuilder_ == null) { |
| channel_ = null; |
| } else { |
| channel_ = null; |
| channelBuilder_ = null; |
| } |
| return this; |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_GetChannelResponse_descriptor; |
| } |
| |
| public io.grpc.channelz.v1.GetChannelResponse getDefaultInstanceForType() { |
| return io.grpc.channelz.v1.GetChannelResponse.getDefaultInstance(); |
| } |
| |
| public io.grpc.channelz.v1.GetChannelResponse build() { |
| io.grpc.channelz.v1.GetChannelResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public io.grpc.channelz.v1.GetChannelResponse buildPartial() { |
| io.grpc.channelz.v1.GetChannelResponse result = new io.grpc.channelz.v1.GetChannelResponse(this); |
| if (channelBuilder_ == null) { |
| result.channel_ = channel_; |
| } else { |
| result.channel_ = channelBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder clone() { |
| return (Builder) super.clone(); |
| } |
| public Builder setField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.setField(field, value); |
| } |
| public Builder clearField( |
| com.google.protobuf.Descriptors.FieldDescriptor field) { |
| return (Builder) super.clearField(field); |
| } |
| public Builder clearOneof( |
| com.google.protobuf.Descriptors.OneofDescriptor oneof) { |
| return (Builder) super.clearOneof(oneof); |
| } |
| public Builder setRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| int index, java.lang.Object value) { |
| return (Builder) super.setRepeatedField(field, index, value); |
| } |
| public Builder addRepeatedField( |
| com.google.protobuf.Descriptors.FieldDescriptor field, |
| java.lang.Object value) { |
| return (Builder) super.addRepeatedField(field, value); |
| } |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof io.grpc.channelz.v1.GetChannelResponse) { |
| return mergeFrom((io.grpc.channelz.v1.GetChannelResponse)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(io.grpc.channelz.v1.GetChannelResponse other) { |
| if (other == io.grpc.channelz.v1.GetChannelResponse.getDefaultInstance()) return this; |
| if (other.hasChannel()) { |
| mergeChannel(other.getChannel()); |
| } |
| this.mergeUnknownFields(other.unknownFields); |
| onChanged(); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| io.grpc.channelz.v1.GetChannelResponse parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (io.grpc.channelz.v1.GetChannelResponse) e.getUnfinishedMessage(); |
| throw e.unwrapIOException(); |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| private io.grpc.channelz.v1.Channel channel_ = null; |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.channelz.v1.Channel, io.grpc.channelz.v1.Channel.Builder, io.grpc.channelz.v1.ChannelOrBuilder> channelBuilder_; |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public boolean hasChannel() { |
| return channelBuilder_ != null || channel_ != null; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public io.grpc.channelz.v1.Channel getChannel() { |
| if (channelBuilder_ == null) { |
| return channel_ == null ? io.grpc.channelz.v1.Channel.getDefaultInstance() : channel_; |
| } else { |
| return channelBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public Builder setChannel(io.grpc.channelz.v1.Channel value) { |
| if (channelBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| channel_ = value; |
| onChanged(); |
| } else { |
| channelBuilder_.setMessage(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public Builder setChannel( |
| io.grpc.channelz.v1.Channel.Builder builderForValue) { |
| if (channelBuilder_ == null) { |
| channel_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| channelBuilder_.setMessage(builderForValue.build()); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public Builder mergeChannel(io.grpc.channelz.v1.Channel value) { |
| if (channelBuilder_ == null) { |
| if (channel_ != null) { |
| channel_ = |
| io.grpc.channelz.v1.Channel.newBuilder(channel_).mergeFrom(value).buildPartial(); |
| } else { |
| channel_ = value; |
| } |
| onChanged(); |
| } else { |
| channelBuilder_.mergeFrom(value); |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public Builder clearChannel() { |
| if (channelBuilder_ == null) { |
| channel_ = null; |
| onChanged(); |
| } else { |
| channel_ = null; |
| channelBuilder_ = null; |
| } |
| |
| return this; |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public io.grpc.channelz.v1.Channel.Builder getChannelBuilder() { |
| |
| onChanged(); |
| return getChannelFieldBuilder().getBuilder(); |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder() { |
| if (channelBuilder_ != null) { |
| return channelBuilder_.getMessageOrBuilder(); |
| } else { |
| return channel_ == null ? |
| io.grpc.channelz.v1.Channel.getDefaultInstance() : channel_; |
| } |
| } |
| /** |
| * <pre> |
| * The Channel that corresponds to the requested channel_id. This field |
| * should be set. |
| * </pre> |
| * |
| * <code>.grpc.channelz.v1.Channel channel = 1;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.channelz.v1.Channel, io.grpc.channelz.v1.Channel.Builder, io.grpc.channelz.v1.ChannelOrBuilder> |
| getChannelFieldBuilder() { |
| if (channelBuilder_ == null) { |
| channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< |
| io.grpc.channelz.v1.Channel, io.grpc.channelz.v1.Channel.Builder, io.grpc.channelz.v1.ChannelOrBuilder>( |
| getChannel(), |
| getParentForChildren(), |
| isClean()); |
| channel_ = null; |
| } |
| return channelBuilder_; |
| } |
| public final Builder setUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.setUnknownFieldsProto3(unknownFields); |
| } |
| |
| public final Builder mergeUnknownFields( |
| final com.google.protobuf.UnknownFieldSet unknownFields) { |
| return super.mergeUnknownFields(unknownFields); |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:grpc.channelz.v1.GetChannelResponse) |
| } |
| |
| // @@protoc_insertion_point(class_scope:grpc.channelz.v1.GetChannelResponse) |
| private static final io.grpc.channelz.v1.GetChannelResponse DEFAULT_INSTANCE; |
| static { |
| DEFAULT_INSTANCE = new io.grpc.channelz.v1.GetChannelResponse(); |
| } |
| |
| public static io.grpc.channelz.v1.GetChannelResponse getDefaultInstance() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| private static final com.google.protobuf.Parser<GetChannelResponse> |
| PARSER = new com.google.protobuf.AbstractParser<GetChannelResponse>() { |
| public GetChannelResponse parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetChannelResponse(input, extensionRegistry); |
| } |
| }; |
| |
| public static com.google.protobuf.Parser<GetChannelResponse> parser() { |
| return PARSER; |
| } |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetChannelResponse> getParserForType() { |
| return PARSER; |
| } |
| |
| public io.grpc.channelz.v1.GetChannelResponse getDefaultInstanceForType() { |
| return DEFAULT_INSTANCE; |
| } |
| |
| } |
| |