Class AwsMetadata.AwsAccount.Builder (2.61.0)

public static final class AwsMetadata.AwsAccount.Builder extends GeneratedMessageV3.Builder<AwsMetadata.AwsAccount.Builder> implements AwsMetadata.AwsAccountOrBuilder

An AWS account that is a member of an organization.

Protobuf type google.cloud.securitycenter.v2.AwsMetadata.AwsAccount

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AwsMetadata.AwsAccount build()
Returns
Type Description
AwsMetadata.AwsAccount

buildPartial()

public AwsMetadata.AwsAccount buildPartial()
Returns
Type Description
AwsMetadata.AwsAccount

clear()

public AwsMetadata.AwsAccount.Builder clear()
Returns
Type Description
AwsMetadata.AwsAccount.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public AwsMetadata.AwsAccount.Builder clearId()

The unique identifier (ID) of the account, containing exactly 12 digits.

string id = 1;

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

clearName()

public AwsMetadata.AwsAccount.Builder clearName()

The friendly name of this account.

string name = 2;

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AwsMetadata.AwsAccount.Builder clone()
Returns
Type Description
AwsMetadata.AwsAccount.Builder
Overrides

getDefaultInstanceForType()

public AwsMetadata.AwsAccount getDefaultInstanceForType()
Returns
Type Description
AwsMetadata.AwsAccount

getDescriptorForType()

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

getId()

public String getId()

The unique identifier (ID) of the account, containing exactly 12 digits.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

The unique identifier (ID) of the account, containing exactly 12 digits.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getName()

public String getName()

The friendly name of this account.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The friendly name of this account.

string name = 2;

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(AwsMetadata.AwsAccount other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public AwsMetadata.AwsAccount.Builder setId(String value)

The unique identifier (ID) of the account, containing exactly 12 digits.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AwsMetadata.AwsAccount.Builder setIdBytes(ByteString value)

The unique identifier (ID) of the account, containing exactly 12 digits.

string id = 1;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

setName(String value)

public AwsMetadata.AwsAccount.Builder setName(String value)

The friendly name of this account.

string name = 2;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AwsMetadata.AwsAccount.Builder setNameBytes(ByteString value)

The friendly name of this account.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AwsMetadata.AwsAccount.Builder

This builder for chaining.

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

public AwsMetadata.AwsAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AwsMetadata.AwsAccount.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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