Class PatchServiceAccountRequest.Builder (3.7.0)

See more code actions.
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

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 PatchServiceAccountRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

build()

public PatchServiceAccountRequest build()
Returns

buildPartial()

public PatchServiceAccountRequest buildPartial()
Returns

clear()

public PatchServiceAccountRequest.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

public PatchServiceAccountRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccount()

public PatchServiceAccountRequest.Builder clearServiceAccount()

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

Returns

clearUpdateMask()

public PatchServiceAccountRequest.Builder clearUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns

clone()

public PatchServiceAccountRequest.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public PatchServiceAccountRequest getDefaultInstanceForType()
Returns

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceAccount()

public ServiceAccount getServiceAccount()

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

Returns
TypeDescription
ServiceAccount

The serviceAccount.

getServiceAccountBuilder()

public ServiceAccount.Builder getServiceAccountBuilder()

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

Returns
TypeDescription
ServiceAccount.Builder

getServiceAccountOrBuilder()

public ServiceAccountOrBuilder getServiceAccountOrBuilder()

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

Returns

getUpdateMask()

public FieldMask getUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMaskOrBuilder

hasServiceAccount()

public boolean hasServiceAccount()

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

Returns
TypeDescription
boolean

Whether the serviceAccount field is set.

hasUpdateMask()

public boolean hasUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchServiceAccountRequest other)

public PatchServiceAccountRequest.Builder mergeFrom(PatchServiceAccountRequest other)
Parameter
NameDescription
otherPatchServiceAccountRequest
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceAccount(ServiceAccount value)

public PatchServiceAccountRequest.Builder mergeServiceAccount(ServiceAccount value)

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

Parameter
NameDescription
valueServiceAccount
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public PatchServiceAccountRequest.Builder mergeUpdateMask(FieldMask value)

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public PatchServiceAccountRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

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

public PatchServiceAccountRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setServiceAccount(ServiceAccount value)

public PatchServiceAccountRequest.Builder setServiceAccount(ServiceAccount value)

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

Parameter
NameDescription
valueServiceAccount
Returns

setServiceAccount(ServiceAccount.Builder builderForValue)

public PatchServiceAccountRequest.Builder setServiceAccount(ServiceAccount.Builder builderForValue)

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

Parameter
NameDescription
builderForValueServiceAccount.Builder
Returns

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public PatchServiceAccountRequest.Builder setUpdateMask(FieldMask value)

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns

setUpdateMask(FieldMask.Builder builderForValue)

public PatchServiceAccountRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
builderForValueBuilder
Returns