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

org.sonarqube.ws.ServerId Maven / Gradle / Ivy

There is a newer version: 7.7
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ws-serverid.proto

package org.sonarqube.ws;

public final class ServerId {
  private ServerId() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ShowWsResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:sonarqube.ws.serverid.ShowWsResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string serverId = 1;
     */
    boolean hasServerId();
    /**
     * optional string serverId = 1;
     */
    java.lang.String getServerId();
    /**
     * optional string serverId = 1;
     */
    com.google.protobuf.ByteString
        getServerIdBytes();

    /**
     * optional string organization = 2;
     */
    boolean hasOrganization();
    /**
     * optional string organization = 2;
     */
    java.lang.String getOrganization();
    /**
     * optional string organization = 2;
     */
    com.google.protobuf.ByteString
        getOrganizationBytes();

    /**
     * optional string ip = 3;
     */
    boolean hasIp();
    /**
     * optional string ip = 3;
     */
    java.lang.String getIp();
    /**
     * optional string ip = 3;
     */
    com.google.protobuf.ByteString
        getIpBytes();

    /**
     * repeated string validIpAddresses = 4;
     */
    com.google.protobuf.ProtocolStringList
        getValidIpAddressesList();
    /**
     * repeated string validIpAddresses = 4;
     */
    int getValidIpAddressesCount();
    /**
     * repeated string validIpAddresses = 4;
     */
    java.lang.String getValidIpAddresses(int index);
    /**
     * repeated string validIpAddresses = 4;
     */
    com.google.protobuf.ByteString
        getValidIpAddressesBytes(int index);

