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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public RelatedAccountGroupMembership build()
Returns
TypeDescription
RelatedAccountGroupMembership

buildPartial()

public RelatedAccountGroupMembership buildPartial()
Returns
TypeDescription
RelatedAccountGroupMembership

clear()

public RelatedAccountGroupMembership.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clone()

public RelatedAccountGroupMembership.Builder clone()
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
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(RelatedAccountGroupMembership other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RelatedAccountGroupMembership.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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