- 0.62.0 (latest)
- 0.61.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
public static final class AccessBinding.Builder extends GeneratedMessageV3.Builder<AccessBinding.Builder> implements AccessBindingOrBuilder
A binding of a user to a set of roles.
Protobuf type google.analytics.admin.v1alpha.AccessBinding
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AccessBinding.BuilderImplements
AccessBindingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllRoles(Iterable<String> values)
public AccessBinding.Builder addAllRoles(Iterable<String> values)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The roles to add. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AccessBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
addRoles(String value)
public AccessBinding.Builder addRoles(String value)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameter | |
---|---|
Name | Description |
value | String The roles to add. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
addRolesBytes(ByteString value)
public AccessBinding.Builder addRolesBytes(ByteString value)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the roles to add. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
build()
public AccessBinding build()
Returns | |
---|---|
Type | Description |
AccessBinding |
buildPartial()
public AccessBinding buildPartial()
Returns | |
---|---|
Type | Description |
AccessBinding |
clear()
public AccessBinding.Builder clear()
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
clearAccessTarget()
public AccessBinding.Builder clearAccessTarget()
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
clearField(Descriptors.FieldDescriptor field)
public AccessBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
clearName()
public AccessBinding.Builder clearName()
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AccessBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
clearRoles()
public AccessBinding.Builder clearRoles()
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
clearUser()
public AccessBinding.Builder clearUser()
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
clone()
public AccessBinding.Builder clone()
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
getAccessTargetCase()
public AccessBinding.AccessTargetCase getAccessTargetCase()
Returns | |
---|---|
Type | Description |
AccessBinding.AccessTargetCase |
getDefaultInstanceForType()
public AccessBinding getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AccessBinding |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getRoles(int index)
public String getRoles(int index)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The roles at the given index. |
getRolesBytes(int index)
public ByteString getRolesBytes(int index)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the roles at the given index. |
getRolesCount()
public int getRolesCount()
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Returns | |
---|---|
Type | Description |
int | The count of roles. |
getRolesList()
public ProtocolStringList getRolesList()
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the roles. |
getUser()
public String getUser()
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Returns | |
---|---|
Type | Description |
String | The user. |
getUserBytes()
public ByteString getUserBytes()
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for user. |
hasUser()
public boolean hasUser()
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the user field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AccessBinding other)
public AccessBinding.Builder mergeFrom(AccessBinding other)
Parameter | |
---|---|
Name | Description |
other | AccessBinding |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AccessBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AccessBinding.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AccessBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AccessBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
setName(String value)
public AccessBinding.Builder setName(String value)
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public AccessBinding.Builder setNameBytes(ByteString value)
Output only. Resource name of this binding.
Format: accounts/{account}/accessBindings/{access_binding} or properties/{property}/accessBindings/{access_binding}
Example: "accounts/100/accessBindings/200"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AccessBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
setRoles(int index, String value)
public AccessBinding.Builder setRoles(int index, String value)
A list of roles for to grant to the parent resource.
Valid values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-data
For users, if an empty list of roles is set, this AccessBinding will be deleted.
repeated string roles = 3;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The roles to set. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AccessBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder |
setUser(String value)
public AccessBinding.Builder setUser(String value)
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Parameter | |
---|---|
Name | Description |
value | String The user to set. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |
setUserBytes(ByteString value)
public AccessBinding.Builder setUserBytes(ByteString value)
If set, the email address of the user to set roles for. Format: "someuser@gmail.com"
string user = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for user to set. |
Returns | |
---|---|
Type | Description |
AccessBinding.Builder | This builder for chaining. |