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

net.wicp.tams.common.grpc.connector.ControlInfo 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.ControlInfo}
 */
public  final class ControlInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:connector.ControlInfo)
    ControlInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ControlInfo.newBuilder() to construct.
  private ControlInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ControlInfo() {
    msgId_ = "";
    senderSystem_ = "";
    senderApplication_ = "";
    toApplication_ = "";
    senderChannel_ = "";
    version_ = "";
    requestCommand_ = "";
    cache_ = false;
    url_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ControlInfo(
      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: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

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

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

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

            requestCommand_ = s;
            break;
          }
          case 64: {

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

            url_ = 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_ControlInfo_descriptor;
  }

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

  public static final int MSGID_FIELD_NUMBER = 1;
  private volatile java.lang.Object msgId_;
  /**
   * string msgId = 1;
   */
  public java.lang.String getMsgId() {
    java.lang.Object ref = msgId_;
    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();
      msgId_ = s;
      return s;
    }
  }
  /**
   * string msgId = 1;
   */
  public com.google.protobuf.ByteString
      getMsgIdBytes() {
    java.lang.Object ref = msgId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      msgId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int SENDERAPPLICATION_FIELD_NUMBER = 3;
  private volatile java.lang.Object senderApplication_;
  /**
   * string senderApplication = 3;
   */
  public java.lang.String getSenderApplication() {
    java.lang.Object ref = senderApplication_;
    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();
      senderApplication_ = s;
      return s;
    }
  }
  /**
   * string senderApplication = 3;
   */
  public com.google.protobuf.ByteString
      getSenderApplicationBytes() {
    java.lang.Object ref = senderApplication_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      senderApplication_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOAPPLICATION_FIELD_NUMBER = 4;
  private volatile java.lang.Object toApplication_;
  /**
   * 
   *微服务就是 instanceId见Eureka的Application
   * 
* * string toApplication = 4; */ public java.lang.String getToApplication() { java.lang.Object ref = toApplication_; 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(); toApplication_ = s; return s; } } /** *
   *微服务就是 instanceId见Eureka的Application
   * 
* * string toApplication = 4; */ public com.google.protobuf.ByteString getToApplicationBytes() { java.lang.Object ref = toApplication_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toApplication_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SENDERCHANNEL_FIELD_NUMBER = 5; private volatile java.lang.Object senderChannel_; /** * string senderChannel = 5; */ public java.lang.String getSenderChannel() { java.lang.Object ref = senderChannel_; 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(); senderChannel_ = s; return s; } } /** * string senderChannel = 5; */ public com.google.protobuf.ByteString getSenderChannelBytes() { java.lang.Object ref = senderChannel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderChannel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object version_; /** * string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** * string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUESTCOMMAND_FIELD_NUMBER = 7; private volatile java.lang.Object requestCommand_; /** * string requestCommand = 7; */ public java.lang.String getRequestCommand() { java.lang.Object ref = requestCommand_; 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(); requestCommand_ = s; return s; } } /** * string requestCommand = 7; */ public com.google.protobuf.ByteString getRequestCommandBytes() { java.lang.Object ref = requestCommand_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestCommand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CACHE_FIELD_NUMBER = 8; private boolean cache_; /** * bool cache = 8; */ public boolean getCache() { return cache_; } public static final int URL_FIELD_NUMBER = 9; private volatile java.lang.Object url_; /** *
   *调用地址,请带上contextPath
   * 
* * string url = 9; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** *
   *调用地址,请带上contextPath
   * 
* * string url = 9; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = 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 (!getMsgIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, msgId_); } if (!getSenderSystemBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderSystem_); } if (!getSenderApplicationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, senderApplication_); } if (!getToApplicationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, toApplication_); } if (!getSenderChannelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, senderChannel_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } if (!getRequestCommandBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestCommand_); } if (cache_ != false) { output.writeBool(8, cache_); } if (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, url_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMsgIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, msgId_); } if (!getSenderSystemBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderSystem_); } if (!getSenderApplicationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, senderApplication_); } if (!getToApplicationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, toApplication_); } if (!getSenderChannelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, senderChannel_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } if (!getRequestCommandBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestCommand_); } if (cache_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, cache_); } if (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, url_); } 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.ControlInfo)) { return super.equals(obj); } net.wicp.tams.common.grpc.connector.ControlInfo other = (net.wicp.tams.common.grpc.connector.ControlInfo) obj; boolean result = true; result = result && getMsgId() .equals(other.getMsgId()); result = result && getSenderSystem() .equals(other.getSenderSystem()); result = result && getSenderApplication() .equals(other.getSenderApplication()); result = result && getToApplication() .equals(other.getToApplication()); result = result && getSenderChannel() .equals(other.getSenderChannel()); result = result && getVersion() .equals(other.getVersion()); result = result && getRequestCommand() .equals(other.getRequestCommand()); result = result && (getCache() == other.getCache()); result = result && getUrl() .equals(other.getUrl()); 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(); hash = (37 * hash) + MSGID_FIELD_NUMBER; hash = (53 * hash) + getMsgId().hashCode(); hash = (37 * hash) + SENDERSYSTEM_FIELD_NUMBER; hash = (53 * hash) + getSenderSystem().hashCode(); hash = (37 * hash) + SENDERAPPLICATION_FIELD_NUMBER; hash = (53 * hash) + getSenderApplication().hashCode(); hash = (37 * hash) + TOAPPLICATION_FIELD_NUMBER; hash = (53 * hash) + getToApplication().hashCode(); hash = (37 * hash) + SENDERCHANNEL_FIELD_NUMBER; hash = (53 * hash) + getSenderChannel().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + REQUESTCOMMAND_FIELD_NUMBER; hash = (53 * hash) + getRequestCommand().hashCode(); hash = (37 * hash) + CACHE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCache()); hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static net.wicp.tams.common.grpc.connector.ControlInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.wicp.tams.common.grpc.connector.ControlInfo 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.ControlInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.wicp.tams.common.grpc.connector.ControlInfo 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.ControlInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.wicp.tams.common.grpc.connector.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo 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.ControlInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:connector.ControlInfo) net.wicp.tams.common.grpc.connector.ControlInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_ControlInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_ControlInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( net.wicp.tams.common.grpc.connector.ControlInfo.class, net.wicp.tams.common.grpc.connector.ControlInfo.Builder.class); } // Construct using net.wicp.tams.common.grpc.connector.ControlInfo.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(); msgId_ = ""; senderSystem_ = ""; senderApplication_ = ""; toApplication_ = ""; senderChannel_ = ""; version_ = ""; requestCommand_ = ""; cache_ = false; url_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.wicp.tams.common.grpc.connector.ConnectorProto.internal_static_connector_ControlInfo_descriptor; } public net.wicp.tams.common.grpc.connector.ControlInfo getDefaultInstanceForType() { return net.wicp.tams.common.grpc.connector.ControlInfo.getDefaultInstance(); } public net.wicp.tams.common.grpc.connector.ControlInfo build() { net.wicp.tams.common.grpc.connector.ControlInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.wicp.tams.common.grpc.connector.ControlInfo buildPartial() { net.wicp.tams.common.grpc.connector.ControlInfo result = new net.wicp.tams.common.grpc.connector.ControlInfo(this); result.msgId_ = msgId_; result.senderSystem_ = senderSystem_; result.senderApplication_ = senderApplication_; result.toApplication_ = toApplication_; result.senderChannel_ = senderChannel_; result.version_ = version_; result.requestCommand_ = requestCommand_; result.cache_ = cache_; result.url_ = url_; 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.ControlInfo) { return mergeFrom((net.wicp.tams.common.grpc.connector.ControlInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.wicp.tams.common.grpc.connector.ControlInfo other) { if (other == net.wicp.tams.common.grpc.connector.ControlInfo.getDefaultInstance()) return this; if (!other.getMsgId().isEmpty()) { msgId_ = other.msgId_; onChanged(); } if (!other.getSenderSystem().isEmpty()) { senderSystem_ = other.senderSystem_; onChanged(); } if (!other.getSenderApplication().isEmpty()) { senderApplication_ = other.senderApplication_; onChanged(); } if (!other.getToApplication().isEmpty()) { toApplication_ = other.toApplication_; onChanged(); } if (!other.getSenderChannel().isEmpty()) { senderChannel_ = other.senderChannel_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getRequestCommand().isEmpty()) { requestCommand_ = other.requestCommand_; onChanged(); } if (other.getCache() != false) { setCache(other.getCache()); } if (!other.getUrl().isEmpty()) { url_ = other.url_; 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.ControlInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.wicp.tams.common.grpc.connector.ControlInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object msgId_ = ""; /** * string msgId = 1; */ public java.lang.String getMsgId() { java.lang.Object ref = msgId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msgId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string msgId = 1; */ public com.google.protobuf.ByteString getMsgIdBytes() { java.lang.Object ref = msgId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msgId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string msgId = 1; */ public Builder setMsgId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } msgId_ = value; onChanged(); return this; } /** * string msgId = 1; */ public Builder clearMsgId() { msgId_ = getDefaultInstance().getMsgId(); onChanged(); return this; } /** * string msgId = 1; */ public Builder setMsgIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); msgId_ = value; onChanged(); return this; } private java.lang.Object senderSystem_ = ""; /** * string senderSystem = 2; */ public java.lang.String getSenderSystem() { java.lang.Object ref = senderSystem_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); senderSystem_ = s; return s; } else { return (java.lang.String) ref; } } /** * string senderSystem = 2; */ public com.google.protobuf.ByteString getSenderSystemBytes() { java.lang.Object ref = senderSystem_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderSystem_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string senderSystem = 2; */ public Builder setSenderSystem( java.lang.String value) { if (value == null) { throw new NullPointerException(); } senderSystem_ = value; onChanged(); return this; } /** * string senderSystem = 2; */ public Builder clearSenderSystem() { senderSystem_ = getDefaultInstance().getSenderSystem(); onChanged(); return this; } /** * string senderSystem = 2; */ public Builder setSenderSystemBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderSystem_ = value; onChanged(); return this; } private java.lang.Object senderApplication_ = ""; /** * string senderApplication = 3; */ public java.lang.String getSenderApplication() { java.lang.Object ref = senderApplication_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); senderApplication_ = s; return s; } else { return (java.lang.String) ref; } } /** * string senderApplication = 3; */ public com.google.protobuf.ByteString getSenderApplicationBytes() { java.lang.Object ref = senderApplication_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderApplication_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string senderApplication = 3; */ public Builder setSenderApplication( java.lang.String value) { if (value == null) { throw new NullPointerException(); } senderApplication_ = value; onChanged(); return this; } /** * string senderApplication = 3; */ public Builder clearSenderApplication() { senderApplication_ = getDefaultInstance().getSenderApplication(); onChanged(); return this; } /** * string senderApplication = 3; */ public Builder setSenderApplicationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderApplication_ = value; onChanged(); return this; } private java.lang.Object toApplication_ = ""; /** *
     *微服务就是 instanceId见Eureka的Application
     * 
* * string toApplication = 4; */ public java.lang.String getToApplication() { java.lang.Object ref = toApplication_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); toApplication_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *微服务就是 instanceId见Eureka的Application
     * 
