public static final class BucketAccessControl.Builder extends GeneratedMessageV3.Builder<BucketAccessControl.Builder> implements BucketAccessControlOrBuilderAn access-control entry.
Protobuf type google.storage.v2.BucketAccessControl
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BucketAccessControl.BuilderImplements
BucketAccessControlOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BucketAccessControl.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| BucketAccessControl.Builder |
build()
public BucketAccessControl build()| Type | Description |
| BucketAccessControl |
buildPartial()
public BucketAccessControl buildPartial()| Type | Description |
| BucketAccessControl |
clear()
public BucketAccessControl.Builder clear()| Type | Description |
| BucketAccessControl.Builder |
clearDomain()
public BucketAccessControl.Builder clearDomain()The domain associated with the entity, if any.
string domain = 6;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clearEmail()
public BucketAccessControl.Builder clearEmail()The email address associated with the entity, if any.
string email = 5;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clearEntity()
public BucketAccessControl.Builder clearEntity()The entity holding the permission, in one of the following forms:
user-{userid}user-{email}group-{groupid}group-{email}domain-{domain}project-{team-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
string entity = 3;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clearEntityId()
public BucketAccessControl.Builder clearEntityId()The ID for the entity, if any.
string entity_id = 4;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BucketAccessControl.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| BucketAccessControl.Builder |
clearId()
public BucketAccessControl.Builder clearId()The ID of the access-control entry.
string id = 2;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public BucketAccessControl.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| BucketAccessControl.Builder |
clearProjectTeam()
public BucketAccessControl.Builder clearProjectTeam()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Type | Description |
| BucketAccessControl.Builder |
clearRole()
public BucketAccessControl.Builder clearRole()The access permission for the entity.
string role = 1;
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
clone()
public BucketAccessControl.Builder clone()| Type | Description |
| BucketAccessControl.Builder |
getDefaultInstanceForType()
public BucketAccessControl getDefaultInstanceForType()| Type | Description |
| BucketAccessControl |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getDomain()
public String getDomain()The domain associated with the entity, if any.
string domain = 6;
| Type | Description |
| String | The domain. |
getDomainBytes()
public ByteString getDomainBytes()The domain associated with the entity, if any.
string domain = 6;
| Type | Description |
| ByteString | The bytes for domain. |
getEmail()
public String getEmail()The email address associated with the entity, if any.
string email = 5;
| Type | Description |
| String | The email. |
getEmailBytes()
public ByteString getEmailBytes()The email address associated with the entity, if any.
string email = 5;
| Type | Description |
| ByteString | The bytes for email. |
getEntity()
public String getEntity()The entity holding the permission, in one of the following forms:
user-{userid}user-{email}group-{groupid}group-{email}domain-{domain}project-{team-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
string entity = 3;
| Type | Description |
| String | The entity. |
getEntityBytes()
public 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-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
string entity = 3;
| Type | Description |
| ByteString | The bytes for entity. |
getEntityId()
public String getEntityId()The ID for the entity, if any.
string entity_id = 4;
| Type | Description |
| String | The entityId. |
getEntityIdBytes()
public ByteString getEntityIdBytes()The ID for the entity, if any.
string entity_id = 4;
| Type | Description |
| ByteString | The bytes for entityId. |
getId()
public String getId()The ID of the access-control entry.
string id = 2;
| Type | Description |
| String | The id. |
getIdBytes()
public ByteString getIdBytes()The ID of the access-control entry.
string id = 2;
| Type | Description |
| ByteString | The bytes for id. |
getProjectTeam()
public ProjectTeam getProjectTeam()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Type | Description |
| ProjectTeam | The projectTeam. |
getProjectTeamBuilder()
public ProjectTeam.Builder getProjectTeamBuilder()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Type | Description |
| ProjectTeam.Builder |
getProjectTeamOrBuilder()
public ProjectTeamOrBuilder getProjectTeamOrBuilder()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Type | Description |
| ProjectTeamOrBuilder |
getRole()
public String getRole()The access permission for the entity.
string role = 1;
| Type | Description |
| String | The role. |
getRoleBytes()
public ByteString getRoleBytes()The access permission for the entity.
string role = 1;
| Type | Description |
| ByteString | The bytes for role. |
hasProjectTeam()
public boolean hasProjectTeam()The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Type | Description |
| boolean | Whether the projectTeam field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BucketAccessControl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| BucketAccessControl.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public BucketAccessControl.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| BucketAccessControl.Builder |
mergeFrom(BucketAccessControl other)
public BucketAccessControl.Builder mergeFrom(BucketAccessControl other)| Name | Description |
| other | BucketAccessControl |
| Type | Description |
| BucketAccessControl.Builder |
mergeProjectTeam(ProjectTeam value)
public BucketAccessControl.Builder mergeProjectTeam(ProjectTeam value)The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Name | Description |
| value | ProjectTeam |
| Type | Description |
| BucketAccessControl.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BucketAccessControl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| BucketAccessControl.Builder |
setDomain(String value)
public BucketAccessControl.Builder setDomain(String value)The domain associated with the entity, if any.
string domain = 6;
| Name | Description |
| value | StringThe domain to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setDomainBytes(ByteString value)
public BucketAccessControl.Builder setDomainBytes(ByteString value)The domain associated with the entity, if any.
string domain = 6;
| Name | Description |
| value | ByteStringThe bytes for domain to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEmail(String value)
public BucketAccessControl.Builder setEmail(String value)The email address associated with the entity, if any.
string email = 5;
| Name | Description |
| value | StringThe email to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEmailBytes(ByteString value)
public BucketAccessControl.Builder setEmailBytes(ByteString value)The email address associated with the entity, if any.
string email = 5;
| Name | Description |
| value | ByteStringThe bytes for email to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEntity(String value)
public BucketAccessControl.Builder setEntity(String value)The entity holding the permission, in one of the following forms:
user-{userid}user-{email}group-{groupid}group-{email}domain-{domain}project-{team-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
string entity = 3;
| Name | Description |
| value | StringThe entity to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEntityBytes(ByteString value)
public BucketAccessControl.Builder setEntityBytes(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-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
string entity = 3;
| Name | Description |
| value | ByteStringThe bytes for entity to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEntityId(String value)
public BucketAccessControl.Builder setEntityId(String value)The ID for the entity, if any.
string entity_id = 4;
| Name | Description |
| value | StringThe entityId to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setEntityIdBytes(ByteString value)
public BucketAccessControl.Builder setEntityIdBytes(ByteString value)The ID for the entity, if any.
string entity_id = 4;
| Name | Description |
| value | ByteStringThe bytes for entityId to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BucketAccessControl.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| BucketAccessControl.Builder |
setId(String value)
public BucketAccessControl.Builder setId(String value)The ID of the access-control entry.
string id = 2;
| Name | Description |
| value | StringThe id to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public BucketAccessControl.Builder setIdBytes(ByteString value)The ID of the access-control entry.
string id = 2;
| Name | Description |
| value | ByteStringThe bytes for id to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setProjectTeam(ProjectTeam value)
public BucketAccessControl.Builder setProjectTeam(ProjectTeam value)The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Name | Description |
| value | ProjectTeam |
| Type | Description |
| BucketAccessControl.Builder |
setProjectTeam(ProjectTeam.Builder builderForValue)
public BucketAccessControl.Builder setProjectTeam(ProjectTeam.Builder builderForValue)The project team associated with the entity, if any.
.google.storage.v2.ProjectTeam project_team = 7;
| Name | Description |
| builderForValue | ProjectTeam.Builder |
| Type | Description |
| BucketAccessControl.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BucketAccessControl.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| BucketAccessControl.Builder |
setRole(String value)
public BucketAccessControl.Builder setRole(String value)The access permission for the entity.
string role = 1;
| Name | Description |
| value | StringThe role to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setRoleBytes(ByteString value)
public BucketAccessControl.Builder setRoleBytes(ByteString value)The access permission for the entity.
string role = 1;
| Name | Description |
| value | ByteStringThe bytes for role to set. |
| Type | Description |
| BucketAccessControl.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final BucketAccessControl.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| BucketAccessControl.Builder |