Package com.google.cloud.oslogin.common
Class OsLoginProto.PosixAccount.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
com.google.cloud.oslogin.common.OsLoginProto.PosixAccount.Builder
- All Implemented Interfaces:
OsLoginProto.PosixAccountOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OsLoginProto.PosixAccount
public static final class OsLoginProto.PosixAccount.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
implements OsLoginProto.PosixAccountOrBuilder
The POSIX account information associated with a Google account.Protobuf type
google.cloud.oslogin.common.PosixAccount-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.The GECOS (user information) entry for this account.clearGid()The default group ID.The path to the home directory for this account.Output only.The operating system type where this account applies.Only one POSIX account can be marked as primary.The path to the logic shell for this account.System identifier for which account the username or uid applies to.clearUid()The user ID.The username of the POSIX account.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGecos()The GECOS (user information) entry for this account.com.google.protobuf.ByteStringThe GECOS (user information) entry for this account.longgetGid()The default group ID.The path to the home directory for this account.com.google.protobuf.ByteStringThe path to the home directory for this account.getName()Output only.com.google.protobuf.ByteStringOutput only.The operating system type where this account applies.intThe operating system type where this account applies.booleanOnly one POSIX account can be marked as primary.getShell()The path to the logic shell for this account.com.google.protobuf.ByteStringThe path to the logic shell for this account.System identifier for which account the username or uid applies to.com.google.protobuf.ByteStringSystem identifier for which account the username or uid applies to.longgetUid()The user ID.The username of the POSIX account.com.google.protobuf.ByteStringThe username of the POSIX account.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAccountId(String value) Output only.setAccountIdBytes(com.google.protobuf.ByteString value) Output only.The GECOS (user information) entry for this account.setGecosBytes(com.google.protobuf.ByteString value) The GECOS (user information) entry for this account.setGid(long value) The default group ID.setHomeDirectory(String value) The path to the home directory for this account.setHomeDirectoryBytes(com.google.protobuf.ByteString value) The path to the home directory for this account.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.The operating system type where this account applies.setOperatingSystemTypeValue(int value) The operating system type where this account applies.setPrimary(boolean value) Only one POSIX account can be marked as primary.The path to the logic shell for this account.setShellBytes(com.google.protobuf.ByteString value) The path to the logic shell for this account.setSystemId(String value) System identifier for which account the username or uid applies to.setSystemIdBytes(com.google.protobuf.ByteString value) System identifier for which account the username or uid applies to.setUid(long value) The user ID.setUsername(String value) The username of the POSIX account.setUsernameBytes(com.google.protobuf.ByteString value) The username of the POSIX account.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OsLoginProto.PosixAccount.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OsLoginProto.PosixAccount.Builder>
-
mergeFrom
public OsLoginProto.PosixAccount.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OsLoginProto.PosixAccount.Builder>- Throws:
IOException
-
getPrimary
public boolean getPrimary()Only one POSIX account can be marked as primary.
bool primary = 1;- Specified by:
getPrimaryin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The primary.
-
setPrimary
Only one POSIX account can be marked as primary.
bool primary = 1;- Parameters:
value- The primary to set.- Returns:
- This builder for chaining.
-
clearPrimary
Only one POSIX account can be marked as primary.
bool primary = 1;- Returns:
- This builder for chaining.
-
getUsername
The username of the POSIX account.
string username = 2;- Specified by:
getUsernamein interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()The username of the POSIX account.
string username = 2;- Specified by:
getUsernameBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for username.
-
setUsername
The username of the POSIX account.
string username = 2;- Parameters:
value- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
The username of the POSIX account.
string username = 2;- Returns:
- This builder for chaining.
-
setUsernameBytes
The username of the POSIX account.
string username = 2;- Parameters:
value- The bytes for username to set.- Returns:
- This builder for chaining.
-
getUid
public long getUid()The user ID.
int64 uid = 3;- Specified by:
getUidin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The uid.
-
setUid
The user ID.
int64 uid = 3;- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
The user ID.
int64 uid = 3;- Returns:
- This builder for chaining.
-
getGid
public long getGid()The default group ID.
int64 gid = 4;- Specified by:
getGidin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The gid.
-
setGid
The default group ID.
int64 gid = 4;- Parameters:
value- The gid to set.- Returns:
- This builder for chaining.
-
clearGid
The default group ID.
int64 gid = 4;- Returns:
- This builder for chaining.
-
getHomeDirectory
The path to the home directory for this account.
string home_directory = 5;- Specified by:
getHomeDirectoryin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The homeDirectory.
-
getHomeDirectoryBytes
public com.google.protobuf.ByteString getHomeDirectoryBytes()The path to the home directory for this account.
string home_directory = 5;- Specified by:
getHomeDirectoryBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for homeDirectory.
-
setHomeDirectory
The path to the home directory for this account.
string home_directory = 5;- Parameters:
value- The homeDirectory to set.- Returns:
- This builder for chaining.
-
clearHomeDirectory
The path to the home directory for this account.
string home_directory = 5;- Returns:
- This builder for chaining.
-
setHomeDirectoryBytes
public OsLoginProto.PosixAccount.Builder setHomeDirectoryBytes(com.google.protobuf.ByteString value) The path to the home directory for this account.
string home_directory = 5;- Parameters:
value- The bytes for homeDirectory to set.- Returns:
- This builder for chaining.
-
getShell
The path to the logic shell for this account.
string shell = 6;- Specified by:
getShellin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The shell.
-
getShellBytes
public com.google.protobuf.ByteString getShellBytes()The path to the logic shell for this account.
string shell = 6;- Specified by:
getShellBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for shell.
-
setShell
The path to the logic shell for this account.
string shell = 6;- Parameters:
value- The shell to set.- Returns:
- This builder for chaining.
-
clearShell
The path to the logic shell for this account.
string shell = 6;- Returns:
- This builder for chaining.
-
setShellBytes
The path to the logic shell for this account.
string shell = 6;- Parameters:
value- The bytes for shell to set.- Returns:
- This builder for chaining.
-
getGecos
The GECOS (user information) entry for this account.
string gecos = 7;- Specified by:
getGecosin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The gecos.
-
getGecosBytes
public com.google.protobuf.ByteString getGecosBytes()The GECOS (user information) entry for this account.
string gecos = 7;- Specified by:
getGecosBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for gecos.
-
setGecos
The GECOS (user information) entry for this account.
string gecos = 7;- Parameters:
value- The gecos to set.- Returns:
- This builder for chaining.
-
clearGecos
The GECOS (user information) entry for this account.
string gecos = 7;- Returns:
- This builder for chaining.
-
setGecosBytes
The GECOS (user information) entry for this account.
string gecos = 7;- Parameters:
value- The bytes for gecos to set.- Returns:
- This builder for chaining.
-
getSystemId
System identifier for which account the username or uid applies to. By default, the empty value is used.
string system_id = 8;- Specified by:
getSystemIdin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The systemId.
-
getSystemIdBytes
public com.google.protobuf.ByteString getSystemIdBytes()System identifier for which account the username or uid applies to. By default, the empty value is used.
string system_id = 8;- Specified by:
getSystemIdBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for systemId.
-
setSystemId
System identifier for which account the username or uid applies to. By default, the empty value is used.
string system_id = 8;- Parameters:
value- The systemId to set.- Returns:
- This builder for chaining.
-
clearSystemId
System identifier for which account the username or uid applies to. By default, the empty value is used.
string system_id = 8;- Returns:
- This builder for chaining.
-
setSystemIdBytes
System identifier for which account the username or uid applies to. By default, the empty value is used.
string system_id = 8;- Parameters:
value- The bytes for systemId to set.- Returns:
- This builder for chaining.
-
getAccountId
Output only. A POSIX account identifier.
string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAccountIdin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Output only. A POSIX account identifier.
string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAccountIdBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Output only. A POSIX account identifier.
string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Output only. A POSIX account identifier.
string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Output only. A POSIX account identifier.
string account_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getOperatingSystemTypeValue
public int getOperatingSystemTypeValue()The operating system type where this account applies.
.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;- Specified by:
getOperatingSystemTypeValuein interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The enum numeric value on the wire for operatingSystemType.
-
setOperatingSystemTypeValue
The operating system type where this account applies.
.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;- Parameters:
value- The enum numeric value on the wire for operatingSystemType to set.- Returns:
- This builder for chaining.
-
getOperatingSystemType
The operating system type where this account applies.
.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;- Specified by:
getOperatingSystemTypein interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The operatingSystemType.
-
setOperatingSystemType
public OsLoginProto.PosixAccount.Builder setOperatingSystemType(OsLoginProto.OperatingSystemType value) The operating system type where this account applies.
.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;- Parameters:
value- The operatingSystemType to set.- Returns:
- This builder for chaining.
-
clearOperatingSystemType
The operating system type where this account applies.
.google.cloud.oslogin.common.OperatingSystemType operating_system_type = 10;- Returns:
- This builder for chaining.
-
getName
Output only. The canonical resource name.
string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The canonical resource name.
string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceOsLoginProto.PosixAccountOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The canonical resource name.
string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The canonical resource name.
string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The canonical resource name.
string name = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-