Class AccessBinding (0.70.0)

publicfinalclassAccessBindingextendsGeneratedMessageV3implementsAccessBindingOrBuilder

A binding of a user to a set of roles.

Protobuf type google.analytics.admin.v1alpha.AccessBinding

Static Fields

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
TypeDescription
int

ROLES_FIELD_NUMBER

publicstaticfinalintROLES_FIELD_NUMBER
Field Value
TypeDescription
int

USER_FIELD_NUMBER

publicstaticfinalintUSER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticAccessBindinggetDefaultInstance()
Returns
TypeDescription
AccessBinding

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticAccessBinding.BuildernewBuilder()
Returns
TypeDescription
AccessBinding.Builder

newBuilder(AccessBinding prototype)

publicstaticAccessBinding.BuildernewBuilder(AccessBindingprototype)
Parameter
NameDescription
prototypeAccessBinding
Returns
TypeDescription
AccessBinding.Builder

parseDelimitedFrom(InputStream input)

publicstaticAccessBindingparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticAccessBindingparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticAccessBindingparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticAccessBindingparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticAccessBindingparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticAccessBindingparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticAccessBindingparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessBinding
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<AccessBinding>parser()
Returns
TypeDescription
Parser<AccessBinding>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAccessTargetCase()

publicAccessBinding.AccessTargetCasegetAccessTargetCase()
Returns
TypeDescription
AccessBinding.AccessTargetCase

getDefaultInstanceForType()

publicAccessBindinggetDefaultInstanceForType()
Returns
TypeDescription
AccessBinding

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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()

publicParser<AccessBinding>getParserForType()
Returns
TypeDescription
Parser<AccessBinding>
Overrides

getRoles(int index)

publicStringgetRoles(intindex)

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)

publicByteStringgetRolesBytes(intindex)

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()

publicintgetRolesCount()

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()

publicProtocolStringListgetRolesList()

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()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

getUser()

publicStringgetUser()

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()

publicByteStringgetUserBytes()

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()

publicbooleanhasUser()

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()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicAccessBinding.BuildernewBuilderForType()
Returns
TypeDescription
AccessBinding.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAccessBinding.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AccessBinding.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicAccessBinding.BuildertoBuilder()
Returns
TypeDescription
AccessBinding.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException