public final class GcpUserAccessBinding extends GeneratedMessageV3 implements GcpUserAccessBindingOrBuilder
Restricts access to Cloud Console and Google Cloud APIs for a set of users
using Context-Aware Access.
Protobuf type google.identity.accesscontextmanager.v1.GcpUserAccessBinding
Static Fields
ACCESS_LEVELS_FIELD_NUMBER
public static final int ACCESS_LEVELS_FIELD_NUMBER
Field Value
GROUP_KEY_FIELD_NUMBER
public static final int GROUP_KEY_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GcpUserAccessBinding getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GcpUserAccessBinding.Builder newBuilder()
Returns
newBuilder(GcpUserAccessBinding prototype)
public static GcpUserAccessBinding.Builder newBuilder(GcpUserAccessBinding prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static GcpUserAccessBinding parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GcpUserAccessBinding parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GcpUserAccessBinding parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static GcpUserAccessBinding parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static GcpUserAccessBinding parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GcpUserAccessBinding parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GcpUserAccessBinding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GcpUserAccessBinding> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAccessLevels(int index)
public String getAccessLevels(int index)
Required. Access level that a user must have to be granted access. Only one access
level is supported, not multiple. This repeated field must have exactly
one element.
Example: "accessPolicies/9522/accessLevels/device_trusted"
repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The accessLevels at the given index.
|
getAccessLevelsBytes(int index)
public ByteString getAccessLevelsBytes(int index)
Required. Access level that a user must have to be granted access. Only one access
level is supported, not multiple. This repeated field must have exactly
one element.
Example: "accessPolicies/9522/accessLevels/device_trusted"
repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the accessLevels at the given index.
|
getAccessLevelsCount()
public int getAccessLevelsCount()
Required. Access level that a user must have to be granted access. Only one access
level is supported, not multiple. This repeated field must have exactly
one element.
Example: "accessPolicies/9522/accessLevels/device_trusted"
repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
int | The count of accessLevels.
|
getAccessLevelsList()
public ProtocolStringList getAccessLevelsList()
Required. Access level that a user must have to be granted access. Only one access
level is supported, not multiple. This repeated field must have exactly
one element.
Example: "accessPolicies/9522/accessLevels/device_trusted"
repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getDefaultInstanceForType()
public GcpUserAccessBinding getDefaultInstanceForType()
Returns
getGroupKey()
public String getGroupKey()
Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
See "id" in the G Suite Directory API's Groups resource.
If a group's email address/alias is changed, this resource will continue
to point at the changed group. This field does not accept group email
addresses or aliases.
Example: "01d520gv4vjcrht"
string group_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
String | The groupKey.
|
getGroupKeyBytes()
public ByteString getGroupKeyBytes()
Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
See "id" in the G Suite Directory API's Groups resource.
If a group's email address/alias is changed, this resource will continue
to point at the changed group. This field does not accept group email
addresses or aliases.
Example: "01d520gv4vjcrht"
string group_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns
getName()
Immutable. Assigned by the server during creation. The last segment has an arbitrary
length and has only URI unreserved characters (as defined by
RFC 3986 Section 2.3).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Immutable. Assigned by the server during creation. The last segment has an arbitrary
length and has only URI unreserved characters (as defined by
RFC 3986 Section 2.3).
Should not be specified by the client during creation.
Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns
getParserForType()
public Parser<GcpUserAccessBinding> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GcpUserAccessBinding.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GcpUserAccessBinding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GcpUserAccessBinding.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions