Class Role.Builder (0.11.0)

public static final class Role.Builder extends GeneratedMessageV3.Builder<Role.Builder> implements RoleOrBuilder

The Role resource.

Protobuf type google.ads.admanager.v1.Role

Implements

RoleOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Role build()
Returns
Type Description
Role

buildPartial()

public Role buildPartial()
Returns
Type Description
Role

clear()

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

clearBuiltIn()

public Role.Builder clearBuiltIn()

Output only. Whether the Role is a built-in or custom user role.

bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Role.Builder

This builder for chaining.

clearDescription()

public Role.Builder clearDescription()

Optional. The description of the Role.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Role.Builder

This builder for chaining.

clearDisplayName()

public Role.Builder clearDisplayName()

Required. The display name of the Role.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Role.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Role.Builder clearName()

Identifier. The resource name of the Role. Format: networks/{network_code}/roles/{role_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Role.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoleId()

public Role.Builder clearRoleId()

Output only. Role ID.

int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Role.Builder

This builder for chaining.

clearStatus()

public Role.Builder clearStatus()

Output only. The status of the Role.

.google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Role.Builder

This builder for chaining.

clone()

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

getBuiltIn()

public boolean getBuiltIn()

Output only. Whether the Role is a built-in or custom user role.

bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The builtIn.

getDefaultInstanceForType()

public Role getDefaultInstanceForType()
Returns
Type Description
Role

getDescription()

public String getDescription()

Optional. The description of the Role.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the Role.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The display name of the Role.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the Role.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for displayName.

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];

Returns
Type Description
String

The name.

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];

Returns
Type Description
ByteString

The bytes for name.

getRoleId()

public long getRoleId()

Output only. Role ID.

int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The roleId.

getStatus()

public RoleStatusEnum.RoleStatus getStatus()

Output only. The status of the Role.

.google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RoleStatusEnum.RoleStatus

The status.

getStatusValue()

public int getStatusValue()

Output only. The status of the Role.

.google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Role other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBuiltIn(boolean value)

public Role.Builder setBuiltIn(boolean value)

Output only. Whether the Role is a built-in or custom user role.

bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The builtIn to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setDescription(String value)

public Role.Builder setDescription(String value)

Optional. The description of the Role.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Role.Builder setDescriptionBytes(ByteString value)

Optional. The description of the Role.

string description = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setDisplayName(String value)

public Role.Builder setDisplayName(String value)

Required. The display name of the Role.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Role.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the Role.

string display_name = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Role.Builder setName(String value)

Identifier. The resource name of the Role. Format: networks/{network_code}/roles/{role_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Role.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Role. Format: networks/{network_code}/roles/{role_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Role.Builder

This builder for chaining.

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

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

setRoleId(long value)

public Role.Builder setRoleId(long value)

Output only. Role ID.

int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The roleId to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setStatus(RoleStatusEnum.RoleStatus value)

public Role.Builder setStatus(RoleStatusEnum.RoleStatus value)

Output only. The status of the Role.

.google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RoleStatusEnum.RoleStatus

The status to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setStatusValue(int value)

public Role.Builder setStatusValue(int value)

Output only. The status of the Role.

.google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for status to set.

Returns
Type Description
Role.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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