Class Team (0.42.0)

publicfinalclassTeamextendsGeneratedMessageimplementsTeamOrBuilder

A Team defines a grouping of users and what entities they have access to.

Protobuf typegoogle.ads.admanager.v1.Team

Implements

TeamOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)

Static Fields

ACCESS_TYPE_FIELD_NUMBER

publicstaticfinalintACCESS_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

ALL_COMPANIES_ACCESS_FIELD_NUMBER

publicstaticfinalintALL_COMPANIES_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

ALL_INVENTORY_ACCESS_FIELD_NUMBER

publicstaticfinalintALL_INVENTORY_ACCESS_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

publicstaticfinalintDESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

publicstaticfinalintSTATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticTeamgetDefaultInstance()
Returns
TypeDescription
Team

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticTeam.BuildernewBuilder()
Returns
TypeDescription
Team.Builder

newBuilder(Team prototype)

publicstaticTeam.BuildernewBuilder(Teamprototype)
Parameter
NameDescription
prototypeTeam
Returns
TypeDescription
Team.Builder

parseDelimitedFrom(InputStream input)

publicstaticTeamparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticTeamparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTeamparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTeamparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticTeamparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticTeamparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTeamparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Team
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Team>parser()
Returns
TypeDescription
Parser<Team>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The allInventoryAccess.

getDefaultInstanceForType()

publicTeamgetDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

publicParser<Team>getParserForType()
Returns
TypeDescription
Parser<Team>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the status field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicTeam.BuildernewBuilderForType()
Returns
TypeDescription
Team.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protectedTeam.BuildernewBuilderForType(AbstractMessage.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Team.Builder
Overrides

toBuilder()

publicTeam.BuildertoBuilder()
Returns
TypeDescription
Team.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
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.