public static final class AdminAccessBinding.Builder extends GeneratedMessage.Builder<AdminAccessBinding.Builder> implements AdminAccessBindingOrBuilderA resource message representing a binding to a set of roles.
Protobuf type google.marketingplatform.admin.v1alpha.AdminAccessBinding
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdminAccessBinding.BuilderImplements
AdminAccessBindingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllOrganizationRoles(Iterable<? extends OrganizationRole> values)
public AdminAccessBinding.Builder addAllOrganizationRoles(Iterable<? extends OrganizationRole> values)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.marketingplatform.admin.v1alpha.OrganizationRole>The organizationRoles to add. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
addAllOrganizationRolesValue(Iterable<Integer> values)
public AdminAccessBinding.Builder addAllOrganizationRolesValue(Iterable<Integer> values)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for organizationRoles to add. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
addOrganizationRoles(OrganizationRole value)
public AdminAccessBinding.Builder addOrganizationRoles(OrganizationRole value)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
OrganizationRoleThe organizationRoles to add. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
addOrganizationRolesValue(int value)
public AdminAccessBinding.Builder addOrganizationRolesValue(int value)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for organizationRoles to add. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
build()
public AdminAccessBinding build()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding |
|
buildPartial()
public AdminAccessBinding buildPartial()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding |
|
clear()
public AdminAccessBinding.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
|
clearAccessTarget()
public AdminAccessBinding.Builder clearAccessTarget()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
|
clearName()
public AdminAccessBinding.Builder clearName()Identifier. The resource name of this AdminAccessBinding.
Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: "organizations/123abc/adminAccessBindings/456def"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
clearOrganizationRoles()
public AdminAccessBinding.Builder clearOrganizationRoles()Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
clearUserEmail()
public AdminAccessBinding.Builder clearUserEmail()Email address of the user.
string user_email = 2;
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
clearUserGroup()
public AdminAccessBinding.Builder clearUserGroup()Resource name of the user group.
string user_group = 3;
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
getAccessTargetCase()
public AdminAccessBinding.AccessTargetCase getAccessTargetCase()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.AccessTargetCase |
|
getDefaultInstanceForType()
public AdminAccessBinding getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Identifier. The resource name of this AdminAccessBinding.
Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: "organizations/123abc/adminAccessBindings/456def"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The resource name of this AdminAccessBinding.
Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: "organizations/123abc/adminAccessBindings/456def"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getOrganizationRoles(int index)
public OrganizationRole getOrganizationRoles(int index)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
OrganizationRole |
The organizationRoles at the given index. |
getOrganizationRolesCount()
public int getOrganizationRolesCount()Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of organizationRoles. |
getOrganizationRolesList()
public List<OrganizationRole> getOrganizationRolesList()Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<OrganizationRole> |
A list containing the organizationRoles. |
getOrganizationRolesValue(int index)
public int getOrganizationRolesValue(int index)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of organizationRoles at the given index. |
getOrganizationRolesValueList()
public List<Integer> getOrganizationRolesValueList()Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for organizationRoles. |
getUserEmail()
public String getUserEmail()Email address of the user.
string user_email = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The userEmail. |
getUserEmailBytes()
public ByteString getUserEmailBytes()Email address of the user.
string user_email = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for userEmail. |
getUserGroup()
public String getUserGroup()Resource name of the user group.
string user_group = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The userGroup. |
getUserGroupBytes()
public ByteString getUserGroupBytes()Resource name of the user group.
string user_group = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for userGroup. |
hasUserEmail()
public boolean hasUserEmail()Email address of the user.
string user_email = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the userEmail field is set. |
hasUserGroup()
public boolean hasUserGroup()Resource name of the user group.
string user_group = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the userGroup field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdminAccessBinding other)
public AdminAccessBinding.Builder mergeFrom(AdminAccessBinding other)| Parameter | |
|---|---|
| Name | Description |
other |
AdminAccessBinding |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdminAccessBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdminAccessBinding.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
|
setName(String value)
public AdminAccessBinding.Builder setName(String value)Identifier. The resource name of this AdminAccessBinding.
Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: "organizations/123abc/adminAccessBindings/456def"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AdminAccessBinding.Builder setNameBytes(ByteString value)Identifier. The resource name of this AdminAccessBinding.
Format: organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: "organizations/123abc/adminAccessBindings/456def"
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setOrganizationRoles(int index, OrganizationRole value)
public AdminAccessBinding.Builder setOrganizationRoles(int index, OrganizationRole value)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
OrganizationRoleThe organizationRoles to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setOrganizationRolesValue(int index, int value)
public AdminAccessBinding.Builder setOrganizationRolesValue(int index, int value)Optional. A list of roles granted to the parent organization.
USER_ADMIN_ROLE and BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned.
No roles will be assigned if no roles are specified.
repeated .google.marketingplatform.admin.v1alpha.OrganizationRole organization_roles = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for organizationRoles to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setUserEmail(String value)
public AdminAccessBinding.Builder setUserEmail(String value)Email address of the user.
string user_email = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe userEmail to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setUserEmailBytes(ByteString value)
public AdminAccessBinding.Builder setUserEmailBytes(ByteString value)Email address of the user.
string user_email = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for userEmail to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setUserGroup(String value)
public AdminAccessBinding.Builder setUserGroup(String value)Resource name of the user group.
string user_group = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe userGroup to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |
setUserGroupBytes(ByteString value)
public AdminAccessBinding.Builder setUserGroupBytes(ByteString value)Resource name of the user group.
string user_group = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for userGroup to set. |
| Returns | |
|---|---|
| Type | Description |
AdminAccessBinding.Builder |
This builder for chaining. |