Class AccessApprovalServiceAccount.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AccessApprovalServiceAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

build()

public AccessApprovalServiceAccount build()
Returns
TypeDescription
AccessApprovalServiceAccount

buildPartial()

public AccessApprovalServiceAccount buildPartial()
Returns
TypeDescription
AccessApprovalServiceAccount

clear()

public AccessApprovalServiceAccount.Builder clear()
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

clearAccountEmail()

public AccessApprovalServiceAccount.Builder clearAccountEmail()

Email address of the service account.

string account_email = 2;

Returns
TypeDescription
AccessApprovalServiceAccount.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AccessApprovalServiceAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

clone()

public AccessApprovalServiceAccount.Builder clone()
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

getAccountEmail()

public String getAccountEmail()

Email address of the service account.

string account_email = 2;

Returns
TypeDescription
String

The accountEmail.

getAccountEmailBytes()

public ByteString getAccountEmailBytes()

Email address of the service account.

string account_email = 2;

Returns
TypeDescription
ByteString

The bytes for accountEmail.

getDefaultInstanceForType()

public AccessApprovalServiceAccount getDefaultInstanceForType()
Returns
TypeDescription
AccessApprovalServiceAccount

getDescriptorForType()

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

public AccessApprovalServiceAccount.Builder mergeFrom(AccessApprovalServiceAccount other)
Parameter
NameDescription
otherAccessApprovalServiceAccount
Returns
TypeDescription
AccessApprovalServiceAccount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessApprovalServiceAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AccessApprovalServiceAccount.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AccessApprovalServiceAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

setAccountEmail(String value)

public AccessApprovalServiceAccount.Builder setAccountEmail(String value)

Email address of the service account.

string account_email = 2;

Parameter
NameDescription
valueString

The accountEmail to set.

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

The bytes for accountEmail to set.

Returns
TypeDescription
AccessApprovalServiceAccount.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AccessApprovalServiceAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AccessApprovalServiceAccount.Builder
Overrides