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

net.wicp.tams.common.grpc.connector.In Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Connector.proto

package net.wicp.tams.common.grpc.connector;

/**
 * Protobuf type {@code connector.In}
 */
public  final class In extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:connector.In)
    InOrBuilder {
private static final long serialVersionUID = 0L;
  // Use In.newBuilder() to construct.
  private In(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private In() {
    input_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private In(
      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: {
            net.wicp.tams.common.grpc.connector.ControlInfo.Builder subBuilder = null;
            if (controlInfo_ != null) {
              subBuilder = controlInfo_.toBuilder();
            }
            controlInfo_ = input.readMessage(net.wicp.tams.common.grpc.connector.ControlInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(controlInfo_);
              controlInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            input_ = s;
            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 net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_In_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_In_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            net.wicp.tams.common.grpc.connector.In.class, net.wicp.tams.common.grpc.connector.In.Builder.class);
  }

  public static final int CONTROLINFO_FIELD_NUMBER = 1;
  private net.wicp.tams.common.grpc.connector.ControlInfo controlInfo_;
  /**
   * .connector.ControlInfo controlInfo = 1;
   */
  public boolean hasControlInfo() {
    return controlInfo_ != null;
  }
  /**
   * .connector.ControlInfo controlInfo = 1;
   */
  public net.wicp.tams.common.grpc.connector.ControlInfo getControlInfo() {
    return controlInfo_ == null ? net.wicp.tams.common.grpc.connector.ControlInfo.getDefaultInstance() : controlInfo_;
  }
  /**
   * .connector.ControlInfo controlInfo = 1;
   */
  public net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder getControlInfoOrBuilder() {
    return getControlInfo();
  }

  public static final int INPUT_FIELD_NUMBER = 2;
  private volatile java.lang.Object input_;
  /**
   * string input = 2;
   */
  public java.lang.String getInput() {
    java.lang.Object ref = input_;
    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();
      input_ = s;
      return s;
    }
  }
  /**
   * string input = 2;
   */
  public com.google.protobuf.ByteString
      getInputBytes() {
    java.lang.Object ref = input_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      input_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (controlInfo_ != null) {
      output.writeMessage(1, getControlInfo());
    }
    if (!getInputBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, input_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (controlInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getControlInfo());
    }
    if (!getInputBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, input_);
    }
    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 net.wicp.tams.common.grpc.connector.In)) {
      return super.equals(obj);
    }
    net.wicp.tams.common.grpc.connector.In other = (net.wicp.tams.common.grpc.connector.In) obj;

    boolean result = true;
    result = result && (hasControlInfo() == other.hasControlInfo());
    if (hasControlInfo()) {
      result = result && getControlInfo()
          .equals(other.getControlInfo());
    }
    result = result && getInput()
        .equals(other.getInput());
    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 (hasControlInfo()) {
      hash = (37 * hash) + CONTROLINFO_FIELD_NUMBER;
      hash = (53 * hash) + getControlInfo().hashCode();
    }
    hash = (37 * hash) + INPUT_FIELD_NUMBER;
    hash = (53 * hash) + getInput().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static net.wicp.tams.common.grpc.connector.In parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static net.wicp.tams.common.grpc.connector.In parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static net.wicp.tams.common.grpc.connector.In 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 net.wicp.tams.common.grpc.connector.In parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static net.wicp.tams.common.grpc.connector.In 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 net.wicp.tams.common.grpc.connector.In parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static net.wicp.tams.common.grpc.connector.In 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(net.wicp.tams.common.grpc.connector.In 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 connector.In}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:connector.In)
      net.wicp.tams.common.grpc.connector.InOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_In_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_In_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              net.wicp.tams.common.grpc.connector.In.class, net.wicp.tams.common.grpc.connector.In.Builder.class);
    }

    // Construct using net.wicp.tams.common.grpc.connector.In.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 (controlInfoBuilder_ == null) {
        controlInfo_ = null;
      } else {
        controlInfo_ = null;
        controlInfoBuilder_ = null;
      }
      input_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_In_descriptor;
    }

    public net.wicp.tams.common.grpc.connector.In getDefaultInstanceForType() {
      return net.wicp.tams.common.grpc.connector.In.getDefaultInstance();
    }

    public net.wicp.tams.common.grpc.connector.In build() {
      net.wicp.tams.common.grpc.connector.In result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public net.wicp.tams.common.grpc.connector.In buildPartial() {
      net.wicp.tams.common.grpc.connector.In result = new net.wicp.tams.common.grpc.connector.In(this);
      if (controlInfoBuilder_ == null) {
        result.controlInfo_ = controlInfo_;
      } else {
        result.controlInfo_ = controlInfoBuilder_.build();
      }
      result.input_ = input_;
      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 net.wicp.tams.common.grpc.connector.In) {
        return mergeFrom((net.wicp.tams.common.grpc.connector.In)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(net.wicp.tams.common.grpc.connector.In other) {
      if (other == net.wicp.tams.common.grpc.connector.In.getDefaultInstance()) return this;
      if (other.hasControlInfo()) {
        mergeControlInfo(other.getControlInfo());
      }
      if (!other.getInput().isEmpty()) {
        input_ = other.input_;
        onChanged();
      }
      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 {
      net.wicp.tams.common.grpc.connector.In parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (net.wicp.tams.common.grpc.connector.In) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private net.wicp.tams.common.grpc.connector.ControlInfo controlInfo_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        net.wicp.tams.common.grpc.connector.ControlInfo, net.wicp.tams.common.grpc.connector.ControlInfo.Builder, net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder> controlInfoBuilder_;
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public boolean hasControlInfo() {
      return controlInfoBuilder_ != null || controlInfo_ != null;
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public net.wicp.tams.common.grpc.connector.ControlInfo getControlInfo() {
      if (controlInfoBuilder_ == null) {
        return controlInfo_ == null ? net.wicp.tams.common.grpc.connector.ControlInfo.getDefaultInstance() : controlInfo_;
      } else {
        return controlInfoBuilder_.getMessage();
      }
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public Builder setControlInfo(net.wicp.tams.common.grpc.connector.ControlInfo value) {
      if (controlInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        controlInfo_ = value;
        onChanged();
      } else {
        controlInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public Builder setControlInfo(
        net.wicp.tams.common.grpc.connector.ControlInfo.Builder builderForValue) {
      if (controlInfoBuilder_ == null) {
        controlInfo_ = builderForValue.build();
        onChanged();
      } else {
        controlInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public Builder mergeControlInfo(net.wicp.tams.common.grpc.connector.ControlInfo value) {
      if (controlInfoBuilder_ == null) {
        if (controlInfo_ != null) {
          controlInfo_ =
            net.wicp.tams.common.grpc.connector.ControlInfo.newBuilder(controlInfo_).mergeFrom(value).buildPartial();
        } else {
          controlInfo_ = value;
        }
        onChanged();
      } else {
        controlInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public Builder clearControlInfo() {
      if (controlInfoBuilder_ == null) {
        controlInfo_ = null;
        onChanged();
      } else {
        controlInfo_ = null;
        controlInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public net.wicp.tams.common.grpc.connector.ControlInfo.Builder getControlInfoBuilder() {
      
      onChanged();
      return getControlInfoFieldBuilder().getBuilder();
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    public net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder getControlInfoOrBuilder() {
      if (controlInfoBuilder_ != null) {
        return controlInfoBuilder_.getMessageOrBuilder();
      } else {
        return controlInfo_ == null ?
            net.wicp.tams.common.grpc.connector.ControlInfo.getDefaultInstance() : controlInfo_;
      }
    }
    /**
     * .connector.ControlInfo controlInfo = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        net.wicp.tams.common.grpc.connector.ControlInfo, net.wicp.tams.common.grpc.connector.ControlInfo.Builder, net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder> 
        getControlInfoFieldBuilder() {
      if (controlInfoBuilder_ == null) {
        controlInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            net.wicp.tams.common.grpc.connector.ControlInfo, net.wicp.tams.common.grpc.connector.ControlInfo.Builder, net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder>(
                getControlInfo(),
                getParentForChildren(),
                isClean());
        controlInfo_ = null;
      }
      return controlInfoBuilder_;
    }

    private java.lang.Object input_ = "";
    /**
     * string input = 2;
     */
    public java.lang.String getInput() {
      java.lang.Object ref = input_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        input_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string input = 2;
     */
    public com.google.protobuf.ByteString
        getInputBytes() {
      java.lang.Object ref = input_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        input_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string input = 2;
     */
    public Builder setInput(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      input_ = value;
      onChanged();
      return this;
    }
    /**
     * string input = 2;
     */
    public Builder clearInput() {
      
      input_ = getDefaultInstance().getInput();
      onChanged();
      return this;
    }
    /**
     * string input = 2;
     */
    public Builder setInputBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      input_ = value;
      onChanged();
      return this;
    }
    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:connector.In)
  }

  // @@protoc_insertion_point(class_scope:connector.In)
  private static final net.wicp.tams.common.grpc.connector.In DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new net.wicp.tams.common.grpc.connector.In();
  }

  public static net.wicp.tams.common.grpc.connector.In getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

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

  public net.wicp.tams.common.grpc.connector.In getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy