public static final class Binding.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder> implements BindingOrBuilder
Associates `members` with a `role`.Protobuf type
google.iam.v1.Binding| Modifier and Type | Method and Description |
|---|---|
Binding.Builder |
addAllMembers(Iterable<String> values)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addMembers(String value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addMembersBytes(com.google.protobuf.ByteString value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Binding |
build() |
Binding |
buildPartial() |
Binding.Builder |
clear() |
Binding.Builder |
clearCondition()
The condition that is associated with this binding.
|
Binding.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Binding.Builder |
clearMembers()
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Binding.Builder |
clearRole()
Role that is assigned to `members`.
|
Binding.Builder |
clone() |
com.google.type.Expr |
getCondition()
The condition that is associated with this binding.
|
com.google.type.Expr.Builder |
getConditionBuilder()
The condition that is associated with this binding.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
The condition that is associated with this binding.
|
Binding |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMembers(int index)
Specifies the identities requesting access for a Cloud Platform resource.
|
com.google.protobuf.ByteString |
getMembersBytes(int index)
Specifies the identities requesting access for a Cloud Platform resource.
|
int |
getMembersCount()
Specifies the identities requesting access for a Cloud Platform resource.
|
com.google.protobuf.ProtocolStringList |
getMembersList()
Specifies the identities requesting access for a Cloud Platform resource.
|
String |
getRole()
Role that is assigned to `members`.
|
com.google.protobuf.ByteString |
getRoleBytes()
Role that is assigned to `members`.
|
boolean |
hasCondition()
The condition that is associated with this binding.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Binding.Builder |
mergeCondition(com.google.type.Expr value)
The condition that is associated with this binding.
|
Binding.Builder |
mergeFrom(Binding other) |
Binding.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Binding.Builder |
mergeFrom(com.google.protobuf.Message other) |
Binding.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Binding.Builder |
setCondition(com.google.type.Expr.Builder builderForValue)
The condition that is associated with this binding.
|
Binding.Builder |
setCondition(com.google.type.Expr value)
The condition that is associated with this binding.
|
Binding.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Binding.Builder |
setMembers(int index,
String value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Binding.Builder |
setRole(String value)
Role that is assigned to `members`.
|
Binding.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Role that is assigned to `members`.
|
Binding.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Binding build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Binding buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Binding.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Binding.Builder>public Binding.Builder mergeFrom(Binding other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Binding.Builder>IOExceptionpublic String getRole()
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;getRole in interface BindingOrBuilderpublic com.google.protobuf.ByteString getRoleBytes()
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;getRoleBytes in interface BindingOrBuilderpublic Binding.Builder setRole(String value)
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;value - The role to set.public Binding.Builder clearRole()
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;public Binding.Builder setRoleBytes(com.google.protobuf.ByteString value)
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;value - The bytes for role to set.public com.google.protobuf.ProtocolStringList getMembersList()
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;getMembersList in interface BindingOrBuilderpublic int getMembersCount()
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;getMembersCount in interface BindingOrBuilderpublic String getMembers(int index)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;getMembers in interface BindingOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMembersBytes(int index)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;getMembersBytes in interface BindingOrBuilderindex - The index of the value to return.public Binding.Builder setMembers(int index, String value)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;index - The index to set the value at.value - The members to set.public Binding.Builder addMembers(String value)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;value - The members to add.public Binding.Builder addAllMembers(Iterable<String> values)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;values - The members to add.public Binding.Builder clearMembers()
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;public Binding.Builder addMembersBytes(com.google.protobuf.ByteString value)
Specifies the identities requesting access for a Cloud Platform resource.
`members` can have the following values:
* `allUsers`: A special identifier that represents anyone who is
on the internet; with or without a Google account.
* `allAuthenticatedUsers`: A special identifier that represents anyone
who is authenticated with a Google account or a service account.
* `user:{emailid}`: An email address that represents a specific Google
account. For example, `alice@example.com` .
* `serviceAccount:{emailid}`: An email address that represents a service
account. For example, `my-other-app@appspot.gserviceaccount.com`.
* `group:{emailid}`: An email address that represents a Google group.
For example, `admins@example.com`.
* `domain:{domain}`: The G Suite domain (primary) that represents all the
users of that domain. For example, `google.com` or `example.com`.
repeated string members = 2;value - The bytes of the members to add.public boolean hasCondition()
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;hasCondition in interface BindingOrBuilderpublic com.google.type.Expr getCondition()
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;getCondition in interface BindingOrBuilderpublic Binding.Builder setCondition(com.google.type.Expr value)
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;public Binding.Builder setCondition(com.google.type.Expr.Builder builderForValue)
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;public Binding.Builder mergeCondition(com.google.type.Expr value)
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;public Binding.Builder clearCondition()
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;public com.google.type.Expr.Builder getConditionBuilder()
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;public com.google.type.ExprOrBuilder getConditionOrBuilder()
The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
.google.type.Expr condition = 3;getConditionOrBuilder in interface BindingOrBuilderpublic final Binding.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>public final Binding.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Binding.Builder>Copyright © 2021 Google LLC. All rights reserved.