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

com.tencent.angel.protobuf.generated.MasterPSServiceProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: MasterPSService.proto

package com.tencent.angel.protobuf.generated;

public final class MasterPSServiceProtos {
  private MasterPSServiceProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface GetThreadStackRequestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code GetThreadStackRequest}
   */
  public static final class GetThreadStackRequest extends
      com.google.protobuf.GeneratedMessage
      implements GetThreadStackRequestOrBuilder {
    // Use GetThreadStackRequest.newBuilder() to construct.
    private GetThreadStackRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GetThreadStackRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GetThreadStackRequest defaultInstance;
    public static GetThreadStackRequest getDefaultInstance() {
      return defaultInstance;
    }

    public GetThreadStackRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GetThreadStackRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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 (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.class, com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public GetThreadStackRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new GetThreadStackRequest(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private void initFields() {
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest)) {
        return super.equals(obj);
      }
      com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest other = (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest) obj;

      boolean result = true;
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code GetThreadStackRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.class, com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.Builder.class);
      }

      // Construct using com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackRequest_descriptor;
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest getDefaultInstanceForType() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.getDefaultInstance();
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest build() {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest buildPartial() {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest result = new com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest) {
          return mergeFrom((com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest other) {
        if (other == com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:GetThreadStackRequest)
    }

    static {
      defaultInstance = new GetThreadStackRequest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:GetThreadStackRequest)
  }

  public interface GetThreadStackResponseOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required string stack = 1;
    /**
     * required string stack = 1;
     */
    boolean hasStack();
    /**
     * required string stack = 1;
     */
    java.lang.String getStack();
    /**
     * required string stack = 1;
     */
    com.google.protobuf.ByteString
        getStackBytes();
  }
  /**
   * Protobuf type {@code GetThreadStackResponse}
   */
  public static final class GetThreadStackResponse extends
      com.google.protobuf.GeneratedMessage
      implements GetThreadStackResponseOrBuilder {
    // Use GetThreadStackResponse.newBuilder() to construct.
    private GetThreadStackResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GetThreadStackResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GetThreadStackResponse defaultInstance;
    public static GetThreadStackResponse getDefaultInstance() {
      return defaultInstance;
    }

    public GetThreadStackResponse getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GetThreadStackResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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 (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              stack_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.class, com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public GetThreadStackResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new GetThreadStackResponse(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // required string stack = 1;
    public static final int STACK_FIELD_NUMBER = 1;
    private java.lang.Object stack_;
    /**
     * required string stack = 1;
     */
    public boolean hasStack() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required string stack = 1;
     */
    public java.lang.String getStack() {
      java.lang.Object ref = stack_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          stack_ = s;
        }
        return s;
      }
    }
    /**
     * required string stack = 1;
     */
    public com.google.protobuf.ByteString
        getStackBytes() {
      java.lang.Object ref = stack_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stack_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      stack_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasStack()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getStackBytes());
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getStackBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse)) {
        return super.equals(obj);
      }
      com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse other = (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse) obj;

      boolean result = true;
      result = result && (hasStack() == other.hasStack());
      if (hasStack()) {
        result = result && getStack()
            .equals(other.getStack());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasStack()) {
        hash = (37 * hash) + STACK_FIELD_NUMBER;
        hash = (53 * hash) + getStack().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code GetThreadStackResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.class, com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.Builder.class);
      }

      // Construct using com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        stack_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.internal_static_GetThreadStackResponse_descriptor;
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse getDefaultInstanceForType() {
        return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance();
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse build() {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse buildPartial() {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse result = new com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.stack_ = stack_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse) {
          return mergeFrom((com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse other) {
        if (other == com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance()) return this;
        if (other.hasStack()) {
          bitField0_ |= 0x00000001;
          stack_ = other.stack_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasStack()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required string stack = 1;
      private java.lang.Object stack_ = "";
      /**
       * required string stack = 1;
       */
      public boolean hasStack() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required string stack = 1;
       */
      public java.lang.String getStack() {
        java.lang.Object ref = stack_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          stack_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string stack = 1;
       */
      public com.google.protobuf.ByteString
          getStackBytes() {
        java.lang.Object ref = stack_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          stack_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string stack = 1;
       */
      public Builder setStack(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        stack_ = value;
        onChanged();
        return this;
      }
      /**
       * required string stack = 1;
       */
      public Builder clearStack() {
        bitField0_ = (bitField0_ & ~0x00000001);
        stack_ = getDefaultInstance().getStack();
        onChanged();
        return this;
      }
      /**
       * required string stack = 1;
       */
      public Builder setStackBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        stack_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:GetThreadStackResponse)
    }

    static {
      defaultInstance = new GetThreadStackResponse(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:GetThreadStackResponse)
  }

  /**
   * Protobuf service {@code MasterPSService}
   */
  public static abstract class MasterPSService
      implements com.google.protobuf.Service {
    protected MasterPSService() {}

    public interface Interface {
      /**
       * rpc psThreadStack(.GetThreadStackRequest) returns (.GetThreadStackResponse);
       */
      public abstract void psThreadStack(
          com.google.protobuf.RpcController controller,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request,
          com.google.protobuf.RpcCallback done);

    }

    public static com.google.protobuf.Service newReflectiveService(
        final Interface impl) {
      return new MasterPSService() {
        @java.lang.Override
        public  void psThreadStack(
            com.google.protobuf.RpcController controller,
            com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request,
            com.google.protobuf.RpcCallback done) {
          impl.psThreadStack(controller, request, done);
        }

      };
    }

    public static com.google.protobuf.BlockingService
        newReflectiveBlockingService(final BlockingInterface impl) {
      return new com.google.protobuf.BlockingService() {
        public final com.google.protobuf.Descriptors.ServiceDescriptor
            getDescriptorForType() {
          return getDescriptor();
        }

        public final com.google.protobuf.Message callBlockingMethod(
            com.google.protobuf.Descriptors.MethodDescriptor method,
            com.google.protobuf.RpcController controller,
            com.google.protobuf.Message request)
            throws com.google.protobuf.ServiceException {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.callBlockingMethod() given method descriptor for " +
              "wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return impl.psThreadStack(controller, (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest)request);
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

        public final com.google.protobuf.Message
            getRequestPrototype(
            com.google.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getRequestPrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

        public final com.google.protobuf.Message
            getResponsePrototype(
            com.google.protobuf.Descriptors.MethodDescriptor method) {
          if (method.getService() != getDescriptor()) {
            throw new java.lang.IllegalArgumentException(
              "Service.getResponsePrototype() given method " +
              "descriptor for wrong service type.");
          }
          switch(method.getIndex()) {
            case 0:
              return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance();
            default:
              throw new java.lang.AssertionError("Can't get here.");
          }
        }

      };
    }

    /**
     * rpc psThreadStack(.GetThreadStackRequest) returns (.GetThreadStackResponse);
     */
    public abstract void psThreadStack(
        com.google.protobuf.RpcController controller,
        com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request,
        com.google.protobuf.RpcCallback done);

    public static final
        com.google.protobuf.Descriptors.ServiceDescriptor
        getDescriptor() {
      return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.getDescriptor().getServices().get(0);
    }
    public final com.google.protobuf.Descriptors.ServiceDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }

    public final void callMethod(
        com.google.protobuf.Descriptors.MethodDescriptor method,
        com.google.protobuf.RpcController controller,
        com.google.protobuf.Message request,
        com.google.protobuf.RpcCallback<
          com.google.protobuf.Message> done) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.callMethod() given method descriptor for wrong " +
          "service type.");
      }
      switch(method.getIndex()) {
        case 0:
          this.psThreadStack(controller, (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest)request,
            com.google.protobuf.RpcUtil.specializeCallback(
              done));
          return;
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public final com.google.protobuf.Message
        getRequestPrototype(
        com.google.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getRequestPrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public final com.google.protobuf.Message
        getResponsePrototype(
        com.google.protobuf.Descriptors.MethodDescriptor method) {
      if (method.getService() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "Service.getResponsePrototype() given method " +
          "descriptor for wrong service type.");
      }
      switch(method.getIndex()) {
        case 0:
          return com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance();
        default:
          throw new java.lang.AssertionError("Can't get here.");
      }
    }

    public static Stub newStub(
        com.google.protobuf.RpcChannel channel) {
      return new Stub(channel);
    }

    public static final class Stub extends com.tencent.angel.protobuf.generated.MasterPSServiceProtos.MasterPSService implements Interface {
      private Stub(com.google.protobuf.RpcChannel channel) {
        this.channel = channel;
      }

      private final com.google.protobuf.RpcChannel channel;

      public com.google.protobuf.RpcChannel getChannel() {
        return channel;
      }

      public  void psThreadStack(
          com.google.protobuf.RpcController controller,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request,
          com.google.protobuf.RpcCallback done) {
        channel.callMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance(),
          com.google.protobuf.RpcUtil.generalizeCallback(
            done,
            com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.class,
            com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance()));
      }
    }

    public static BlockingInterface newBlockingStub(
        com.google.protobuf.BlockingRpcChannel channel) {
      return new BlockingStub(channel);
    }

    public interface BlockingInterface {
      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse psThreadStack(
          com.google.protobuf.RpcController controller,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request)
          throws com.google.protobuf.ServiceException;
    }

    private static final class BlockingStub implements BlockingInterface {
      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
        this.channel = channel;
      }

      private final com.google.protobuf.BlockingRpcChannel channel;

      public com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse psThreadStack(
          com.google.protobuf.RpcController controller,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackRequest request)
          throws com.google.protobuf.ServiceException {
        return (com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse) channel.callBlockingMethod(
          getDescriptor().getMethods().get(0),
          controller,
          request,
          com.tencent.angel.protobuf.generated.MasterPSServiceProtos.GetThreadStackResponse.getDefaultInstance());
      }

    }

    // @@protoc_insertion_point(class_scope:MasterPSService)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_GetThreadStackRequest_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_GetThreadStackRequest_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_GetThreadStackResponse_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_GetThreadStackResponse_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\025MasterPSService.proto\032\010ML.proto\"\027\n\025Get" +
      "ThreadStackRequest\"\'\n\026GetThreadStackResp" +
      "onse\022\r\n\005stack\030\001 \002(\t2S\n\017MasterPSService\022@" +
      "\n\rpsThreadStack\022\026.GetThreadStackRequest\032" +
      "\027.GetThreadStackResponseBE\n$com.tencent." +
      "angel.protobuf.generatedB\025MasterPSServic" +
      "eProtosH\001\210\001\001\240\001\001"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_GetThreadStackRequest_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_GetThreadStackRequest_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_GetThreadStackRequest_descriptor,
              new java.lang.String[] { });
          internal_static_GetThreadStackResponse_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_GetThreadStackResponse_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_GetThreadStackResponse_descriptor,
              new java.lang.String[] { "Stack", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.tencent.angel.protobuf.generated.MLProtos.getDescriptor(),
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy