Class RelatedAccountGroupMembership.Builder (3.40.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RelatedAccountGroupMembership.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

build()

public RelatedAccountGroupMembership build()
Returns
Type Description
RelatedAccountGroupMembership

buildPartial()

public RelatedAccountGroupMembership buildPartial()
Returns
Type Description
RelatedAccountGroupMembership

clear()

public RelatedAccountGroupMembership.Builder clear()
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

clearAccountId()

public RelatedAccountGroupMembership.Builder clearAccountId()

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call.

string account_id = 4;

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RelatedAccountGroupMembership.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

clearHashedAccountId() (deprecated)

public RelatedAccountGroupMembership.Builder clearHashedAccountId()

Deprecated. google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913

Deprecated: use account_id instead. The unique stable hashed account 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 [deprecated = true];

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearName()

public RelatedAccountGroupMembership.Builder clearName()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RelatedAccountGroupMembership.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

clone()

public RelatedAccountGroupMembership.Builder clone()
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

getAccountId()

public String getAccountId()

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call.

string account_id = 4;

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call.

string account_id = 4;

Returns
Type Description
ByteString

The bytes for accountId.

getDefaultInstanceForType()

public RelatedAccountGroupMembership getDefaultInstanceForType()
Returns
Type Description
RelatedAccountGroupMembership

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHashedAccountId() (deprecated)

public ByteString getHashedAccountId()

Deprecated. google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913

Deprecated: use account_id instead. The unique stable hashed account 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 [deprecated = true];

Returns
Type Description
ByteString

The hashedAccountId.

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RelatedAccountGroupMembership.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RelatedAccountGroupMembership.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

mergeFrom(RelatedAccountGroupMembership other)

public RelatedAccountGroupMembership.Builder mergeFrom(RelatedAccountGroupMembership other)
Parameter
Name Description
other RelatedAccountGroupMembership
Returns
Type Description
RelatedAccountGroupMembership.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RelatedAccountGroupMembership.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

setAccountId(String value)

public RelatedAccountGroupMembership.Builder setAccountId(String value)

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call.

string account_id = 4;

Parameter
Name Description
value String

The accountId to set.

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public RelatedAccountGroupMembership.Builder setAccountIdBytes(ByteString value)

The unique stable account identifier of the member. The identifier corresponds to an account_id provided in a previous CreateAssessment or AnnotateAssessment call.

string account_id = 4;

Parameter
Name Description
value ByteString

The bytes for accountId to set.

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RelatedAccountGroupMembership.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

setHashedAccountId(ByteString value) (deprecated)

public RelatedAccountGroupMembership.Builder setHashedAccountId(ByteString value)

Deprecated. google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913

Deprecated: use account_id instead. The unique stable hashed account 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 [deprecated = true];

Parameter
Name Description
value ByteString

The hashedAccountId to set.

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

setName(String value)

public RelatedAccountGroupMembership.Builder setName(String value)

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RelatedAccountGroupMembership.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RelatedAccountGroupMembership.Builder setNameBytes(ByteString value)

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RelatedAccountGroupMembership.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RelatedAccountGroupMembership.Builder
Overrides