Class PatchServiceAccountRequest (3.23.0)

public final class PatchServiceAccountRequest extends GeneratedMessageV3 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 Fields

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PatchServiceAccountRequest getDefaultInstance()
Returns
TypeDescription
PatchServiceAccountRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PatchServiceAccountRequest.Builder newBuilder()
Returns
TypeDescription
PatchServiceAccountRequest.Builder

newBuilder(PatchServiceAccountRequest prototype)

public static PatchServiceAccountRequest.Builder newBuilder(PatchServiceAccountRequest prototype)
Parameter
NameDescription
prototypePatchServiceAccountRequest
Returns
TypeDescription
PatchServiceAccountRequest.Builder

parseDelimitedFrom(InputStream input)

public static PatchServiceAccountRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PatchServiceAccountRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PatchServiceAccountRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PatchServiceAccountRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PatchServiceAccountRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PatchServiceAccountRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PatchServiceAccountRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchServiceAccountRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PatchServiceAccountRequest> parser()
Returns
TypeDescription
Parser<PatchServiceAccountRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PatchServiceAccountRequest getDefaultInstanceForType()
Returns
TypeDescription
PatchServiceAccountRequest

getParserForType()

public Parser<PatchServiceAccountRequest> getParserForType()
Returns
TypeDescription
Parser<PatchServiceAccountRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceAccount()

public ServiceAccount getServiceAccount()

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

Returns
TypeDescription
ServiceAccount

The serviceAccount.

getServiceAccountOrBuilder()

public ServiceAccountOrBuilder getServiceAccountOrBuilder()

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

Returns
TypeDescription
ServiceAccountOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMask

The updateMask.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PatchServiceAccountRequest.Builder newBuilderForType()
Returns
TypeDescription
PatchServiceAccountRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PatchServiceAccountRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PatchServiceAccountRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PatchServiceAccountRequest.Builder toBuilder()
Returns
TypeDescription
PatchServiceAccountRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException