org.yamcs.protobuf.GroupInfo 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.GroupInfo}
*/
public final class GroupInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.iam.GroupInfo)
GroupInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupInfo.newBuilder() to construct.
private GroupInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupInfo() {
name_ = "";
description_ = "";
users_ = java.util.Collections.emptyList();
serviceAccounts_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupInfo(
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;
description_ = bs;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
users_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
users_.add(
input.readMessage(org.yamcs.protobuf.UserInfo.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
serviceAccounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
serviceAccounts_.add(
input.readMessage(org.yamcs.protobuf.ServiceAccountInfo.PARSER, extensionRegistry));
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_ & 0x00000004) != 0)) {
users_ = java.util.Collections.unmodifiableList(users_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
serviceAccounts_ = java.util.Collections.unmodifiableList(serviceAccounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_GroupInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_GroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.GroupInfo.class, org.yamcs.protobuf.GroupInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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 DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
* optional string description = 2;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
}
}
/**
* optional string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERS_FIELD_NUMBER = 3;
private java.util.List users_;
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public java.util.List getUsersList() {
return users_;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public java.util.List extends org.yamcs.protobuf.UserInfoOrBuilder>
getUsersOrBuilderList() {
return users_;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public int getUsersCount() {
return users_.size();
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfo getUsers(int index) {
return users_.get(index);
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfoOrBuilder getUsersOrBuilder(
int index) {
return users_.get(index);
}
public static final int SERVICEACCOUNTS_FIELD_NUMBER = 4;
private java.util.List serviceAccounts_;
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public java.util.List getServiceAccountsList() {
return serviceAccounts_;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public java.util.List extends org.yamcs.protobuf.ServiceAccountInfoOrBuilder>
getServiceAccountsOrBuilderList() {
return serviceAccounts_;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public int getServiceAccountsCount() {
return serviceAccounts_.size();
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfo getServiceAccounts(int index) {
return serviceAccounts_.get(index);
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfoOrBuilder getServiceAccountsOrBuilder(
int index) {
return serviceAccounts_.get(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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
for (int i = 0; i < users_.size(); i++) {
output.writeMessage(3, users_.get(i));
}
for (int i = 0; i < serviceAccounts_.size(); i++) {
output.writeMessage(4, serviceAccounts_.get(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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
for (int i = 0; i < users_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, users_.get(i));
}
for (int i = 0; i < serviceAccounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, serviceAccounts_.get(i));
}
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.GroupInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.GroupInfo other = (org.yamcs.protobuf.GroupInfo) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (!getUsersList()
.equals(other.getUsersList())) return false;
if (!getServiceAccountsList()
.equals(other.getServiceAccountsList())) 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 (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (getUsersCount() > 0) {
hash = (37 * hash) + USERS_FIELD_NUMBER;
hash = (53 * hash) + getUsersList().hashCode();
}
if (getServiceAccountsCount() > 0) {
hash = (37 * hash) + SERVICEACCOUNTS_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.GroupInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.GroupInfo 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.GroupInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.GroupInfo 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.GroupInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.GroupInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.GroupInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.GroupInfo 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.GroupInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.GroupInfo 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.GroupInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.GroupInfo 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.GroupInfo 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.GroupInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.iam.GroupInfo)
org.yamcs.protobuf.GroupInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_GroupInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_GroupInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.GroupInfo.class, org.yamcs.protobuf.GroupInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.GroupInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUsersFieldBuilder();
getServiceAccountsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
usersBuilder_.clear();
}
if (serviceAccountsBuilder_ == null) {
serviceAccounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
serviceAccountsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.IamProto.internal_static_yamcs_protobuf_iam_GroupInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.GroupInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.GroupInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.GroupInfo build() {
org.yamcs.protobuf.GroupInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.GroupInfo buildPartial() {
org.yamcs.protobuf.GroupInfo result = new org.yamcs.protobuf.GroupInfo(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.description_ = description_;
if (usersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
users_ = java.util.Collections.unmodifiableList(users_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.users_ = users_;
} else {
result.users_ = usersBuilder_.build();
}
if (serviceAccountsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
serviceAccounts_ = java.util.Collections.unmodifiableList(serviceAccounts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.serviceAccounts_ = serviceAccounts_;
} else {
result.serviceAccounts_ = serviceAccountsBuilder_.build();
}
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.GroupInfo) {
return mergeFrom((org.yamcs.protobuf.GroupInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.GroupInfo other) {
if (other == org.yamcs.protobuf.GroupInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000002;
description_ = other.description_;
onChanged();
}
if (usersBuilder_ == null) {
if (!other.users_.isEmpty()) {
if (users_.isEmpty()) {
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUsersIsMutable();
users_.addAll(other.users_);
}
onChanged();
}
} else {
if (!other.users_.isEmpty()) {
if (usersBuilder_.isEmpty()) {
usersBuilder_.dispose();
usersBuilder_ = null;
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000004);
usersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUsersFieldBuilder() : null;
} else {
usersBuilder_.addAllMessages(other.users_);
}
}
}
if (serviceAccountsBuilder_ == null) {
if (!other.serviceAccounts_.isEmpty()) {
if (serviceAccounts_.isEmpty()) {
serviceAccounts_ = other.serviceAccounts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureServiceAccountsIsMutable();
serviceAccounts_.addAll(other.serviceAccounts_);
}
onChanged();
}
} else {
if (!other.serviceAccounts_.isEmpty()) {
if (serviceAccountsBuilder_.isEmpty()) {
serviceAccountsBuilder_.dispose();
serviceAccountsBuilder_ = null;
serviceAccounts_ = other.serviceAccounts_;
bitField0_ = (bitField0_ & ~0x00000008);
serviceAccountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServiceAccountsFieldBuilder() : null;
} else {
serviceAccountsBuilder_.addAllMessages(other.serviceAccounts_);
}
}
}
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.GroupInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.GroupInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
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;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
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 description_ = "";
/**
* optional string description = 2;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 2;
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000002);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
private java.util.List users_ =
java.util.Collections.emptyList();
private void ensureUsersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
users_ = new java.util.ArrayList(users_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder> usersBuilder_;
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public java.util.List getUsersList() {
if (usersBuilder_ == null) {
return java.util.Collections.unmodifiableList(users_);
} else {
return usersBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public int getUsersCount() {
if (usersBuilder_ == null) {
return users_.size();
} else {
return usersBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfo getUsers(int index) {
if (usersBuilder_ == null) {
return users_.get(index);
} else {
return usersBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder setUsers(
int index, org.yamcs.protobuf.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.set(index, value);
onChanged();
} else {
usersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder setUsers(
int index, org.yamcs.protobuf.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.set(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder addUsers(org.yamcs.protobuf.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
} else {
usersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder addUsers(
int index, org.yamcs.protobuf.UserInfo value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(index, value);
onChanged();
} else {
usersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder addUsers(
org.yamcs.protobuf.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder addUsers(
int index, org.yamcs.protobuf.UserInfo.Builder builderForValue) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.add(index, builderForValue.build());
onChanged();
} else {
usersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder addAllUsers(
java.lang.Iterable extends org.yamcs.protobuf.UserInfo> values) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, users_);
onChanged();
} else {
usersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
users_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
usersBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public Builder removeUsers(int index) {
if (usersBuilder_ == null) {
ensureUsersIsMutable();
users_.remove(index);
onChanged();
} else {
usersBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfo.Builder getUsersBuilder(
int index) {
return getUsersFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfoOrBuilder getUsersOrBuilder(
int index) {
if (usersBuilder_ == null) {
return users_.get(index); } else {
return usersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public java.util.List extends org.yamcs.protobuf.UserInfoOrBuilder>
getUsersOrBuilderList() {
if (usersBuilder_ != null) {
return usersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(users_);
}
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfo.Builder addUsersBuilder() {
return getUsersFieldBuilder().addBuilder(
org.yamcs.protobuf.UserInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public org.yamcs.protobuf.UserInfo.Builder addUsersBuilder(
int index) {
return getUsersFieldBuilder().addBuilder(
index, org.yamcs.protobuf.UserInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.iam.UserInfo users = 3;
*/
public java.util.List
getUsersBuilderList() {
return getUsersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.UserInfo, org.yamcs.protobuf.UserInfo.Builder, org.yamcs.protobuf.UserInfoOrBuilder>(
users_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
users_ = null;
}
return usersBuilder_;
}
private java.util.List serviceAccounts_ =
java.util.Collections.emptyList();
private void ensureServiceAccountsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
serviceAccounts_ = new java.util.ArrayList(serviceAccounts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ServiceAccountInfo, org.yamcs.protobuf.ServiceAccountInfo.Builder, org.yamcs.protobuf.ServiceAccountInfoOrBuilder> serviceAccountsBuilder_;
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public java.util.List getServiceAccountsList() {
if (serviceAccountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(serviceAccounts_);
} else {
return serviceAccountsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public int getServiceAccountsCount() {
if (serviceAccountsBuilder_ == null) {
return serviceAccounts_.size();
} else {
return serviceAccountsBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfo getServiceAccounts(int index) {
if (serviceAccountsBuilder_ == null) {
return serviceAccounts_.get(index);
} else {
return serviceAccountsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder setServiceAccounts(
int index, org.yamcs.protobuf.ServiceAccountInfo value) {
if (serviceAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAccountsIsMutable();
serviceAccounts_.set(index, value);
onChanged();
} else {
serviceAccountsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder setServiceAccounts(
int index, org.yamcs.protobuf.ServiceAccountInfo.Builder builderForValue) {
if (serviceAccountsBuilder_ == null) {
ensureServiceAccountsIsMutable();
serviceAccounts_.set(index, builderForValue.build());
onChanged();
} else {
serviceAccountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder addServiceAccounts(org.yamcs.protobuf.ServiceAccountInfo value) {
if (serviceAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAccountsIsMutable();
serviceAccounts_.add(value);
onChanged();
} else {
serviceAccountsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder addServiceAccounts(
int index, org.yamcs.protobuf.ServiceAccountInfo value) {
if (serviceAccountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceAccountsIsMutable();
serviceAccounts_.add(index, value);
onChanged();
} else {
serviceAccountsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder addServiceAccounts(
org.yamcs.protobuf.ServiceAccountInfo.Builder builderForValue) {
if (serviceAccountsBuilder_ == null) {
ensureServiceAccountsIsMutable();
serviceAccounts_.add(builderForValue.build());
onChanged();
} else {
serviceAccountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder addServiceAccounts(
int index, org.yamcs.protobuf.ServiceAccountInfo.Builder builderForValue) {
if (serviceAccountsBuilder_ == null) {
ensureServiceAccountsIsMutable();
serviceAccounts_.add(index, builderForValue.build());
onChanged();
} else {
serviceAccountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder addAllServiceAccounts(
java.lang.Iterable extends org.yamcs.protobuf.ServiceAccountInfo> values) {
if (serviceAccountsBuilder_ == null) {
ensureServiceAccountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serviceAccounts_);
onChanged();
} else {
serviceAccountsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder clearServiceAccounts() {
if (serviceAccountsBuilder_ == null) {
serviceAccounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
serviceAccountsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public Builder removeServiceAccounts(int index) {
if (serviceAccountsBuilder_ == null) {
ensureServiceAccountsIsMutable();
serviceAccounts_.remove(index);
onChanged();
} else {
serviceAccountsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfo.Builder getServiceAccountsBuilder(
int index) {
return getServiceAccountsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfoOrBuilder getServiceAccountsOrBuilder(
int index) {
if (serviceAccountsBuilder_ == null) {
return serviceAccounts_.get(index); } else {
return serviceAccountsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public java.util.List extends org.yamcs.protobuf.ServiceAccountInfoOrBuilder>
getServiceAccountsOrBuilderList() {
if (serviceAccountsBuilder_ != null) {
return serviceAccountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serviceAccounts_);
}
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfo.Builder addServiceAccountsBuilder() {
return getServiceAccountsFieldBuilder().addBuilder(
org.yamcs.protobuf.ServiceAccountInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public org.yamcs.protobuf.ServiceAccountInfo.Builder addServiceAccountsBuilder(
int index) {
return getServiceAccountsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.ServiceAccountInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.iam.ServiceAccountInfo serviceAccounts = 4;
*/
public java.util.List
getServiceAccountsBuilderList() {
return getServiceAccountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ServiceAccountInfo, org.yamcs.protobuf.ServiceAccountInfo.Builder, org.yamcs.protobuf.ServiceAccountInfoOrBuilder>
getServiceAccountsFieldBuilder() {
if (serviceAccountsBuilder_ == null) {
serviceAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ServiceAccountInfo, org.yamcs.protobuf.ServiceAccountInfo.Builder, org.yamcs.protobuf.ServiceAccountInfoOrBuilder>(
serviceAccounts_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
serviceAccounts_ = null;
}
return serviceAccountsBuilder_;
}
@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.GroupInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.iam.GroupInfo)
private static final org.yamcs.protobuf.GroupInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.GroupInfo();
}
public static org.yamcs.protobuf.GroupInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupInfo(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.GroupInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}