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

org.yamcs.protobuf.SessionInfo Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/iam/sessions_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.iam.SessionInfo}
 */
public final class SessionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.iam.SessionInfo)
    SessionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SessionInfo.newBuilder() to construct.
  private SessionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SessionInfo() {
    id_ = "";
    username_ = "";
    ipAddress_ = "";
    hostname_ = "";
    clients_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SessionInfo(
      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;
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            id_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            username_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            ipAddress_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            hostname_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = startTime_.toBuilder();
            }
            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTime_);
              startTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = lastAccessTime_.toBuilder();
            }
            lastAccessTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lastAccessTime_);
              lastAccessTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000020;
            break;
          }
          case 58: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000040) != 0)) {
              subBuilder = expirationTime_.toBuilder();
            }
            expirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(expirationTime_);
              expirationTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000040;
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000080) != 0)) {
              clients_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000080;
            }
            clients_.add(bs);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000080) != 0)) {
        clients_ = clients_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.SessionsServiceProto.internal_static_yamcs_protobuf_iam_SessionInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.SessionsServiceProto.internal_static_yamcs_protobuf_iam_SessionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.SessionInfo.class, org.yamcs.protobuf.SessionInfo.Builder.class);
  }

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * 
   * Session identifier
   * 
* * optional string id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Session identifier
   * 
* * optional string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
   * Session identifier
   * 
* * optional string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object username_; /** * optional string username = 2; * @return Whether the username field is set. */ @java.lang.Override public boolean hasUsername() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string username = 2; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } } /** * optional string username = 2; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IPADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** * optional string ipAddress = 3; * @return Whether the ipAddress field is set. */ @java.lang.Override public boolean hasIpAddress() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string ipAddress = 3; * @return The ipAddress. */ @java.lang.Override public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; 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()) { ipAddress_ = s; } return s; } } /** * optional string ipAddress = 3; * @return The bytes for ipAddress. */ @java.lang.Override public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ipAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTNAME_FIELD_NUMBER = 4; private volatile java.lang.Object hostname_; /** * optional string hostname = 4; * @return Whether the hostname field is set. */ @java.lang.Override public boolean hasHostname() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string hostname = 4; * @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(); if (bs.isValidUtf8()) { hostname_ = s; } return s; } } /** * optional string hostname = 4; * @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 STARTTIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; /** * optional .google.protobuf.Timestamp startTime = 5; * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .google.protobuf.Timestamp startTime = 5; * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * optional .google.protobuf.Timestamp startTime = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int LASTACCESSTIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp lastAccessTime_; /** * optional .google.protobuf.Timestamp lastAccessTime = 6; * @return Whether the lastAccessTime field is set. */ @java.lang.Override public boolean hasLastAccessTime() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; * @return The lastAccessTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastAccessTime() { return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_; } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_; } public static final int EXPIRATIONTIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp expirationTime_; /** * optional .google.protobuf.Timestamp expirationTime = 7; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .google.protobuf.Timestamp expirationTime = 7; * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } public static final int CLIENTS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList clients_; /** * repeated string clients = 8; * @return A list containing the clients. */ public com.google.protobuf.ProtocolStringList getClientsList() { return clients_; } /** * repeated string clients = 8; * @return The count of clients. */ public int getClientsCount() { return clients_.size(); } /** * repeated string clients = 8; * @param index The index of the element to return. * @return The clients at the given index. */ public java.lang.String getClients(int index) { return clients_.get(index); } /** * repeated string clients = 8; * @param index The index of the value to return. * @return The bytes of the clients at the given index. */ public com.google.protobuf.ByteString getClientsBytes(int index) { return clients_.getByteString(index); } 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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hostname_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getStartTime()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getLastAccessTime()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(7, getExpirationTime()); } for (int i = 0; i < clients_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clients_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hostname_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStartTime()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLastAccessTime()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getExpirationTime()); } { int dataSize = 0; for (int i = 0; i < clients_.size(); i++) { dataSize += computeStringSizeNoTag(clients_.getRaw(i)); } size += dataSize; size += 1 * getClientsList().size(); } 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 org.yamcs.protobuf.SessionInfo)) { return super.equals(obj); } org.yamcs.protobuf.SessionInfo other = (org.yamcs.protobuf.SessionInfo) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasUsername() != other.hasUsername()) return false; if (hasUsername()) { if (!getUsername() .equals(other.getUsername())) return false; } if (hasIpAddress() != other.hasIpAddress()) return false; if (hasIpAddress()) { if (!getIpAddress() .equals(other.getIpAddress())) return false; } if (hasHostname() != other.hasHostname()) return false; if (hasHostname()) { if (!getHostname() .equals(other.getHostname())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime() .equals(other.getStartTime())) return false; } if (hasLastAccessTime() != other.hasLastAccessTime()) return false; if (hasLastAccessTime()) { if (!getLastAccessTime() .equals(other.getLastAccessTime())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (!getClientsList() .equals(other.getClientsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasUsername()) { hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); } if (hasIpAddress()) { hash = (37 * hash) + IPADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + STARTTIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasLastAccessTime()) { hash = (37 * hash) + LASTACCESSTIME_FIELD_NUMBER; hash = (53 * hash) + getLastAccessTime().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (getClientsCount() > 0) { hash = (37 * hash) + CLIENTS_FIELD_NUMBER; hash = (53 * hash) + getClientsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.SessionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.SessionInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.SessionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.SessionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.SessionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.SessionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.SessionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.SessionInfo 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 org.yamcs.protobuf.SessionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.SessionInfo 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 org.yamcs.protobuf.SessionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.SessionInfo 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(org.yamcs.protobuf.SessionInfo 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 yamcs.protobuf.iam.SessionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.iam.SessionInfo) org.yamcs.protobuf.SessionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.SessionsServiceProto.internal_static_yamcs_protobuf_iam_SessionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.SessionsServiceProto.internal_static_yamcs_protobuf_iam_SessionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.SessionInfo.class, org.yamcs.protobuf.SessionInfo.Builder.class); } // Construct using org.yamcs.protobuf.SessionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getLastAccessTimeFieldBuilder(); getExpirationTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); username_ = ""; bitField0_ = (bitField0_ & ~0x00000002); ipAddress_ = ""; bitField0_ = (bitField0_ & ~0x00000004); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (startTimeBuilder_ == null) { startTime_ = null; } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (lastAccessTimeBuilder_ == null) { lastAccessTime_ = null; } else { lastAccessTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (expirationTimeBuilder_ == null) { expirationTime_ = null; } else { expirationTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); clients_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.SessionsServiceProto.internal_static_yamcs_protobuf_iam_SessionInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.SessionInfo getDefaultInstanceForType() { return org.yamcs.protobuf.SessionInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.SessionInfo build() { org.yamcs.protobuf.SessionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.SessionInfo buildPartial() { org.yamcs.protobuf.SessionInfo result = new org.yamcs.protobuf.SessionInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.username_ = username_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.ipAddress_ = ipAddress_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000010) != 0)) { if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (lastAccessTimeBuilder_ == null) { result.lastAccessTime_ = lastAccessTime_; } else { result.lastAccessTime_ = lastAccessTimeBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } to_bitField0_ |= 0x00000040; } if (((bitField0_ & 0x00000080) != 0)) { clients_ = clients_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000080); } result.clients_ = clients_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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 org.yamcs.protobuf.SessionInfo) { return mergeFrom((org.yamcs.protobuf.SessionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.SessionInfo other) { if (other == org.yamcs.protobuf.SessionInfo.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasUsername()) { bitField0_ |= 0x00000002; username_ = other.username_; onChanged(); } if (other.hasIpAddress()) { bitField0_ |= 0x00000004; ipAddress_ = other.ipAddress_; onChanged(); } if (other.hasHostname()) { bitField0_ |= 0x00000008; hostname_ = other.hostname_; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasLastAccessTime()) { mergeLastAccessTime(other.getLastAccessTime()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (!other.clients_.isEmpty()) { if (clients_.isEmpty()) { clients_ = other.clients_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureClientsIsMutable(); clients_.addAll(other.clients_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { org.yamcs.protobuf.SessionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.SessionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * Session identifier
     * 
* * optional string id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Session identifier
     * 
* * optional string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Session identifier
     * 
* * optional string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Session identifier
     * 
* * optional string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * Session identifier
     * 
* * optional string id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Session identifier
     * 
* * optional string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object username_ = ""; /** * optional string username = 2; * @return Whether the username field is set. */ public boolean hasUsername() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string username = 2; * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string username = 2; * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string username = 2; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; username_ = value; onChanged(); return this; } /** * optional string username = 2; * @return This builder for chaining. */ public Builder clearUsername() { bitField0_ = (bitField0_ & ~0x00000002); username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** * optional string username = 2; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; username_ = value; onChanged(); return this; } private java.lang.Object ipAddress_ = ""; /** * optional string ipAddress = 3; * @return Whether the ipAddress field is set. */ public boolean hasIpAddress() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string ipAddress = 3; * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; 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()) { ipAddress_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string ipAddress = 3; * @return The bytes for ipAddress. */ public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ipAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string ipAddress = 3; * @param value The ipAddress to set. * @return This builder for chaining. */ public Builder setIpAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ipAddress_ = value; onChanged(); return this; } /** * optional string ipAddress = 3; * @return This builder for chaining. */ public Builder clearIpAddress() { bitField0_ = (bitField0_ & ~0x00000004); ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** * optional string ipAddress = 3; * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ public Builder setIpAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ipAddress_ = value; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** * optional string hostname = 4; * @return Whether the hostname field is set. */ public boolean hasHostname() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string hostname = 4; * @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(); if (bs.isValidUtf8()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string hostname = 4; * @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; } } /** * optional string hostname = 4; * @param value The hostname to set. * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; hostname_ = value; onChanged(); return this; } /** * optional string hostname = 4; * @return This builder for chaining. */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000008); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * optional string hostname = 4; * @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(); } bitField0_ |= 0x00000008; hostname_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * optional .google.protobuf.Timestamp startTime = 5; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .google.protobuf.Timestamp startTime = 5; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp startTime = 5; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .google.protobuf.Timestamp startTime = 5; */ public Builder setStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .google.protobuf.Timestamp startTime = 5; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .google.protobuf.Timestamp startTime = 5; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .google.protobuf.Timestamp startTime = 5; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp startTime = 5; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * optional .google.protobuf.Timestamp startTime = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp lastAccessTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastAccessTimeBuilder_; /** * optional .google.protobuf.Timestamp lastAccessTime = 6; * @return Whether the lastAccessTime field is set. */ public boolean hasLastAccessTime() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; * @return The lastAccessTime. */ public com.google.protobuf.Timestamp getLastAccessTime() { if (lastAccessTimeBuilder_ == null) { return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_; } else { return lastAccessTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public Builder setLastAccessTime(com.google.protobuf.Timestamp value) { if (lastAccessTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastAccessTime_ = value; onChanged(); } else { lastAccessTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public Builder setLastAccessTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastAccessTimeBuilder_ == null) { lastAccessTime_ = builderForValue.build(); onChanged(); } else { lastAccessTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public Builder mergeLastAccessTime(com.google.protobuf.Timestamp value) { if (lastAccessTimeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && lastAccessTime_ != null && lastAccessTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { lastAccessTime_ = com.google.protobuf.Timestamp.newBuilder(lastAccessTime_).mergeFrom(value).buildPartial(); } else { lastAccessTime_ = value; } onChanged(); } else { lastAccessTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public Builder clearLastAccessTime() { if (lastAccessTimeBuilder_ == null) { lastAccessTime_ = null; onChanged(); } else { lastAccessTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public com.google.protobuf.Timestamp.Builder getLastAccessTimeBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLastAccessTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { if (lastAccessTimeBuilder_ != null) { return lastAccessTimeBuilder_.getMessageOrBuilder(); } else { return lastAccessTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAccessTime_; } } /** * optional .google.protobuf.Timestamp lastAccessTime = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastAccessTimeFieldBuilder() { if (lastAccessTimeBuilder_ == null) { lastAccessTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastAccessTime(), getParentForChildren(), isClean()); lastAccessTime_ = null; } return lastAccessTimeBuilder_; } private com.google.protobuf.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; /** * optional .google.protobuf.Timestamp expirationTime = 7; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return ((bitField0_ & 0x00000040) != 0); } /** * optional .google.protobuf.Timestamp expirationTime = 7; * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public Builder setExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public Builder setExpirationTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && expirationTime_ != null && expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { expirationTime_ = com.google.protobuf.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public Builder clearExpirationTime() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } } /** * optional .google.protobuf.Timestamp expirationTime = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.google.protobuf.LazyStringList clients_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClientsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { clients_ = new com.google.protobuf.LazyStringArrayList(clients_); bitField0_ |= 0x00000080; } } /** * repeated string clients = 8; * @return A list containing the clients. */ public com.google.protobuf.ProtocolStringList getClientsList() { return clients_.getUnmodifiableView(); } /** * repeated string clients = 8; * @return The count of clients. */ public int getClientsCount() { return clients_.size(); } /** * repeated string clients = 8; * @param index The index of the element to return. * @return The clients at the given index. */ public java.lang.String getClients(int index) { return clients_.get(index); } /** * repeated string clients = 8; * @param index The index of the value to return. * @return The bytes of the clients at the given index. */ public com.google.protobuf.ByteString getClientsBytes(int index) { return clients_.getByteString(index); } /** * repeated string clients = 8; * @param index The index to set the value at. * @param value The clients to set. * @return This builder for chaining. */ public Builder setClients( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.set(index, value); onChanged(); return this; } /** * repeated string clients = 8; * @param value The clients to add. * @return This builder for chaining. */ public Builder addClients( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.add(value); onChanged(); return this; } /** * repeated string clients = 8; * @param values The clients to add. * @return This builder for chaining. */ public Builder addAllClients( java.lang.Iterable values) { ensureClientsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clients_); onChanged(); return this; } /** * repeated string clients = 8; * @return This builder for chaining. */ public Builder clearClients() { clients_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * repeated string clients = 8; * @param value The bytes of the clients to add. * @return This builder for chaining. */ public Builder addClientsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureClientsIsMutable(); clients_.add(value); 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:yamcs.protobuf.iam.SessionInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.iam.SessionInfo) private static final org.yamcs.protobuf.SessionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.SessionInfo(); } public static org.yamcs.protobuf.SessionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.yamcs.protobuf.SessionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy