public static final class Team.Builder extends GeneratedMessageV3.Builder<Team.Builder> implements TeamOrBuilderA Team defines a grouping of users and what entities they have access to.
Protobuf type google.ads.admanager.v1.Team
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Team.BuilderImplements
TeamOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Team.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
build()
public Team build()| Returns | |
|---|---|
| Type | Description |
Team |
|
buildPartial()
public Team buildPartial()| Returns | |
|---|---|
| Type | Description |
Team |
|
clear()
public Team.Builder clear()| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
clearAccessType()
public Team.Builder clearAccessType()Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearAllCompaniesAccess()
public Team.Builder clearAllCompaniesAccess()Optional. Whether or not users on this team have access to all companies. If this value is true, then an error will be thrown if an attempt is made to associate this team with a Company.
optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearAllInventoryAccess()
public Team.Builder clearAllInventoryAccess()Optional. Whether or not users on this team have access to all inventory. If this value is true, then an error will be thrown if an attempt is made to associate this team with an AdUnit.
optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearDescription()
public Team.Builder clearDescription()Optional. The description of the Team. This value has a maximum length of 255 characters.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearDisplayName()
public Team.Builder clearDisplayName()Required. The name of the Team. This value has a maximum length of 127 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Team.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
clearName()
public Team.Builder clearName() Identifier. The resource name of the Team.
Format: networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Team.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
clearStatus()
public Team.Builder clearStatus()Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
clone()
public Team.Builder clone()| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
getAccessType()
public TeamAccessTypeEnum.TeamAccessType getAccessType()Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TeamAccessTypeEnum.TeamAccessType |
The accessType. |
getAccessTypeValue()
public int getAccessTypeValue()Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for accessType. |
getAllCompaniesAccess()
public boolean getAllCompaniesAccess()Optional. Whether or not users on this team have access to all companies. If this value is true, then an error will be thrown if an attempt is made to associate this team with a Company.
optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The allCompaniesAccess. |
getAllInventoryAccess()
public boolean getAllInventoryAccess()Optional. Whether or not users on this team have access to all inventory. If this value is true, then an error will be thrown if an attempt is made to associate this team with an AdUnit.
optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The allInventoryAccess. |
getDefaultInstanceForType()
public Team getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Team |
|
getDescription()
public String getDescription()Optional. The description of the Team. This value has a maximum length of 255 characters.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The description of the Team. This value has a maximum length of 255 characters.
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 name of the Team. This value has a maximum length of 127 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. The name of the Team. This value has a maximum length of 127 characters.
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 Team.
Format: networks/{network_code}/teams/{team_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 Team.
Format: networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getStatus()
public TeamStatusEnum.TeamStatus getStatus()Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TeamStatusEnum.TeamStatus |
The status. |
getStatusValue()
public int getStatusValue()Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
hasAccessType()
public boolean hasAccessType()Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the accessType field is set. |
hasAllCompaniesAccess()
public boolean hasAllCompaniesAccess()Optional. Whether or not users on this team have access to all companies. If this value is true, then an error will be thrown if an attempt is made to associate this team with a Company.
optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allCompaniesAccess field is set. |
hasAllInventoryAccess()
public boolean hasAllInventoryAccess()Optional. Whether or not users on this team have access to all inventory. If this value is true, then an error will be thrown if an attempt is made to associate this team with an AdUnit.
optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allInventoryAccess field is set. |
hasDescription()
public boolean hasDescription()Optional. The description of the Team. This value has a maximum length of 255 characters.
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 name of the Team. This value has a maximum length of 127 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
hasStatus()
public boolean hasStatus()Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.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(Team other)
public Team.Builder mergeFrom(Team other)| Parameter | |
|---|---|
| Name | Description |
other |
Team |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Team.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Team.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Team.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
setAccessType(TeamAccessTypeEnum.TeamAccessType value)
public Team.Builder setAccessType(TeamAccessTypeEnum.TeamAccessType value)Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TeamAccessTypeEnum.TeamAccessTypeThe accessType to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setAccessTypeValue(int value)
public Team.Builder setAccessTypeValue(int value)Optional. The default access to orders for users on this team.
optional .google.ads.admanager.v1.TeamAccessTypeEnum.TeamAccessType access_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for accessType to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setAllCompaniesAccess(boolean value)
public Team.Builder setAllCompaniesAccess(boolean value)Optional. Whether or not users on this team have access to all companies. If this value is true, then an error will be thrown if an attempt is made to associate this team with a Company.
optional bool all_companies_access = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe allCompaniesAccess to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setAllInventoryAccess(boolean value)
public Team.Builder setAllInventoryAccess(boolean value)Optional. Whether or not users on this team have access to all inventory. If this value is true, then an error will be thrown if an attempt is made to associate this team with an AdUnit.
optional bool all_inventory_access = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe allInventoryAccess to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setDescription(String value)
public Team.Builder setDescription(String value)Optional. The description of the Team. This value has a maximum length of 255 characters.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Team.Builder setDescriptionBytes(ByteString value)Optional. The description of the Team. This value has a maximum length of 255 characters.
optional string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setDisplayName(String value)
public Team.Builder setDisplayName(String value)Required. The name of the Team. This value has a maximum length of 127 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Team.Builder setDisplayNameBytes(ByteString value)Required. The name of the Team. This value has a maximum length of 127 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Team.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
setName(String value)
public Team.Builder setName(String value) Identifier. The resource name of the Team.
Format: networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Team.Builder setNameBytes(ByteString value) Identifier. The resource name of the Team.
Format: networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Team.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|
setStatus(TeamStatusEnum.TeamStatus value)
public Team.Builder setStatus(TeamStatusEnum.TeamStatus value)Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
TeamStatusEnum.TeamStatusThe status to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setStatusValue(int value)
public Team.Builder setStatusValue(int value)Output only. The status of the Team. This value determines the visibility of the team in the UI.
optional .google.ads.admanager.v1.TeamStatusEnum.TeamStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Team.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Team.Builder |
|