    /**
     * optional bool invalidServerId = 5;
     */
    boolean hasInvalidServerId();
    /**
     * optional bool invalidServerId = 5;
     */
    boolean getInvalidServerId();
  }
  /**
   * Protobuf type {@code sonarqube.ws.serverid.ShowWsResponse}
   *
   * 
   * Response of GET api/server_id/show
   * 
*/ public static final class ShowWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.serverid.ShowWsResponse) ShowWsResponseOrBuilder { // Use ShowWsResponse.newBuilder() to construct. private ShowWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ShowWsResponse() { serverId_ = ""; organization_ = ""; ip_ = ""; validIpAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; invalidServerId_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ShowWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; serverId_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; organization_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; ip_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { validIpAddresses_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } validIpAddresses_.add(bs); break; } case 40: { bitField0_ |= 0x00000008; invalidServerId_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { validIpAddresses_ = validIpAddresses_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_ShowWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.ServerId.ShowWsResponse.class, org.sonarqube.ws.ServerId.ShowWsResponse.Builder.class); } private int bitField0_; public static final int SERVERID_FIELD_NUMBER = 1; private volatile java.lang.Object serverId_; /** * optional string serverId = 1; */ public boolean hasServerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string serverId = 1; */ public java.lang.String getServerId() { java.lang.Object ref = serverId_; 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()) { serverId_ = s; } return s; } } /** * optional string serverId = 1; */ public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORGANIZATION_FIELD_NUMBER = 2; private volatile java.lang.Object organization_; /** * optional string organization = 2; */ public boolean hasOrganization() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string organization = 2; */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; 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()) { organization_ = s; } return s; } } /** * optional string organization = 2; */ public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organization_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IP_FIELD_NUMBER = 3; private volatile java.lang.Object ip_; /** * optional string ip = 3; */ public boolean hasIp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string ip = 3; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * optional string ip = 3; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALIDIPADDRESSES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList validIpAddresses_; /** * repeated string validIpAddresses = 4; */ public com.google.protobuf.ProtocolStringList getValidIpAddressesList() { return validIpAddresses_; } /** * repeated string validIpAddresses = 4; */ public int getValidIpAddressesCount() { return validIpAddresses_.size(); } /** * repeated string validIpAddresses = 4; */ public java.lang.String getValidIpAddresses(int index) { return validIpAddresses_.get(index); } /** * repeated string validIpAddresses = 4; */ public com.google.protobuf.ByteString getValidIpAddressesBytes(int index) { return validIpAddresses_.getByteString(index); } public static final int INVALIDSERVERID_FIELD_NUMBER = 5; private boolean invalidServerId_; /** * optional bool invalidServerId = 5; */ public boolean hasInvalidServerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bool invalidServerId = 5; */ public boolean getInvalidServerId() { return invalidServerId_; } 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 (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, serverId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, organization_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, ip_); } for (int i = 0; i < validIpAddresses_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 4, validIpAddresses_.getRaw(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(5, invalidServerId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serverId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organization_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, ip_); } { int dataSize = 0; for (int i = 0; i < validIpAddresses_.size(); i++) { dataSize += computeStringSizeNoTag(validIpAddresses_.getRaw(i)); } size += dataSize; size += 1 * getValidIpAddressesList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, invalidServerId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.ServerId.ShowWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.ServerId.ShowWsResponse 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.serverid.ShowWsResponse} * *
     * Response of GET api/server_id/show
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.serverid.ShowWsResponse) org.sonarqube.ws.ServerId.ShowWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_ShowWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.ServerId.ShowWsResponse.class, org.sonarqube.ws.ServerId.ShowWsResponse.Builder.class); } // Construct using org.sonarqube.ws.ServerId.ShowWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); serverId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); organization_ = ""; bitField0_ = (bitField0_ & ~0x00000002); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000004); validIpAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); invalidServerId_ = false; bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor; } public org.sonarqube.ws.ServerId.ShowWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.ServerId.ShowWsResponse.getDefaultInstance(); } public org.sonarqube.ws.ServerId.ShowWsResponse build() { org.sonarqube.ws.ServerId.ShowWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.ServerId.ShowWsResponse buildPartial() { org.sonarqube.ws.ServerId.ShowWsResponse result = new org.sonarqube.ws.ServerId.ShowWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.serverId_ = serverId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.organization_ = organization_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ip_ = ip_; if (((bitField0_ & 0x00000008) == 0x00000008)) { validIpAddresses_ = validIpAddresses_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.validIpAddresses_ = validIpAddresses_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.invalidServerId_ = invalidServerId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.ServerId.ShowWsResponse) { return mergeFrom((org.sonarqube.ws.ServerId.ShowWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.ServerId.ShowWsResponse other) { if (other == org.sonarqube.ws.ServerId.ShowWsResponse.getDefaultInstance()) return this; if (other.hasServerId()) { bitField0_ |= 0x00000001; serverId_ = other.serverId_; onChanged(); } if (other.hasOrganization()) { bitField0_ |= 0x00000002; organization_ = other.organization_; onChanged(); } if (other.hasIp()) { bitField0_ |= 0x00000004; ip_ = other.ip_; onChanged(); } if (!other.validIpAddresses_.isEmpty()) { if (validIpAddresses_.isEmpty()) { validIpAddresses_ = other.validIpAddresses_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureValidIpAddressesIsMutable(); validIpAddresses_.addAll(other.validIpAddresses_); } onChanged(); } if (other.hasInvalidServerId()) { setInvalidServerId(other.getInvalidServerId()); } 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 { org.sonarqube.ws.ServerId.ShowWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.ServerId.ShowWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object serverId_ = ""; /** * optional string serverId = 1; */ public boolean hasServerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string serverId = 1; */ public java.lang.String getServerId() { java.lang.Object ref = serverId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { serverId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string serverId = 1; */ public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string serverId = 1; */ public Builder setServerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; serverId_ = value; onChanged(); return this; } /** * optional string serverId = 1; */ public Builder clearServerId() { bitField0_ = (bitField0_ & ~0x00000001); serverId_ = getDefaultInstance().getServerId(); onChanged(); return this; } /** * optional string serverId = 1; */ public Builder setServerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; serverId_ = value; onChanged(); return this; } private java.lang.Object organization_ = ""; /** * optional string organization = 2; */ public boolean hasOrganization() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string organization = 2; */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { organization_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string organization = 2; */ public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organization_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string organization = 2; */ public Builder setOrganization( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; organization_ = value; onChanged(); return this; } /** * optional string organization = 2; */ public Builder clearOrganization() { bitField0_ = (bitField0_ & ~0x00000002); organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** * optional string organization = 2; */ public Builder setOrganizationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; organization_ = value; onChanged(); return this; } private java.lang.Object ip_ = ""; /** * optional string ip = 3; */ public boolean hasIp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string ip = 3; */ public java.lang.String getIp() { java.lang.Object ref = ip_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string ip = 3; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string ip = 3; */ public Builder setIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ip_ = value; onChanged(); return this; } /** * optional string ip = 3; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000004); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * optional string ip = 3; */ public Builder setIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ip_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList validIpAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValidIpAddressesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { validIpAddresses_ = new com.google.protobuf.LazyStringArrayList(validIpAddresses_); bitField0_ |= 0x00000008; } } /** * repeated string validIpAddresses = 4; */ public com.google.protobuf.ProtocolStringList getValidIpAddressesList() { return validIpAddresses_.getUnmodifiableView(); } /** * repeated string validIpAddresses = 4; */ public int getValidIpAddressesCount() { return validIpAddresses_.size(); } /** * repeated string validIpAddresses = 4; */ public java.lang.String getValidIpAddresses(int index) { return validIpAddresses_.get(index); } /** * repeated string validIpAddresses = 4; */ public com.google.protobuf.ByteString getValidIpAddressesBytes(int index) { return validIpAddresses_.getByteString(index); } /** * repeated string validIpAddresses = 4; */ public Builder setValidIpAddresses( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidIpAddressesIsMutable(); validIpAddresses_.set(index, value); onChanged(); return this; } /** * repeated string validIpAddresses = 4; */ public Builder addValidIpAddresses( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValidIpAddressesIsMutable(); validIpAddresses_.add(value); onChanged(); return this; } /** * repeated string validIpAddresses = 4; */ public Builder addAllValidIpAddresses( java.lang.Iterable values) { ensureValidIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, validIpAddresses_); onChanged(); return this; } /** * repeated string validIpAddresses = 4; */ public Builder clearValidIpAddresses() { validIpAddresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string validIpAddresses = 4; */ public Builder addValidIpAddressesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValidIpAddressesIsMutable(); validIpAddresses_.add(value); onChanged(); return this; } private boolean invalidServerId_ ; /** * optional bool invalidServerId = 5; */ public boolean hasInvalidServerId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bool invalidServerId = 5; */ public boolean getInvalidServerId() { return invalidServerId_; } /** * optional bool invalidServerId = 5; */ public Builder setInvalidServerId(boolean value) { bitField0_ |= 0x00000010; invalidServerId_ = value; onChanged(); return this; } /** * optional bool invalidServerId = 5; */ public Builder clearInvalidServerId() { bitField0_ = (bitField0_ & ~0x00000010); invalidServerId_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.serverid.ShowWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.serverid.ShowWsResponse) private static final org.sonarqube.ws.ServerId.ShowWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.ServerId.ShowWsResponse(); } public static org.sonarqube.ws.ServerId.ShowWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ShowWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ShowWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.ServerId.ShowWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GenerateWsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:sonarqube.ws.serverid.GenerateWsResponse) com.google.protobuf.MessageOrBuilder { /** * optional string serverId = 1; */ boolean hasServerId(); /** * optional string serverId = 1; */ java.lang.String getServerId(); /** * optional string serverId = 1; */ com.google.protobuf.ByteString getServerIdBytes(); } /** * Protobuf type {@code sonarqube.ws.serverid.GenerateWsResponse} * *
   * Response of POST api/server_id/generate
   * 
