Class AccessApprovalServiceAccount.Builder (2.47.0)

public static final class AccessApprovalServiceAccount.Builder extends GeneratedMessageV3.Builder<AccessApprovalServiceAccount.Builder> implements AccessApprovalServiceAccountOrBuilder

Access Approval service account related to a project/folder/organization.

Protobuf type google.cloud.accessapproval.v1.AccessApprovalServiceAccount

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccessApprovalServiceAccount build()
Returns
Type Description
AccessApprovalServiceAccount

buildPartial()

public AccessApprovalServiceAccount buildPartial()
Returns
Type Description
AccessApprovalServiceAccount

clear()

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

clearAccountEmail()

public AccessApprovalServiceAccount.Builder clearAccountEmail()

Email address of the service account.

string account_email = 2;

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AccessApprovalServiceAccount.Builder clearName()

The resource name of the Access Approval service account. Format is one of:

  • "projects/{project}/serviceAccount"
  • "folders/{folder}/serviceAccount"
  • "organizations/{organization}/serviceAccount"

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

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAccountEmail()

public String getAccountEmail()

Email address of the service account.

string account_email = 2;

Returns
Type Description
String

The accountEmail.

getAccountEmailBytes()

public ByteString getAccountEmailBytes()

Email address of the service account.

string account_email = 2;

Returns
Type Description
ByteString

The bytes for accountEmail.

getDefaultInstanceForType()

public AccessApprovalServiceAccount getDefaultInstanceForType()
Returns
Type Description
AccessApprovalServiceAccount

getDescriptorForType()

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

getName()

public String getName()

The resource name of the Access Approval service account. Format is one of:

  • "projects/{project}/serviceAccount"
  • "folders/{folder}/serviceAccount"
  • "organizations/{organization}/serviceAccount"

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the Access Approval service account. Format is one of:

  • "projects/{project}/serviceAccount"
  • "folders/{folder}/serviceAccount"
  • "organizations/{organization}/serviceAccount"

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

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(AccessApprovalServiceAccount other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccountEmail(String value)

public AccessApprovalServiceAccount.Builder setAccountEmail(String value)

Email address of the service account.

string account_email = 2;

Parameter
Name Description
value String

The accountEmail to set.

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

setAccountEmailBytes(ByteString value)

public AccessApprovalServiceAccount.Builder setAccountEmailBytes(ByteString value)

Email address of the service account.

string account_email = 2;

Parameter
Name Description
value ByteString

The bytes for accountEmail to set.

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AccessApprovalServiceAccount.Builder setName(String value)

The resource name of the Access Approval service account. Format is one of:

  • "projects/{project}/serviceAccount"
  • "folders/{folder}/serviceAccount"
  • "organizations/{organization}/serviceAccount"

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AccessApprovalServiceAccount.Builder setNameBytes(ByteString value)

The resource name of the Access Approval service account. Format is one of:

  • "projects/{project}/serviceAccount"
  • "folders/{folder}/serviceAccount"
  • "organizations/{organization}/serviceAccount"

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AccessApprovalServiceAccount.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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