public static final class Role.Builder extends GeneratedMessageV3.Builder<Role.Builder> implements RoleOrBuilder
The Role resource.
Protobuf type google.ads.admanager.v1.Role
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Role.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Role |
|
buildPartial()
public Role buildPartial()
Returns |
Type |
Description |
Role |
|
clear()
public Role.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Role.Builder clearField(Descriptors.FieldDescriptor field)
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)
Overrides
clone()
public Role.Builder clone()
Overrides
getDefaultInstanceForType()
public Role getDefaultInstanceForType()
Returns |
Type |
Description |
Role |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Role other)
public Role.Builder mergeFrom(Role other)
Parameter |
Name |
Description |
other |
Role
|
public Role.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Role.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Role.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Role.Builder setField(Descriptors.FieldDescriptor field, Object value)
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)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Role.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides