Class RelatedAccountGroupMembership.Builder (3.2.0)

public static final class RelatedAccountGroupMembership.Builder extends GeneratedMessageV3.Builder<RelatedAccountGroupMembership.Builder> implements RelatedAccountGroupMembershipOrBuilder

A membership in a group of related accounts.

Protobuf type google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RelatedAccountGroupMembership.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

build()

public RelatedAccountGroupMembership build()
Returns
TypeDescription
RelatedAccountGroupMembership

buildPartial()

public RelatedAccountGroupMembership buildPartial()
Returns
TypeDescription
RelatedAccountGroupMembership

clear()

public RelatedAccountGroupMembership.Builder clear()
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RelatedAccountGroupMembership.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

clearHashedAccountId()

public RelatedAccountGroupMembership.Builder clearHashedAccountId()

The unique stable hashed user identifier of the member. The identifier corresponds to a hashed_account_id provided in a previous CreateAssessment or AnnotateAssessment call.

bytes hashed_account_id = 2;

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearName()

public RelatedAccountGroupMembership.Builder clearName()

Required. The resource name for this membership in the format projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RelatedAccountGroupMembership.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

clone()

public RelatedAccountGroupMembership.Builder clone()
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

getDefaultInstanceForType()

public RelatedAccountGroupMembership getDefaultInstanceForType()
Returns
TypeDescription
RelatedAccountGroupMembership

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHashedAccountId()

public ByteString getHashedAccountId()

The unique stable hashed user identifier of the member. The identifier corresponds to a hashed_account_id provided in a previous CreateAssessment or AnnotateAssessment call.

bytes hashed_account_id = 2;

Returns
TypeDescription
ByteString

The hashedAccountId.

getName()

public String getName()

Required. The resource name for this membership in the format projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name for this membership in the format projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RelatedAccountGroupMembership.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RelatedAccountGroupMembership.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

mergeFrom(RelatedAccountGroupMembership other)

public RelatedAccountGroupMembership.Builder mergeFrom(RelatedAccountGroupMembership other)
Parameter
NameDescription
otherRelatedAccountGroupMembership
Returns
TypeDescription
RelatedAccountGroupMembership.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RelatedAccountGroupMembership.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RelatedAccountGroupMembership.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

setHashedAccountId(ByteString value)

public RelatedAccountGroupMembership.Builder setHashedAccountId(ByteString value)

The unique stable hashed user identifier of the member. The identifier corresponds to a hashed_account_id provided in a previous CreateAssessment or AnnotateAssessment call.

bytes hashed_account_id = 2;

Parameter
NameDescription
valueByteString

The hashedAccountId to set.

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

setName(String value)

public RelatedAccountGroupMembership.Builder setName(String value)

Required. The resource name for this membership in the format projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RelatedAccountGroupMembership.Builder setNameBytes(ByteString value)

Required. The resource name for this membership in the format projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RelatedAccountGroupMembership.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RelatedAccountGroupMembership.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RelatedAccountGroupMembership.Builder
Overrides