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

com.yelp.nrtsearch.server.grpc.NodeInfoResponse Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;

/**
 * Protobuf type {@code luceneserver.NodeInfoResponse}
 */
public final class NodeInfoResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.NodeInfoResponse)
    NodeInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use NodeInfoResponse.newBuilder() to construct.
  private NodeInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private NodeInfoResponse() {
    nodeName_ = "";
    serviceName_ = "";
    hostName_ = "";
    version_ = "";
    ephemeralId_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_NodeInfoResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_NodeInfoResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.NodeInfoResponse.class, com.yelp.nrtsearch.server.grpc.NodeInfoResponse.Builder.class);
  }

  public static final int NODE_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object nodeName_ = "";
  /**
   * 
   * node name
   * 
* * string node_name = 1; * @return The nodeName. */ @java.lang.Override public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; 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(); nodeName_ = s; return s; } } /** *
   * node name
   * 
* * string node_name = 1; * @return The bytes for nodeName. */ @java.lang.Override public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object serviceName_ = ""; /** *
   * service name
   * 
* * string service_name = 2; * @return The serviceName. */ @java.lang.Override public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; 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(); serviceName_ = s; return s; } } /** *
   * service name
   * 
* * string service_name = 2; * @return The bytes for serviceName. */ @java.lang.Override public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object hostName_ = ""; /** *
   * host name
   * 
* * string host_name = 3; * @return The hostName. */ @java.lang.Override public java.lang.String getHostName() { java.lang.Object ref = hostName_; 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(); hostName_ = s; return s; } } /** *
   * host name
   * 
* * string host_name = 3; * @return The bytes for hostName. */ @java.lang.Override public com.google.protobuf.ByteString getHostNameBytes() { java.lang.Object ref = hostName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** *
   * nrtsearch version
   * 
* * string version = 4; * @return The version. */ @java.lang.Override 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; } } /** *
   * nrtsearch version
   * 
* * string version = 4; * @return The bytes for version. */ @java.lang.Override 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 EPHEMERAL_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object ephemeralId_ = ""; /** *
   * node ephemeral id
   * 
* * string ephemeral_id = 5; * @return The ephemeralId. */ @java.lang.Override public java.lang.String getEphemeralId() { java.lang.Object ref = ephemeralId_; 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(); ephemeralId_ = s; return s; } } /** *
   * node ephemeral id
   * 
* * string ephemeral_id = 5; * @return The bytes for ephemeralId. */ @java.lang.Override public com.google.protobuf.ByteString getEphemeralIdBytes() { java.lang.Object ref = ephemeralId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ephemeralId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ephemeralId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ephemeralId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ephemeralId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ephemeralId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yelp.nrtsearch.server.grpc.NodeInfoResponse)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.NodeInfoResponse other = (com.yelp.nrtsearch.server.grpc.NodeInfoResponse) obj; if (!getNodeName() .equals(other.getNodeName())) return false; if (!getServiceName() .equals(other.getServiceName())) return false; if (!getHostName() .equals(other.getHostName())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getEphemeralId() .equals(other.getEphemeralId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NODE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getServiceName().hashCode(); hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; hash = (53 * hash) + getHostName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + EPHEMERAL_ID_FIELD_NUMBER; hash = (53 * hash) + getEphemeralId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse 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 com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse 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 com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.yelp.nrtsearch.server.grpc.NodeInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code luceneserver.NodeInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.NodeInfoResponse) com.yelp.nrtsearch.server.grpc.NodeInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_NodeInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_NodeInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.NodeInfoResponse.class, com.yelp.nrtsearch.server.grpc.NodeInfoResponse.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.NodeInfoResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nodeName_ = ""; serviceName_ = ""; hostName_ = ""; version_ = ""; ephemeralId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_NodeInfoResponse_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NodeInfoResponse getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.NodeInfoResponse.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NodeInfoResponse build() { com.yelp.nrtsearch.server.grpc.NodeInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NodeInfoResponse buildPartial() { com.yelp.nrtsearch.server.grpc.NodeInfoResponse result = new com.yelp.nrtsearch.server.grpc.NodeInfoResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.NodeInfoResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nodeName_ = nodeName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceName_ = serviceName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.hostName_ = hostName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.version_ = version_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ephemeralId_ = ephemeralId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yelp.nrtsearch.server.grpc.NodeInfoResponse) { return mergeFrom((com.yelp.nrtsearch.server.grpc.NodeInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.NodeInfoResponse other) { if (other == com.yelp.nrtsearch.server.grpc.NodeInfoResponse.getDefaultInstance()) return this; if (!other.getNodeName().isEmpty()) { nodeName_ = other.nodeName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getServiceName().isEmpty()) { serviceName_ = other.serviceName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getHostName().isEmpty()) { hostName_ = other.hostName_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getEphemeralId().isEmpty()) { ephemeralId_ = other.ephemeralId_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { nodeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { serviceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { hostName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ephemeralId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object nodeName_ = ""; /** *
     * node name
     * 
* * string node_name = 1; * @return The nodeName. */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * node name
     * 
* * string node_name = 1; * @return The bytes for nodeName. */ public com.google.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * node name
     * 
* * string node_name = 1; * @param value The nodeName to set. * @return This builder for chaining. */ public Builder setNodeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * node name
     * 
* * string node_name = 1; * @return This builder for chaining. */ public Builder clearNodeName() { nodeName_ = getDefaultInstance().getNodeName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * node name
     * 
* * string node_name = 1; * @param value The bytes for nodeName to set. * @return This builder for chaining. */ public Builder setNodeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object serviceName_ = ""; /** *
     * service name
     * 
* * string service_name = 2; * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * service name
     * 
* * string service_name = 2; * @return The bytes for serviceName. */ public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * service name
     * 
* * string service_name = 2; * @param value The serviceName to set. * @return This builder for chaining. */ public Builder setServiceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * service name
     * 
* * string service_name = 2; * @return This builder for chaining. */ public Builder clearServiceName() { serviceName_ = getDefaultInstance().getServiceName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * service name
     * 
* * string service_name = 2; * @param value The bytes for serviceName to set. * @return This builder for chaining. */ public Builder setServiceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object hostName_ = ""; /** *
     * host name
     * 
* * string host_name = 3; * @return The hostName. */ public java.lang.String getHostName() { java.lang.Object ref = hostName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * host name
     * 
* * string host_name = 3; * @return The bytes for hostName. */ public com.google.protobuf.ByteString getHostNameBytes() { java.lang.Object ref = hostName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * host name
     * 
* * string host_name = 3; * @param value The hostName to set. * @return This builder for chaining. */ public Builder setHostName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * host name
     * 
* * string host_name = 3; * @return This builder for chaining. */ public Builder clearHostName() { hostName_ = getDefaultInstance().getHostName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * host name
     * 
* * string host_name = 3; * @param value The bytes for hostName to set. * @return This builder for chaining. */ public Builder setHostNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
     * nrtsearch version
     * 
* * string version = 4; * @return The version. */ 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; } } /** *
     * nrtsearch version
     * 
* * string version = 4; * @return The bytes for version. */ 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; } } /** *
     * nrtsearch version
     * 
* * string version = 4; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * nrtsearch version
     * 
* * string version = 4; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * nrtsearch version
     * 
* * string version = 4; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object ephemeralId_ = ""; /** *
     * node ephemeral id
     * 
* * string ephemeral_id = 5; * @return The ephemeralId. */ public java.lang.String getEphemeralId() { java.lang.Object ref = ephemeralId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ephemeralId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * node ephemeral id
     * 
* * string ephemeral_id = 5; * @return The bytes for ephemeralId. */ public com.google.protobuf.ByteString getEphemeralIdBytes() { java.lang.Object ref = ephemeralId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ephemeralId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * node ephemeral id
     * 
* * string ephemeral_id = 5; * @param value The ephemeralId to set. * @return This builder for chaining. */ public Builder setEphemeralId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ephemeralId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * node ephemeral id
     * 
* * string ephemeral_id = 5; * @return This builder for chaining. */ public Builder clearEphemeralId() { ephemeralId_ = getDefaultInstance().getEphemeralId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * node ephemeral id
     * 
* * string ephemeral_id = 5; * @param value The bytes for ephemeralId to set. * @return This builder for chaining. */ public Builder setEphemeralIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ephemeralId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:luceneserver.NodeInfoResponse) } // @@protoc_insertion_point(class_scope:luceneserver.NodeInfoResponse) private static final com.yelp.nrtsearch.server.grpc.NodeInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.NodeInfoResponse(); } public static com.yelp.nrtsearch.server.grpc.NodeInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NodeInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy