Send feedback
Class AccessBinding (0.30.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.30.0 keyboard_arrow_down
public final class AccessBinding extends GeneratedMessageV3 implements AccessBindingOrBuilder
A binding of a user to a set of roles.
Protobuf type google.analytics.admin.v1alpha.AccessBinding
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value Type Description int
ROLES_FIELD_NUMBER
public static final int ROLES_FIELD_NUMBER
Field Value Type Description int
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static AccessBinding getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AccessBinding . Builder newBuilder ()
newBuilder(AccessBinding prototype)
public static AccessBinding . Builder newBuilder ( AccessBinding prototype )
public static AccessBinding parseDelimitedFrom ( InputStream input )
public static AccessBinding parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AccessBinding parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AccessBinding parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AccessBinding parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AccessBinding parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AccessBinding parseFrom ( CodedInputStream input )
public static AccessBinding parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AccessBinding parseFrom ( InputStream input )
public static AccessBinding parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AccessBinding parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AccessBinding parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AccessBinding> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getAccessTargetCase()
public AccessBinding . AccessTargetCase getAccessTargetCase ()
getDefaultInstanceForType()
public AccessBinding getDefaultInstanceForType ()
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.
getParserForType()
public Parser<AccessBinding> getParserForType ()
Overrides
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;
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
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()
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.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AccessBinding . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AccessBinding . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public AccessBinding . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This webpage provides documentation for the `AccessBinding` class within the Google Analytics Admin API's Java library, specifically for version 0.30.0."],["The `AccessBinding` class represents the binding of a user to a set of roles, serving as a key component in managing access within Google Analytics."],["The page offers links to documentation for multiple versions of the API, ranging from version 0.14.0 to the latest 0.70.0, allowing users to view the documentation that is relevant to their version of the library."],["The provided information includes details on inherited members and static methods for the `AccessBinding` class, such as `equals`, `hashCode`, `getDefaultInstance`, and various `parseFrom` methods."],["The documentation also provides the fields `NAME_FIELD_NUMBER`, `ROLES_FIELD_NUMBER`, and `USER_FIELD_NUMBER`, to the user along with a description of what each are used for."]]],[]]