Package com.google.storage.v2
Class BucketAccessControl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
com.google.storage.v2.BucketAccessControl.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,BucketAccessControlOrBuilder,Cloneable
- Enclosing class:
- BucketAccessControl
public static final class BucketAccessControl.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
implements BucketAccessControlOrBuilder
An access-control entry.Protobuf type
google.storage.v2.BucketAccessControl-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The domain associated with the entity, if any.The email address associated with the entity, if any.The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`Output only.The ID for the entity, if any.The etag of the BucketAccessControl.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()The ID of the access-control entry.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The project team associated with the entity, if any.The access permission for the entity.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe domain associated with the entity, if any.com.google.protobuf.ByteStringThe domain associated with the entity, if any.getEmail()The email address associated with the entity, if any.com.google.protobuf.ByteStringThe email address associated with the entity, if any.The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.ByteStringThe entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`The ID for the entity, if any.com.google.protobuf.ByteStringThe ID for the entity, if any.getEtag()The etag of the BucketAccessControl.com.google.protobuf.ByteStringThe etag of the BucketAccessControl.getId()The ID of the access-control entry.com.google.protobuf.ByteStringThe ID of the access-control entry.The project team associated with the entity, if any.The project team associated with the entity, if any.The project team associated with the entity, if any.getRole()The access permission for the entity.com.google.protobuf.ByteStringThe access permission for the entity.booleanThe project team associated with the entity, if any.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(BucketAccessControl other) mergeProjectTeam(ProjectTeam value) The project team associated with the entity, if any.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The domain associated with the entity, if any.setDomainBytes(com.google.protobuf.ByteString value) The domain associated with the entity, if any.The email address associated with the entity, if any.setEmailBytes(com.google.protobuf.ByteString value) The email address associated with the entity, if any.The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`setEntityAlt(String value) Output only.setEntityAltBytes(com.google.protobuf.ByteString value) Output only.setEntityBytes(com.google.protobuf.ByteString value) The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`setEntityId(String value) The ID for the entity, if any.setEntityIdBytes(com.google.protobuf.ByteString value) The ID for the entity, if any.The etag of the BucketAccessControl.setEtagBytes(com.google.protobuf.ByteString value) The etag of the BucketAccessControl.The ID of the access-control entry.setIdBytes(com.google.protobuf.ByteString value) The ID of the access-control entry.setProjectTeam(ProjectTeam value) The project team associated with the entity, if any.setProjectTeam(ProjectTeam.Builder builderForValue) The project team associated with the entity, if any.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The access permission for the entity.setRoleBytes(com.google.protobuf.ByteString value) The access permission for the entity.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.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.GeneratedMessageV3.Builder<BucketAccessControl.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
setField
public BucketAccessControl.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
clearField
public BucketAccessControl.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
clearOneof
public BucketAccessControl.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
setRepeatedField
public BucketAccessControl.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
addRepeatedField
public BucketAccessControl.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BucketAccessControl.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
mergeFrom
public BucketAccessControl.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<BucketAccessControl.Builder>- Throws:
IOException
-
getRole
The access permission for the entity.
string role = 1;- Specified by:
getRolein interfaceBucketAccessControlOrBuilder- Returns:
- The role.
-
getRoleBytes
public com.google.protobuf.ByteString getRoleBytes()The access permission for the entity.
string role = 1;- Specified by:
getRoleBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for role.
-
setRole
The access permission for the entity.
string role = 1;- Parameters:
value- The role to set.- Returns:
- This builder for chaining.
-
clearRole
The access permission for the entity.
string role = 1;- Returns:
- This builder for chaining.
-
setRoleBytes
The access permission for the entity.
string role = 1;- Parameters:
value- The bytes for role to set.- Returns:
- This builder for chaining.
-
getId
The ID of the access-control entry.
string id = 2;- Specified by:
getIdin interfaceBucketAccessControlOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the access-control entry.
string id = 2;- Specified by:
getIdBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for id.
-
setId
The ID of the access-control entry.
string id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The ID of the access-control entry.
string id = 2;- Returns:
- This builder for chaining.
-
setIdBytes
The ID of the access-control entry.
string id = 2;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getEntity
The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`. * The group `example@googlegroups.com` would be `group-example@googlegroups.com` * All members of the Google Apps for Business domain `example.com` would be `domain-example.com` For project entities, `project-{team}-{projectnumber}` format will be returned on response.string entity = 3;- Specified by:
getEntityin interfaceBucketAccessControlOrBuilder- Returns:
- The entity.
-
getEntityBytes
public com.google.protobuf.ByteString getEntityBytes()The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`. * The group `example@googlegroups.com` would be `group-example@googlegroups.com` * All members of the Google Apps for Business domain `example.com` would be `domain-example.com` For project entities, `project-{team}-{projectnumber}` format will be returned on response.string entity = 3;- Specified by:
getEntityBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entity.
-
setEntity
The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`. * The group `example@googlegroups.com` would be `group-example@googlegroups.com` * All members of the Google Apps for Business domain `example.com` would be `domain-example.com` For project entities, `project-{team}-{projectnumber}` format will be returned on response.string entity = 3;- Parameters:
value- The entity to set.- Returns:
- This builder for chaining.
-
clearEntity
The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`. * The group `example@googlegroups.com` would be `group-example@googlegroups.com` * All members of the Google Apps for Business domain `example.com` would be `domain-example.com` For project entities, `project-{team}-{projectnumber}` format will be returned on response.string entity = 3;- Returns:
- This builder for chaining.
-
setEntityBytes
The entity holding the permission, in one of the following forms: * `user-{userid}` * `user-{email}` * `group-{groupid}` * `group-{email}` * `domain-{domain}` * `project-{team}-{projectnumber}` * `project-{team}-{projectid}` * `allUsers` * `allAuthenticatedUsers` Examples: * The user `liz@example.com` would be `user-liz@example.com`. * The group `example@googlegroups.com` would be `group-example@googlegroups.com` * All members of the Google Apps for Business domain `example.com` would be `domain-example.com` For project entities, `project-{team}-{projectnumber}` format will be returned on response.string entity = 3;- Parameters:
value- The bytes for entity to set.- Returns:
- This builder for chaining.
-
getEntityAlt
Output only. The alternative entity format, if exists. For project entities, `project-{team}-{projectid}` format will be returned on response.string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEntityAltin interfaceBucketAccessControlOrBuilder- Returns:
- The entityAlt.
-
getEntityAltBytes
public com.google.protobuf.ByteString getEntityAltBytes()Output only. The alternative entity format, if exists. For project entities, `project-{team}-{projectid}` format will be returned on response.string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEntityAltBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entityAlt.
-
setEntityAlt
Output only. The alternative entity format, if exists. For project entities, `project-{team}-{projectid}` format will be returned on response.string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The entityAlt to set.- Returns:
- This builder for chaining.
-
clearEntityAlt
Output only. The alternative entity format, if exists. For project entities, `project-{team}-{projectid}` format will be returned on response.string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEntityAltBytes
Output only. The alternative entity format, if exists. For project entities, `project-{team}-{projectid}` format will be returned on response.string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for entityAlt to set.- Returns:
- This builder for chaining.
-
getEntityId
The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdin interfaceBucketAccessControlOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()The ID for the entity, if any.
string entity_id = 4;- Specified by:
getEntityIdBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for entityId.
-
setEntityId
The ID for the entity, if any.
string entity_id = 4;- Parameters:
value- The entityId to set.- Returns:
- This builder for chaining.
-
clearEntityId
The ID for the entity, if any.
string entity_id = 4;- Returns:
- This builder for chaining.
-
setEntityIdBytes
The ID for the entity, if any.
string entity_id = 4;- Parameters:
value- The bytes for entityId to set.- Returns:
- This builder for chaining.
-
getEtag
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;- Specified by:
getEtagin interfaceBucketAccessControlOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;- Specified by:
getEtagBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for etag.
-
setEtag
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;- Returns:
- This builder for chaining.
-
setEtagBytes
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket's BucketAccessControl.
string etag = 8;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getEmail
The email address associated with the entity, if any.
string email = 5;- Specified by:
getEmailin interfaceBucketAccessControlOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()The email address associated with the entity, if any.
string email = 5;- Specified by:
getEmailBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for email.
-
setEmail
The email address associated with the entity, if any.
string email = 5;- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
The email address associated with the entity, if any.
string email = 5;- Returns:
- This builder for chaining.
-
setEmailBytes
The email address associated with the entity, if any.
string email = 5;- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getDomain
The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainin interfaceBucketAccessControlOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()The domain associated with the entity, if any.
string domain = 6;- Specified by:
getDomainBytesin interfaceBucketAccessControlOrBuilder- Returns:
- The bytes for domain.
-
setDomain
The domain associated with the entity, if any.
string domain = 6;- Parameters:
value- The domain to set.- Returns:
- This builder for chaining.
-
clearDomain
The domain associated with the entity, if any.
string domain = 6;- Returns:
- This builder for chaining.
-
setDomainBytes
The domain associated with the entity, if any.
string domain = 6;- Parameters:
value- The bytes for domain to set.- Returns:
- This builder for chaining.
-
hasProjectTeam
public boolean hasProjectTeam()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
hasProjectTeamin interfaceBucketAccessControlOrBuilder- Returns:
- Whether the projectTeam field is set.
-
getProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
getProjectTeamin interfaceBucketAccessControlOrBuilder- Returns:
- The projectTeam.
-
setProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7; -
setProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7; -
mergeProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7; -
clearProjectTeam
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7; -
getProjectTeamBuilder
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7; -
getProjectTeamOrBuilder
The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;- Specified by:
getProjectTeamOrBuilderin interfaceBucketAccessControlOrBuilder
-
setUnknownFields
public final BucketAccessControl.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-
mergeUnknownFields
public final BucketAccessControl.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BucketAccessControl.Builder>
-