* * string toApplication = 4; */ public com.google.protobuf.ByteString getToApplicationBytes() { java.lang.Object ref = toApplication_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toApplication_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *微服务就是 instanceId见Eureka的Application
     * 
* * string toApplication = 4; */ public Builder setToApplication( java.lang.String value) { if (value == null) { throw new NullPointerException(); } toApplication_ = value; onChanged(); return this; } /** *
     *微服务就是 instanceId见Eureka的Application
     * 
* * string toApplication = 4; */ public Builder clearToApplication() { toApplication_ = getDefaultInstance().getToApplication(); onChanged(); return this; } /** *
     *微服务就是 instanceId见Eureka的Application
     * 
* * string toApplication = 4; */ public Builder setToApplicationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); toApplication_ = value; onChanged(); return this; } private java.lang.Object senderChannel_ = ""; /** * string senderChannel = 5; */ public java.lang.String getSenderChannel() { java.lang.Object ref = senderChannel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); senderChannel_ = s; return s; } else { return (java.lang.String) ref; } } /** * string senderChannel = 5; */ public com.google.protobuf.ByteString getSenderChannelBytes() { java.lang.Object ref = senderChannel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderChannel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string senderChannel = 5; */ public Builder setSenderChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } senderChannel_ = value; onChanged(); return this; } /** * string senderChannel = 5; */ public Builder clearSenderChannel() { senderChannel_ = getDefaultInstance().getSenderChannel(); onChanged(); return this; } /** * string senderChannel = 5; */ public Builder setSenderChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); senderChannel_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** * string version = 6; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * string version = 6; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string version = 6; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** * string version = 6; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 6; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private java.lang.Object requestCommand_ = ""; /** * string requestCommand = 7; */ public java.lang.String getRequestCommand() { java.lang.Object ref = requestCommand_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestCommand_ = s; return s; } else { return (java.lang.String) ref; } } /** * string requestCommand = 7; */ public com.google.protobuf.ByteString getRequestCommandBytes() { java.lang.Object ref = requestCommand_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestCommand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string requestCommand = 7; */ public Builder setRequestCommand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestCommand_ = value; onChanged(); return this; } /** * string requestCommand = 7; */ public Builder clearRequestCommand() { requestCommand_ = getDefaultInstance().getRequestCommand(); onChanged(); return this; } /** * string requestCommand = 7; */ public Builder setRequestCommandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestCommand_ = value; onChanged(); return this; } private boolean cache_ ; /** * bool cache = 8; */ public boolean getCache() { return cache_; } /** * bool cache = 8; */ public Builder setCache(boolean value) { cache_ = value; onChanged(); return this; } /** * bool cache = 8; */ public Builder clearCache() { cache_ = false; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
     *调用地址,请带上contextPath
     * 
* * string url = 9; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *调用地址,请带上contextPath
     * 
* * string url = 9; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *调用地址,请带上contextPath
     * 
* * string url = 9; */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** *
     *调用地址,请带上contextPath
     * 
* * string url = 9; */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** *
     *调用地址,请带上contextPath
     * 
* * string url = 9; */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = 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.ControlInfo) } // @@protoc_insertion_point(class_scope:connector.ControlInfo) private static final net.wicp.tams.common.grpc.connector.ControlInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new net.wicp.tams.common.grpc.connector.ControlInfo(); } public static net.wicp.tams.common.grpc.connector.ControlInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ControlInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ControlInfo(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.ControlInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy