Class PatchServiceAccountRequest.Builder (3.41.0)

public static final class PatchServiceAccountRequest.Builder extends GeneratedMessageV3.Builder<PatchServiceAccountRequest.Builder> implements PatchServiceAccountRequestOrBuilder

The service account patch request.

You can patch only the display_name and description fields. You must use the update_mask field to specify which of these fields you want to patch.

Only the fields specified in the request are guaranteed to be returned in the response. Other fields may be empty in the response.

Protobuf type google.iam.admin.v1.PatchServiceAccountRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchServiceAccountRequest build()
Returns
Type Description
PatchServiceAccountRequest

buildPartial()

public PatchServiceAccountRequest buildPartial()
Returns
Type Description
PatchServiceAccountRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccount()

public PatchServiceAccountRequest.Builder clearServiceAccount()

.google.iam.admin.v1.ServiceAccount service_account = 1;

Returns
Type Description
PatchServiceAccountRequest.Builder

clearUpdateMask()

public PatchServiceAccountRequest.Builder clearUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
PatchServiceAccountRequest.Builder

clone()

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

getDefaultInstanceForType()

public PatchServiceAccountRequest getDefaultInstanceForType()
Returns
Type Description
PatchServiceAccountRequest

getDescriptorForType()

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

getServiceAccount()

public ServiceAccount getServiceAccount()

.google.iam.admin.v1.ServiceAccount service_account = 1;

Returns
Type Description
ServiceAccount

The serviceAccount.

getServiceAccountBuilder()

public ServiceAccount.Builder getServiceAccountBuilder()

.google.iam.admin.v1.ServiceAccount service_account = 1;

Returns
Type Description
ServiceAccount.Builder

getServiceAccountOrBuilder()

public ServiceAccountOrBuilder getServiceAccountOrBuilder()

.google.iam.admin.v1.ServiceAccount service_account = 1;

Returns
Type Description
ServiceAccountOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasServiceAccount()

public boolean hasServiceAccount()

.google.iam.admin.v1.ServiceAccount service_account = 1;

Returns
Type Description
boolean

Whether the serviceAccount field is set.

hasUpdateMask()

public boolean hasUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchServiceAccountRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceAccount(ServiceAccount value)

public PatchServiceAccountRequest.Builder mergeServiceAccount(ServiceAccount value)

.google.iam.admin.v1.ServiceAccount service_account = 1;

Parameter
Name Description
value ServiceAccount
Returns
Type Description
PatchServiceAccountRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public PatchServiceAccountRequest.Builder mergeUpdateMask(FieldMask value)

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
PatchServiceAccountRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceAccount(ServiceAccount value)

public PatchServiceAccountRequest.Builder setServiceAccount(ServiceAccount value)

.google.iam.admin.v1.ServiceAccount service_account = 1;

Parameter
Name Description
value ServiceAccount
Returns
Type Description
PatchServiceAccountRequest.Builder

setServiceAccount(ServiceAccount.Builder builderForValue)

public PatchServiceAccountRequest.Builder setServiceAccount(ServiceAccount.Builder builderForValue)

.google.iam.admin.v1.ServiceAccount service_account = 1;

Parameter
Name Description
builderForValue ServiceAccount.Builder
Returns
Type Description
PatchServiceAccountRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public PatchServiceAccountRequest.Builder setUpdateMask(FieldMask value)

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
PatchServiceAccountRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public PatchServiceAccountRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PatchServiceAccountRequest.Builder