public
final
class
Role
extends
GeneratedMessageV3
implements
RoleOrBuilder
The Role
resource.
Protobuf type google.ads.admanager.v1.Role
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RoleImplements
RoleOrBuilderStatic Fields
BUILT_IN_FIELD_NUMBER
public
static
final
int
BUILT_IN_FIELD_NUMBER
DESCRIPTION_FIELD_NUMBER
public
static
final
int
DESCRIPTION_FIELD_NUMBER
DISPLAY_NAME_FIELD_NUMBER
public
static
final
int
DISPLAY_NAME_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
ROLE_ID_FIELD_NUMBER
public
static
final
int
ROLE_ID_FIELD_NUMBER
STATUS_FIELD_NUMBER
public
static
final
int
STATUS_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Role
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Role
.
Builder
newBuilder
()
newBuilder(Role prototype)
public
static
Role
.
Builder
newBuilder
(
Role
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Role
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Role
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Role
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Role
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Role
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Role
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Role
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Role>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getBuiltIn()
public
boolean
getBuiltIn
()
Output only. Whether the Role
is a built-in or custom user role.
optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public
Role
getDefaultInstanceForType
()
getDescription()
public
String
getDescription
()
Optional. The description of the Role
.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes()
public
ByteString
getDescriptionBytes
()
Optional. The description of the Role
.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
getDisplayName()
public
String
getDisplayName
()
Required. The display name of the Role
.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameBytes()
public
ByteString
getDisplayNameBytes
()
Required. The display name of the Role
.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
getName()
public
String
getName
()
Identifier. The resource name of the Role
.
Format: networks/{network_code}/roles/{role_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getNameBytes()
public
ByteString
getNameBytes
()
Identifier. The resource name of the Role
.
Format: networks/{network_code}/roles/{role_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getParserForType()
public
Parser<Role>
getParserForType
()
getRoleId()
public
long
getRoleId
()
Output only. Role
ID.
optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public
int
getSerializedSize
()
getStatus()
public
RoleStatusEnum
.
RoleStatus
getStatus
()
Output only. The status of the Role
.
optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public
int
getStatusValue
()
Output only. The status of the Role
.
optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasBuiltIn()
public
boolean
hasBuiltIn
()
Output only. Whether the Role
is a built-in or custom user role.
optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDescription()
public
boolean
hasDescription
()
Optional. The description of the Role
.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
hasDisplayName()
public
boolean
hasDisplayName
()
Required. The display name of the Role
.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
hasRoleId()
public
boolean
hasRoleId
()
Output only. Role
ID.
optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStatus()
public
boolean
hasStatus
()
Output only. The status of the Role
.
optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Role
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Role
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Role
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)