Class RelatedAccountGroupMembership.Builder (3.30.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

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
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RelatedAccountGroupMembership.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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=1835

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
TypeDescription
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, (.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

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

The bytes for accountId.

getDefaultInstanceForType()

public RelatedAccountGroupMembership getDefaultInstanceForType()
Returns
TypeDescription
RelatedAccountGroupMembership

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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=1835

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
TypeDescription
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, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
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, (.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

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
NameDescription
valueString

The accountId to set.

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

The bytes for accountId to set.

Returns
TypeDescription
RelatedAccountGroupMembership.Builder

This builder for chaining.

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

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
NameDescription
valueByteString

The hashedAccountId to set.

Returns
TypeDescription
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, (.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. 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, (.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