public final class IncidentRoleAssignment extends GeneratedMessageV3 implements IncidentRoleAssignmentOrBuilder
Stores the assignee of a role as well as the proposed next assignee.Protobuf type
google.cloud.irm.v1alpha2.IncidentRoleAssignment| Modifier and Type | Class and Description |
|---|---|
static class |
IncidentRoleAssignment.Builder
Stores the assignee of a role as well as the proposed next assignee.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
ASSIGNEE_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROPOSED_ASSIGNEE_FIELD_NUMBER |
static int |
ROLE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
public static final int ASSIGNEE_FIELD_NUMBER
public static final int PROPOSED_ASSIGNEE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public String getName()
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/role_assignments/{role_id}".
string name = 1;getName in interface IncidentRoleAssignmentOrBuilderpublic ByteString getNameBytes()
Output only. Resource name such as
"projects/{project_id_or_number}/incidents/{incident_id}/role_assignments/{role_id}".
string name = 1;getNameBytes in interface IncidentRoleAssignmentOrBuilderpublic String getEtag()
Output only. Etag for this version of the resource. Must be specified in update requests and match the current version in storage. Must not be modified by the client.
string etag = 2;getEtag in interface IncidentRoleAssignmentOrBuilderpublic ByteString getEtagBytes()
Output only. Etag for this version of the resource. Must be specified in update requests and match the current version in storage. Must not be modified by the client.
string etag = 2;getEtagBytes in interface IncidentRoleAssignmentOrBuilderpublic boolean hasRole()
The role that is or will be assigned.
.google.cloud.irm.v1alpha2.IncidentRole role = 3;hasRole in interface IncidentRoleAssignmentOrBuilderpublic IncidentRole getRole()
The role that is or will be assigned.
.google.cloud.irm.v1alpha2.IncidentRole role = 3;getRole in interface IncidentRoleAssignmentOrBuilderpublic IncidentRoleOrBuilder getRoleOrBuilder()
The role that is or will be assigned.
.google.cloud.irm.v1alpha2.IncidentRole role = 3;getRoleOrBuilder in interface IncidentRoleAssignmentOrBuilderpublic boolean hasAssignee()
The user this role is assigned to. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods.
.google.cloud.irm.v1alpha2.User assignee = 4;hasAssignee in interface IncidentRoleAssignmentOrBuilderpublic User getAssignee()
The user this role is assigned to. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods.
.google.cloud.irm.v1alpha2.User assignee = 4;getAssignee in interface IncidentRoleAssignmentOrBuilderpublic UserOrBuilder getAssigneeOrBuilder()
The user this role is assigned to. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods.
.google.cloud.irm.v1alpha2.User assignee = 4;getAssigneeOrBuilder in interface IncidentRoleAssignmentOrBuilderpublic boolean hasProposedAssignee()
The recipient of a requested role handoff. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods. `assignee` is always the current role-holder, and `proposed_assignee` is used to track unfinished assignments and handoffs. Let's say Bob assigns Alice to a role. Then the fields are: `assignee`: nil, `proposed_assignee`: Alice If Alice accepts, then the fields are: `assignee`: Alice, `proposed_assignee`: nil If she cancels, then the RoleAssignment is deleted. Let's say Alice has the role. Then the fields are: `assignee`: Alice, `proposed_assignee`: nil If Alice becomes incapacitated and Bob requests Carol to take over, then the fields are: `assignee`: Alice, `proposed_assignee`: Carol After Carol accepts the handover, the fields are: `assignee`: Carol, `proposed_assignee`: nil Or if Carol refuses the handover, the fields are: `assignee`: Alice, `proposed_assignee`: nil
.google.cloud.irm.v1alpha2.User proposed_assignee = 5;hasProposedAssignee in interface IncidentRoleAssignmentOrBuilderpublic User getProposedAssignee()
The recipient of a requested role handoff. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods. `assignee` is always the current role-holder, and `proposed_assignee` is used to track unfinished assignments and handoffs. Let's say Bob assigns Alice to a role. Then the fields are: `assignee`: nil, `proposed_assignee`: Alice If Alice accepts, then the fields are: `assignee`: Alice, `proposed_assignee`: nil If she cancels, then the RoleAssignment is deleted. Let's say Alice has the role. Then the fields are: `assignee`: Alice, `proposed_assignee`: nil If Alice becomes incapacitated and Bob requests Carol to take over, then the fields are: `assignee`: Alice, `proposed_assignee`: Carol After Carol accepts the handover, the fields are: `assignee`: Carol, `proposed_assignee`: nil Or if Carol refuses the handover, the fields are: `assignee`: Alice, `proposed_assignee`: nil
.google.cloud.irm.v1alpha2.User proposed_assignee = 5;getProposedAssignee in interface IncidentRoleAssignmentOrBuilderpublic UserOrBuilder getProposedAssigneeOrBuilder()
The recipient of a requested role handoff. This field can only be directly set during creation request. Subsequent updates are done via the IncidentRoleHandover methods. `assignee` is always the current role-holder, and `proposed_assignee` is used to track unfinished assignments and handoffs. Let's say Bob assigns Alice to a role. Then the fields are: `assignee`: nil, `proposed_assignee`: Alice If Alice accepts, then the fields are: `assignee`: Alice, `proposed_assignee`: nil If she cancels, then the RoleAssignment is deleted. Let's say Alice has the role. Then the fields are: `assignee`: Alice, `proposed_assignee`: nil If Alice becomes incapacitated and Bob requests Carol to take over, then the fields are: `assignee`: Alice, `proposed_assignee`: Carol After Carol accepts the handover, the fields are: `assignee`: Carol, `proposed_assignee`: nil Or if Carol refuses the handover, the fields are: `assignee`: Alice, `proposed_assignee`: nil
.google.cloud.irm.v1alpha2.User proposed_assignee = 5;getProposedAssigneeOrBuilder in interface IncidentRoleAssignmentOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static IncidentRoleAssignment parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static IncidentRoleAssignment parseFrom(InputStream input) throws IOException
IOExceptionpublic static IncidentRoleAssignment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static IncidentRoleAssignment parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static IncidentRoleAssignment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static IncidentRoleAssignment parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static IncidentRoleAssignment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic IncidentRoleAssignment.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static IncidentRoleAssignment.Builder newBuilder()
public static IncidentRoleAssignment.Builder newBuilder(IncidentRoleAssignment prototype)
public IncidentRoleAssignment.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected IncidentRoleAssignment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static IncidentRoleAssignment getDefaultInstance()
public static Parser<IncidentRoleAssignment> parser()
public Parser<IncidentRoleAssignment> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public IncidentRoleAssignment getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.