public static final class Role.Builder extends GeneratedMessageV3.Builder<Role.Builder> implements RoleOrBuilder The Role resource.
Protobuf type google.ads.admanager.v1.Role
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Role.BuilderImplements
RoleOrBuilderStatic 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 |
|
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 |
|
clearBuiltIn()
public Role.Builder clearBuiltIn() Output only. Whether the Role is a built-in or custom user role.
optional 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.
optional 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.
optional 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 |
|
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 |
|
clearRoleId()
public Role.Builder clearRoleId() Output only. Role ID.
optional 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.
optional .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 |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The builtIn. |
getDefaultInstanceForType()
public Role getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Role |
|
getDescription()
public String getDescription() Optional. The description of the Role.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes() Optional. The description of the Role.
optional 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 |
|
getDisplayName()
public String getDisplayName() Required. The display name of the Role.
optional 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.
optional 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.
optional 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.
optional .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.
optional .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. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the builtIn field is set. |
hasDescription()
public boolean hasDescription() Optional. The description of the Role.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasDisplayName()
public boolean hasDisplayName() Required. The display name of the Role.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasRoleId()
public boolean hasRoleId() Output only. Role ID.
optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the roleId field is set. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the status field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Role.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Role.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Role.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Role.Builder |
|
setBuiltIn(boolean value)
public Role.Builder setBuiltIn(boolean value) Output only. Whether the Role is a built-in or custom user role.
optional bool built_in = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe 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.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
|
setRoleId(long value)
public Role.Builder setRoleId(long value) Output only. Role ID.
optional int64 role_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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.
optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
RoleStatusEnum.RoleStatusThe 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.
optional .google.ads.admanager.v1.RoleStatusEnum.RoleStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
|