Class Team (0.42.0) Stay organized with collections Save and categorize content based on your preferences.
publicfinalclassTeamextendsGeneratedMessageimplementsTeamOrBuilderA Team defines a grouping of users and what entities they have access to.
Protobuf typegoogle.ads.admanager.v1.Team
Inheritance
Object >AbstractMessageLite<MessageType,BuilderType> >AbstractMessage >GeneratedMessage >TeamImplements
TeamOrBuilderInherited Members
Static Fields
ACCESS_TYPE_FIELD_NUMBER
publicstaticfinalintACCESS_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
ALL_COMPANIES_ACCESS_FIELD_NUMBER
publicstaticfinalintALL_COMPANIES_ACCESS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
ALL_INVENTORY_ACCESS_FIELD_NUMBER
publicstaticfinalintALL_INVENTORY_ACCESS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
publicstaticfinalintDESCRIPTION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
DISPLAY_NAME_FIELD_NUMBER
publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
STATUS_FIELD_NUMBER
publicstaticfinalintSTATUS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int | |
Static Methods
getDefaultInstance()
publicstaticTeamgetDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Team | |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor | |
newBuilder()
publicstaticTeam.BuildernewBuilder()| Returns | |
|---|---|
| Type | Description |
Team.Builder | |
newBuilder(Team prototype)
publicstaticTeam.BuildernewBuilder(Teamprototype)| Parameter | |
|---|---|
| Name | Description |
prototype | Team |
| Returns | |
|---|---|
| Type | Description |
Team.Builder | |
parseDelimitedFrom(InputStream input)
publicstaticTeamparseDelimitedFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | InputStream |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(byte[] data)
publicstaticTeamparseFrom(byte[]data)| Parameter | |
|---|---|
| Name | Description |
data | byte[] |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteString data)
publicstaticTeamparseFrom(ByteStringdata)| Parameter | |
|---|---|
| Name | Description |
data | ByteString |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(CodedInputStream input)
publicstaticTeamparseFrom(CodedInputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(InputStream input)
publicstaticTeamparseFrom(InputStreaminput)| Parameter | |
|---|---|
| Name | Description |
input | InputStream |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
parseFrom(ByteBuffer data)
publicstaticTeamparseFrom(ByteBufferdata)| Parameter | |
|---|---|
| Name | Description |
data | ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticTeamparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Team | |
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException | |
parser()
publicstaticParser<Team>parser()| Returns | |
|---|---|
| Type | Description |
Parser<Team> | |
Methods
equals(Object obj)
publicbooleanequals(Objectobj)| Parameter | |
|---|---|
| Name | Description |
obj | Object |
| Returns | |
|---|---|
| Type | Description |
boolean | |
getAccessType()
publicTeamAccessTypeEnum.TeamAccessTypegetAccessType()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()
publicintgetAccessTypeValue()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()
publicbooleangetAllCompaniesAccess()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()
publicbooleangetAllInventoryAccess()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()
publicTeamgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Team | |
getDescription()
publicStringgetDescription()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()
publicByteStringgetDescriptionBytes()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. |
getDisplayName()
publicStringgetDisplayName()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()
publicByteStringgetDisplayNameBytes()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()
publicStringgetName() Identifier. The resource name of theTeam. Format:networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String | The name. |
getNameBytes()
publicByteStringgetNameBytes() Identifier. The resource name of theTeam. Format:networks/{network_code}/teams/{team_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString | The bytes for name. |
getParserForType()
publicParser<Team>getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Team> | |
getSerializedSize()
publicintgetSerializedSize()| Returns | |
|---|---|
| Type | Description |
int | |
getStatus()
publicTeamStatusEnum.TeamStatusgetStatus()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()
publicintgetStatusValue()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()
publicbooleanhasAccessType()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()
publicbooleanhasAllCompaniesAccess()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()
publicbooleanhasAllInventoryAccess()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()
publicbooleanhasDescription()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()
publicbooleanhasDisplayName()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()
publicbooleanhasStatus()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. |
hashCode()
publicinthashCode()| Returns | |
|---|---|
| Type | Description |
int | |
internalGetFieldAccessorTable()
protectedGeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable | |
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean | |
newBuilderForType()
publicTeam.BuildernewBuilderForType()| Returns | |
|---|---|
| Type | Description |
Team.Builder | |
newBuilderForType(AbstractMessage.BuilderParent parent)
protectedTeam.BuildernewBuilderForType(AbstractMessage.BuilderParentparent)| Parameter | |
|---|---|
| Name | Description |
parent | BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Team.Builder | |
toBuilder()
publicTeam.BuildertoBuilder()| Returns | |
|---|---|
| Type | Description |
Team.Builder | |
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)| Parameter | |
|---|---|
| Name | Description |
output | CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-31 UTC.