Package com.google.cloud.oslogin.v1
Class ImportSshPublicKeyRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportSshPublicKeyRequest.Builder>
com.google.cloud.oslogin.v1.ImportSshPublicKeyRequest.Builder
- All Implemented Interfaces:
ImportSshPublicKeyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportSshPublicKeyRequest
public static final class ImportSshPublicKeyRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportSshPublicKeyRequest.Builder>
implements ImportSshPublicKeyRequestOrBuilder
A request message for importing an SSH public key.Protobuf type
google.cloud.oslogin.v1.ImportSshPublicKeyRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllRegions(Iterable<String> values) Optional.addRegions(String value) Optional.addRegionsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Required.The project ID of the Google Cloud Platform project.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.The project ID of the Google Cloud Platform project.com.google.protobuf.ByteStringThe project ID of the Google Cloud Platform project.getRegions(int index) Optional.com.google.protobuf.ByteStringgetRegionsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.Optional.Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setProjectId(String value) The project ID of the Google Cloud Platform project.setProjectIdBytes(com.google.protobuf.ByteString value) The project ID of the Google Cloud Platform project.setRegions(int index, String value) Optional.Optional.setSshPublicKey(OsLoginProto.SshPublicKey.Builder builderForValue) Optional.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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportSshPublicKeyRequest.Builder>
-
mergeFrom
public ImportSshPublicKeyRequest.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<ImportSshPublicKeyRequest.Builder>- Throws:
IOException
-
getParent
Required. The unique ID for the user in format `users/{user}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The unique ID for the user in format `users/{user}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The unique ID for the user in format `users/{user}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The unique ID for the user in format `users/{user}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The unique ID for the user in format `users/{user}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasSshPublicKey
public boolean hasSshPublicKey()Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSshPublicKeyin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- Whether the sshPublicKey field is set.
-
getSshPublicKey
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSshPublicKeyin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The sshPublicKey.
-
setSshPublicKey
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setSshPublicKey
public ImportSshPublicKeyRequest.Builder setSshPublicKey(OsLoginProto.SshPublicKey.Builder builderForValue) Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSshPublicKey
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearSshPublicKey
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getSshPublicKeyBuilder
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getSshPublicKeyOrBuilder
Optional. The SSH public key and expiration time.
.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSshPublicKeyOrBuilderin interfaceImportSshPublicKeyRequestOrBuilder
-
getProjectId
The project ID of the Google Cloud Platform project.
string project_id = 3;- Specified by:
getProjectIdin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The project ID of the Google Cloud Platform project.
string project_id = 3;- Specified by:
getProjectIdBytesin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
The project ID of the Google Cloud Platform project.
string project_id = 3;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The project ID of the Google Cloud Platform project.
string project_id = 3;- Returns:
- This builder for chaining.
-
setProjectIdBytes
The project ID of the Google Cloud Platform project.
string project_id = 3;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getRegionsList
public com.google.protobuf.ProtocolStringList getRegionsList()Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionsListin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- A list containing the regions.
-
getRegionsCount
public int getRegionsCount()Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionsCountin interfaceImportSshPublicKeyRequestOrBuilder- Returns:
- The count of regions.
-
getRegions
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionsin interfaceImportSshPublicKeyRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The regions at the given index.
-
getRegionsBytes
public com.google.protobuf.ByteString getRegionsBytes(int index) Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionsBytesin interfaceImportSshPublicKeyRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the regions at the given index.
-
setRegions
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The regions to set.- Returns:
- This builder for chaining.
-
addRegions
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The regions to add.- Returns:
- This builder for chaining.
-
addAllRegions
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The regions to add.- Returns:
- This builder for chaining.
-
clearRegions
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addRegionsBytes
Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
repeated string regions = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the regions to add.- Returns:
- This builder for chaining.
-