*/ public static final class GenerateWsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:sonarqube.ws.serverid.GenerateWsResponse) GenerateWsResponseOrBuilder { // Use GenerateWsResponse.newBuilder() to construct. private GenerateWsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private GenerateWsResponse() { serverId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenerateWsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; serverId_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( 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 org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_GenerateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.ServerId.GenerateWsResponse.class, org.sonarqube.ws.ServerId.GenerateWsResponse.Builder.class); } private int bitField0_; public static final int SERVERID_FIELD_NUMBER = 1; private volatile java.lang.Object serverId_; /** * optional string serverId = 1; */ public boolean hasServerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string serverId = 1; */ public java.lang.String getServerId() { java.lang.Object ref = serverId_; 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()) { serverId_ = s; } return s; } } /** * optional string serverId = 1; */ public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serverId_ = 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 (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, serverId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serverId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.sonarqube.ws.ServerId.GenerateWsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.sonarqube.ws.ServerId.GenerateWsResponse 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code sonarqube.ws.serverid.GenerateWsResponse} * *
     * Response of POST api/server_id/generate
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:sonarqube.ws.serverid.GenerateWsResponse) org.sonarqube.ws.ServerId.GenerateWsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_GenerateWsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.sonarqube.ws.ServerId.GenerateWsResponse.class, org.sonarqube.ws.ServerId.GenerateWsResponse.Builder.class); } // Construct using org.sonarqube.ws.ServerId.GenerateWsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); serverId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.sonarqube.ws.ServerId.internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor; } public org.sonarqube.ws.ServerId.GenerateWsResponse getDefaultInstanceForType() { return org.sonarqube.ws.ServerId.GenerateWsResponse.getDefaultInstance(); } public org.sonarqube.ws.ServerId.GenerateWsResponse build() { org.sonarqube.ws.ServerId.GenerateWsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.sonarqube.ws.ServerId.GenerateWsResponse buildPartial() { org.sonarqube.ws.ServerId.GenerateWsResponse result = new org.sonarqube.ws.ServerId.GenerateWsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.serverId_ = serverId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.sonarqube.ws.ServerId.GenerateWsResponse) { return mergeFrom((org.sonarqube.ws.ServerId.GenerateWsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.sonarqube.ws.ServerId.GenerateWsResponse other) { if (other == org.sonarqube.ws.ServerId.GenerateWsResponse.getDefaultInstance()) return this; if (other.hasServerId()) { bitField0_ |= 0x00000001; serverId_ = other.serverId_; 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 { org.sonarqube.ws.ServerId.GenerateWsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.sonarqube.ws.ServerId.GenerateWsResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object serverId_ = ""; /** * optional string serverId = 1; */ public boolean hasServerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string serverId = 1; */ public java.lang.String getServerId() { java.lang.Object ref = serverId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { serverId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string serverId = 1; */ public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string serverId = 1; */ public Builder setServerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; serverId_ = value; onChanged(); return this; } /** * optional string serverId = 1; */ public Builder clearServerId() { bitField0_ = (bitField0_ & ~0x00000001); serverId_ = getDefaultInstance().getServerId(); onChanged(); return this; } /** * optional string serverId = 1; */ public Builder setServerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; serverId_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:sonarqube.ws.serverid.GenerateWsResponse) } // @@protoc_insertion_point(class_scope:sonarqube.ws.serverid.GenerateWsResponse) private static final org.sonarqube.ws.ServerId.GenerateWsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.sonarqube.ws.ServerId.GenerateWsResponse(); } public static org.sonarqube.ws.ServerId.GenerateWsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GenerateWsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new GenerateWsResponse(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.sonarqube.ws.ServerId.GenerateWsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_serverid_ShowWsResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_sonarqube_ws_serverid_GenerateWsResponse_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\021ws-serverid.proto\022\025sonarqube.ws.server" + "id\"w\n\016ShowWsResponse\022\020\n\010serverId\030\001 \001(\t\022\024" + "\n\014organization\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t\022\030\n\020vali" + "dIpAddresses\030\004 \003(\t\022\027\n\017invalidServerId\030\005 " + "\001(\010\"&\n\022GenerateWsResponse\022\020\n\010serverId\030\001 " + "\001(\tB\036\n\020org.sonarqube.wsB\010ServerIdH\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; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_sonarqube_ws_serverid_ShowWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_serverid_ShowWsResponse_descriptor, new java.lang.String[] { "ServerId", "Organization", "Ip", "ValidIpAddresses", "InvalidServerId", }); internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_sonarqube_ws_serverid_GenerateWsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_sonarqube_ws_serverid_GenerateWsResponse_descriptor, new java.lang.String[] { "ServerId", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy