
org.yamcs.protobuf.ServiceAccountInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/iam/iam.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.iam.ServiceAccountInfo}
*/
public final class ServiceAccountInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.iam.ServiceAccountInfo)
ServiceAccountInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServiceAccountInfo.newBuilder() to construct.
private ServiceAccountInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServiceAccountInfo() {
name_ = "";
displayName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServiceAccountInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServiceAccountInfo(
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;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
displayName_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
active_ = input.readBool();
break;
}
case 34: {
org.yamcs.protobuf.UserInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = createdBy_.toBuilder();
}
createdBy_ = input.readMessage(org.yamcs.protobuf.UserInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdBy_);
createdBy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = creationTime_.toBuilder();
}
creationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(creationTime_);
creationTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = confirmationTime_.toBuilder();
}
confirmationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(confirmationTime_);
confirmationTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = lastLoginTime_.toBuilder();
}
lastLoginTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastLoginTime_);
lastLoginTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_ServiceAccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_ServiceAccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ServiceAccountInfo.class, org.yamcs.protobuf.ServiceAccountInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Service account name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAYNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object displayName_;
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return Whether the displayName field is set.
*/
@java.lang.Override
public boolean hasDisplayName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return The displayName.
*/
@java.lang.Override
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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()) {
displayName_ = s;
}
return s;
}
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVE_FIELD_NUMBER = 3;
private boolean active_;
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @return Whether the active field is set.
*/
@java.lang.Override
public boolean hasActive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
public static final int CREATEDBY_FIELD_NUMBER = 4;
private org.yamcs.protobuf.UserInfo createdBy_;
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
* @return Whether the createdBy field is set.
*/
@java.lang.Override
public boolean hasCreatedBy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
* @return The createdBy.
*/
@java.lang.Override
public org.yamcs.protobuf.UserInfo getCreatedBy() {
return createdBy_ == null ? org.yamcs.protobuf.UserInfo.getDefaultInstance() : createdBy_;
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
@java.lang.Override
public org.yamcs.protobuf.UserInfoOrBuilder getCreatedByOrBuilder() {
return createdBy_ == null ? org.yamcs.protobuf.UserInfo.getDefaultInstance() : createdBy_;
}
public static final int CREATIONTIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp creationTime_;
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
* @return Whether the creationTime field is set.
*/
@java.lang.Override
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
* @return The creationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreationTime() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
public static final int CONFIRMATIONTIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp confirmationTime_;
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
* @return Whether the confirmationTime field is set.
*/
@java.lang.Override
public boolean hasConfirmationTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
* @return The confirmationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getConfirmationTime() {
return confirmationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : confirmationTime_;
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getConfirmationTimeOrBuilder() {
return confirmationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : confirmationTime_;
}
public static final int LASTLOGINTIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp lastLoginTime_;
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
* @return Whether the lastLoginTime field is set.
*/
@java.lang.Override
public boolean hasLastLoginTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
* @return The lastLoginTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastLoginTime() {
return lastLoginTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastLoginTime_;
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder() {
return lastLoginTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastLoginTime_;
}
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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, active_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getCreatedBy());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getCreationTime());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getConfirmationTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getLastLoginTime());
}
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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, active_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCreatedBy());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreationTime());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getConfirmationTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getLastLoginTime());
}
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.ServiceAccountInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.ServiceAccountInfo other = (org.yamcs.protobuf.ServiceAccountInfo) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDisplayName() != other.hasDisplayName()) return false;
if (hasDisplayName()) {
if (!getDisplayName()
.equals(other.getDisplayName())) return false;
}
if (hasActive() != other.hasActive()) return false;
if (hasActive()) {
if (getActive()
!= other.getActive()) return false;
}
if (hasCreatedBy() != other.hasCreatedBy()) return false;
if (hasCreatedBy()) {
if (!getCreatedBy()
.equals(other.getCreatedBy())) return false;
}
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (!getCreationTime()
.equals(other.getCreationTime())) return false;
}
if (hasConfirmationTime() != other.hasConfirmationTime()) return false;
if (hasConfirmationTime()) {
if (!getConfirmationTime()
.equals(other.getConfirmationTime())) return false;
}
if (hasLastLoginTime() != other.hasLastLoginTime()) return false;
if (hasLastLoginTime()) {
if (!getLastLoginTime()
.equals(other.getLastLoginTime())) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDisplayName()) {
hash = (37 * hash) + DISPLAYNAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
}
if (hasActive()) {
hash = (37 * hash) + ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getActive());
}
if (hasCreatedBy()) {
hash = (37 * hash) + CREATEDBY_FIELD_NUMBER;
hash = (53 * hash) + getCreatedBy().hashCode();
}
if (hasCreationTime()) {
hash = (37 * hash) + CREATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationTime().hashCode();
}
if (hasConfirmationTime()) {
hash = (37 * hash) + CONFIRMATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getConfirmationTime().hashCode();
}
if (hasLastLoginTime()) {
hash = (37 * hash) + LASTLOGINTIME_FIELD_NUMBER;
hash = (53 * hash) + getLastLoginTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ServiceAccountInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ServiceAccountInfo 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.ServiceAccountInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ServiceAccountInfo 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.ServiceAccountInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ServiceAccountInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ServiceAccountInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ServiceAccountInfo 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.ServiceAccountInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ServiceAccountInfo 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.ServiceAccountInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ServiceAccountInfo 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.ServiceAccountInfo 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.ServiceAccountInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.iam.ServiceAccountInfo)
org.yamcs.protobuf.ServiceAccountInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_ServiceAccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_ServiceAccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ServiceAccountInfo.class, org.yamcs.protobuf.ServiceAccountInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.ServiceAccountInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCreatedByFieldBuilder();
getCreationTimeFieldBuilder();
getConfirmationTimeFieldBuilder();
getLastLoginTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
displayName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
active_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
if (createdByBuilder_ == null) {
createdBy_ = null;
} else {
createdByBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (creationTimeBuilder_ == null) {
creationTime_ = null;
} else {
creationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (confirmationTimeBuilder_ == null) {
confirmationTime_ = null;
} else {
confirmationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (lastLoginTimeBuilder_ == null) {
lastLoginTime_ = null;
} else {
lastLoginTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_ServiceAccountInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ServiceAccountInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.ServiceAccountInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ServiceAccountInfo build() {
org.yamcs.protobuf.ServiceAccountInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ServiceAccountInfo buildPartial() {
org.yamcs.protobuf.ServiceAccountInfo result = new org.yamcs.protobuf.ServiceAccountInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.displayName_ = displayName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.active_ = active_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (createdByBuilder_ == null) {
result.createdBy_ = createdBy_;
} else {
result.createdBy_ = createdByBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (creationTimeBuilder_ == null) {
result.creationTime_ = creationTime_;
} else {
result.creationTime_ = creationTimeBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (confirmationTimeBuilder_ == null) {
result.confirmationTime_ = confirmationTime_;
} else {
result.confirmationTime_ = confirmationTimeBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
if (lastLoginTimeBuilder_ == null) {
result.lastLoginTime_ = lastLoginTime_;
} else {
result.lastLoginTime_ = lastLoginTimeBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
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.ServiceAccountInfo) {
return mergeFrom((org.yamcs.protobuf.ServiceAccountInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ServiceAccountInfo other) {
if (other == org.yamcs.protobuf.ServiceAccountInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDisplayName()) {
bitField0_ |= 0x00000002;
displayName_ = other.displayName_;
onChanged();
}
if (other.hasActive()) {
setActive(other.getActive());
}
if (other.hasCreatedBy()) {
mergeCreatedBy(other.getCreatedBy());
}
if (other.hasCreationTime()) {
mergeCreationTime(other.getCreationTime());
}
if (other.hasConfirmationTime()) {
mergeConfirmationTime(other.getConfirmationTime());
}
if (other.hasLastLoginTime()) {
mergeLastLoginTime(other.getLastLoginTime());
}
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.ServiceAccountInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ServiceAccountInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Service account name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Service account name
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return Whether the displayName field is set.
*/
public boolean hasDisplayName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
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()) {
displayName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString
getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @param value The displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
displayName_ = value;
onChanged();
return this;
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @return This builder for chaining.
*/
public Builder clearDisplayName() {
bitField0_ = (bitField0_ & ~0x00000002);
displayName_ = getDefaultInstance().getDisplayName();
onChanged();
return this;
}
/**
*
* Displayed name
*
*
* optional string displayName = 2;
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
displayName_ = value;
onChanged();
return this;
}
private boolean active_ ;
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @return Whether the active field is set.
*/
@java.lang.Override
public boolean hasActive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @param value The active to set.
* @return This builder for chaining.
*/
public Builder setActive(boolean value) {
bitField0_ |= 0x00000004;
active_ = value;
onChanged();
return this;
}
/**
*
* Whether the account may login
*
*
* optional bool active = 3;
* @return This builder for chaining.
*/
public Builder clearActive() {
bitField0_ = (bitField0_ & ~0x00000004);
active_ = false;
onChanged();
return this;
}
private org.yamcs.protobuf.UserInfo createdBy_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder> createdByBuilder_;
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
* @return Whether the createdBy field is set.
*/
public boolean hasCreatedBy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
* @return The createdBy.
*/
public org.yamcs.protobuf.UserInfo getCreatedBy() {
if (createdByBuilder_ == null) {
return createdBy_ == null ? org.yamcs.protobuf.UserInfo.getDefaultInstance() : createdBy_;
} else {
return createdByBuilder_.getMessage();
}
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public Builder setCreatedBy(org.yamcs.protobuf.UserInfo value) {
if (createdByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdBy_ = value;
onChanged();
} else {
createdByBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public Builder setCreatedBy(
org.yamcs.protobuf.UserInfo.Builder builderForValue) {
if (createdByBuilder_ == null) {
createdBy_ = builderForValue.build();
onChanged();
} else {
createdByBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public Builder mergeCreatedBy(org.yamcs.protobuf.UserInfo value) {
if (createdByBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
createdBy_ != null &&
createdBy_ != org.yamcs.protobuf.UserInfo.getDefaultInstance()) {
createdBy_ =
org.yamcs.protobuf.UserInfo.newBuilder(createdBy_).mergeFrom(value).buildPartial();
} else {
createdBy_ = value;
}
onChanged();
} else {
createdByBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public Builder clearCreatedBy() {
if (createdByBuilder_ == null) {
createdBy_ = null;
onChanged();
} else {
createdByBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public org.yamcs.protobuf.UserInfo.Builder getCreatedByBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCreatedByFieldBuilder().getBuilder();
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
public org.yamcs.protobuf.UserInfoOrBuilder getCreatedByOrBuilder() {
if (createdByBuilder_ != null) {
return createdByBuilder_.getMessageOrBuilder();
} else {
return createdBy_ == null ?
org.yamcs.protobuf.UserInfo.getDefaultInstance() : createdBy_;
}
}
/**
*
* User that created this user account
*
*
* optional .yamcs.protobuf.iam.UserInfo createdBy = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder>
getCreatedByFieldBuilder() {
if (createdByBuilder_ == null) {
createdByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder>(
getCreatedBy(),
getParentForChildren(),
isClean());
createdBy_ = null;
}
return createdByBuilder_;
}
private com.google.protobuf.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_;
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
* @return The creationTime.
*/
public com.google.protobuf.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
} else {
return creationTimeBuilder_.getMessage();
}
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public Builder setCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
onChanged();
} else {
creationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public Builder setCreationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
onChanged();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
creationTime_ != null &&
creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
creationTime_ =
com.google.protobuf.Timestamp.newBuilder(creationTime_).mergeFrom(value).buildPartial();
} else {
creationTime_ = value;
}
onChanged();
} else {
creationTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public Builder clearCreationTime() {
if (creationTimeBuilder_ == null) {
creationTime_ = null;
onChanged();
} else {
creationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
* When this user was created
*
*
* optional .google.protobuf.Timestamp creationTime = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreationTime(),
getParentForChildren(),
isClean());
creationTime_ = null;
}
return creationTimeBuilder_;
}
private com.google.protobuf.Timestamp confirmationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> confirmationTimeBuilder_;
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
* @return Whether the confirmationTime field is set.
*/
public boolean hasConfirmationTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
* @return The confirmationTime.
*/
public com.google.protobuf.Timestamp getConfirmationTime() {
if (confirmationTimeBuilder_ == null) {
return confirmationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : confirmationTime_;
} else {
return confirmationTimeBuilder_.getMessage();
}
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public Builder setConfirmationTime(com.google.protobuf.Timestamp value) {
if (confirmationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
confirmationTime_ = value;
onChanged();
} else {
confirmationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public Builder setConfirmationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (confirmationTimeBuilder_ == null) {
confirmationTime_ = builderForValue.build();
onChanged();
} else {
confirmationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public Builder mergeConfirmationTime(com.google.protobuf.Timestamp value) {
if (confirmationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
confirmationTime_ != null &&
confirmationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
confirmationTime_ =
com.google.protobuf.Timestamp.newBuilder(confirmationTime_).mergeFrom(value).buildPartial();
} else {
confirmationTime_ = value;
}
onChanged();
} else {
confirmationTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public Builder clearConfirmationTime() {
if (confirmationTimeBuilder_ == null) {
confirmationTime_ = null;
onChanged();
} else {
confirmationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public com.google.protobuf.Timestamp.Builder getConfirmationTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getConfirmationTimeFieldBuilder().getBuilder();
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
public com.google.protobuf.TimestampOrBuilder getConfirmationTimeOrBuilder() {
if (confirmationTimeBuilder_ != null) {
return confirmationTimeBuilder_.getMessageOrBuilder();
} else {
return confirmationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : confirmationTime_;
}
}
/**
*
* When this account was first activated
*
*
* optional .google.protobuf.Timestamp confirmationTime = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getConfirmationTimeFieldBuilder() {
if (confirmationTimeBuilder_ == null) {
confirmationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getConfirmationTime(),
getParentForChildren(),
isClean());
confirmationTime_ = null;
}
return confirmationTimeBuilder_;
}
private com.google.protobuf.Timestamp lastLoginTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastLoginTimeBuilder_;
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
* @return Whether the lastLoginTime field is set.
*/
public boolean hasLastLoginTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
* @return The lastLoginTime.
*/
public com.google.protobuf.Timestamp getLastLoginTime() {
if (lastLoginTimeBuilder_ == null) {
return lastLoginTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastLoginTime_;
} else {
return lastLoginTimeBuilder_.getMessage();
}
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public Builder setLastLoginTime(com.google.protobuf.Timestamp value) {
if (lastLoginTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastLoginTime_ = value;
onChanged();
} else {
lastLoginTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public Builder setLastLoginTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastLoginTimeBuilder_ == null) {
lastLoginTime_ = builderForValue.build();
onChanged();
} else {
lastLoginTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public Builder mergeLastLoginTime(com.google.protobuf.Timestamp value) {
if (lastLoginTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
lastLoginTime_ != null &&
lastLoginTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
lastLoginTime_ =
com.google.protobuf.Timestamp.newBuilder(lastLoginTime_).mergeFrom(value).buildPartial();
} else {
lastLoginTime_ = value;
}
onChanged();
} else {
lastLoginTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public Builder clearLastLoginTime() {
if (lastLoginTimeBuilder_ == null) {
lastLoginTime_ = null;
onChanged();
} else {
lastLoginTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public com.google.protobuf.Timestamp.Builder getLastLoginTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getLastLoginTimeFieldBuilder().getBuilder();
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
public com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder() {
if (lastLoginTimeBuilder_ != null) {
return lastLoginTimeBuilder_.getMessageOrBuilder();
} else {
return lastLoginTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastLoginTime_;
}
}
/**
*
* When this account last logged in
*
*
* optional .google.protobuf.Timestamp lastLoginTime = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastLoginTimeFieldBuilder() {
if (lastLoginTimeBuilder_ == null) {
lastLoginTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastLoginTime(),
getParentForChildren(),
isClean());
lastLoginTime_ = null;
}
return lastLoginTimeBuilder_;
}
@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.ServiceAccountInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.iam.ServiceAccountInfo)
private static final org.yamcs.protobuf.ServiceAccountInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ServiceAccountInfo();
}
public static org.yamcs.protobuf.ServiceAccountInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServiceAccountInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServiceAccountInfo(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.ServiceAccountInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy