Class AccessBinding (0.51.0)

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

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
TypeDescription
int

USER_FIELD_NUMBER

public static final int USER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AccessBinding getDefaultInstance()
Returns
TypeDescription
AccessBinding

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AccessBinding.Builder newBuilder()
Returns
TypeDescription
AccessBinding.Builder

newBuilder(AccessBinding prototype)

public static AccessBinding.Builder newBuilder(AccessBinding prototype)
Parameter
NameDescription
prototypeAccessBinding
Returns
TypeDescription
AccessBinding.Builder

parseDelimitedFrom(InputStream input)

public static AccessBinding parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AccessBinding parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AccessBinding parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AccessBinding parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AccessBinding parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AccessBinding parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AccessBinding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AccessBinding> parser()
Returns
TypeDescription
Parser<AccessBinding>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAccessTargetCase()

public AccessBinding.AccessTargetCase getAccessTargetCase()
Returns
TypeDescription
AccessBinding.AccessTargetCase

getDefaultInstanceForType()

public AccessBinding getDefaultInstanceForType()
Returns
TypeDescription
AccessBinding

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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<AccessBinding> getParserForType()
Returns
TypeDescription
Parser<AccessBinding>
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the roles.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUser()

public String getUser()

If set, the email address of the user to set roles for. Format: "someuser@gmail.com"

string user = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the user field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AccessBinding.Builder newBuilderForType()
Returns
TypeDescription
AccessBinding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AccessBinding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AccessBinding.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AccessBinding.Builder toBuilder()
Returns
TypeDescription
AccessBinding.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException