public static final class Binding.Builder extends 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(java.lang.Iterable<java.lang.String> values)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addMembers(java.lang.String value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addMembersBytes(ByteString value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Binding |
build() |
Binding |
buildPartial() |
Binding.Builder |
clear() |
Binding.Builder |
clearCondition()
The condition that is associated with this binding.
|
Binding.Builder |
clearField(Descriptors.FieldDescriptor field) |
Binding.Builder |
clearMembers()
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Binding.Builder |
clearRole()
Role that is assigned to `members`.
|
Binding.Builder |
clone() |
Expr |
getCondition()
The condition that is associated with this binding.
|
Expr.Builder |
getConditionBuilder()
The condition that is associated with this binding.
|
ExprOrBuilder |
getConditionOrBuilder()
The condition that is associated with this binding.
|
Binding |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getMembers(int index)
Specifies the identities requesting access for a Cloud Platform resource.
|
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.
|
ProtocolStringList |
getMembersList()
Specifies the identities requesting access for a Cloud Platform resource.
|
java.lang.String |
getRole()
Role that is assigned to `members`.
|
ByteString |
getRoleBytes()
Role that is assigned to `members`.
|
boolean |
hasCondition()
The condition that is associated with this binding.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Binding.Builder |
mergeCondition(Expr value)
The condition that is associated with this binding.
|
Binding.Builder |
mergeFrom(Binding other) |
Binding.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Binding.Builder |
mergeFrom(Message other) |
Binding.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Binding.Builder |
setCondition(Expr.Builder builderForValue)
The condition that is associated with this binding.
|
Binding.Builder |
setCondition(Expr value)
The condition that is associated with this binding.
|
Binding.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Binding.Builder |
setMembers(int index,
java.lang.String value)
Specifies the identities requesting access for a Cloud Platform resource.
|
Binding.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Binding.Builder |
setRole(java.lang.String value)
Role that is assigned to `members`.
|
Binding.Builder |
setRoleBytes(ByteString value)
Role that is assigned to `members`.
|
Binding.Builder |
setUnknownFields(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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Binding.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Binding.Builder>public Binding getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Binding build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Binding buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Binding.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Binding.Builder>public Binding.Builder mergeFrom(Binding other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Binding.Builder>public Binding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Binding.Builder>java.io.IOExceptionpublic java.lang.String getRole()
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;getRole in interface BindingOrBuilderpublic 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(java.lang.String value)
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;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(ByteString value)
Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
string role = 1;public 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 java.lang.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 BindingOrBuilderpublic 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 BindingOrBuilderpublic Binding.Builder setMembers(int index, java.lang.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;public Binding.Builder addMembers(java.lang.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;public Binding.Builder addAllMembers(java.lang.Iterable<java.lang.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;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(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;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 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(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(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(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 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 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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Binding.Builder>public final Binding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Binding.Builder>