Class ListTeamsResponse.Builder (0.4.0)

public static final class ListTeamsResponse.Builder extends GeneratedMessageV3.Builder<ListTeamsResponse.Builder> implements ListTeamsResponseOrBuilder

Response object for ListTeamsRequest containing matching Team resources.

Protobuf type google.ads.admanager.v1.ListTeamsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTeams(Iterable<? extends Team> values)

public ListTeamsResponse.Builder addAllTeams(Iterable<? extends Team> values)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.Team>
Returns
Type Description
ListTeamsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTeamsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTeamsResponse.Builder
Overrides

addTeams(Team value)

public ListTeamsResponse.Builder addTeams(Team value)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
value Team
Returns
Type Description
ListTeamsResponse.Builder

addTeams(Team.Builder builderForValue)

public ListTeamsResponse.Builder addTeams(Team.Builder builderForValue)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
builderForValue Team.Builder
Returns
Type Description
ListTeamsResponse.Builder

addTeams(int index, Team value)

public ListTeamsResponse.Builder addTeams(int index, Team value)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameters
Name Description
index int
value Team
Returns
Type Description
ListTeamsResponse.Builder

addTeams(int index, Team.Builder builderForValue)

public ListTeamsResponse.Builder addTeams(int index, Team.Builder builderForValue)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameters
Name Description
index int
builderForValue Team.Builder
Returns
Type Description
ListTeamsResponse.Builder

addTeamsBuilder()

public Team.Builder addTeamsBuilder()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
Team.Builder

addTeamsBuilder(int index)

public Team.Builder addTeamsBuilder(int index)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
index int
Returns
Type Description
Team.Builder

build()

public ListTeamsResponse build()
Returns
Type Description
ListTeamsResponse

buildPartial()

public ListTeamsResponse buildPartial()
Returns
Type Description
ListTeamsResponse

clear()

public ListTeamsResponse.Builder clear()
Returns
Type Description
ListTeamsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTeamsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListTeamsResponse.Builder
Overrides

clearNextPageToken()

public ListTeamsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListTeamsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTeamsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTeamsResponse.Builder
Overrides

clearTeams()

public ListTeamsResponse.Builder clearTeams()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
ListTeamsResponse.Builder

clearTotalSize()

public ListTeamsResponse.Builder clearTotalSize()

Total number of Teams. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
ListTeamsResponse.Builder

This builder for chaining.

clone()

public ListTeamsResponse.Builder clone()
Returns
Type Description
ListTeamsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListTeamsResponse getDefaultInstanceForType()
Returns
Type Description
ListTeamsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTeams(int index)

public Team getTeams(int index)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
index int
Returns
Type Description
Team

getTeamsBuilder(int index)

public Team.Builder getTeamsBuilder(int index)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
index int
Returns
Type Description
Team.Builder

getTeamsBuilderList()

public List<Team.Builder> getTeamsBuilderList()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
List<Builder>

getTeamsCount()

public int getTeamsCount()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
int

getTeamsList()

public List<Team> getTeamsList()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
List<Team>

getTeamsOrBuilder(int index)

public TeamOrBuilder getTeamsOrBuilder(int index)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
index int
Returns
Type Description
TeamOrBuilder

getTeamsOrBuilderList()

public List<? extends TeamOrBuilder> getTeamsOrBuilderList()

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.TeamOrBuilder>

getTotalSize()

public int getTotalSize()

Total number of Teams. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTeamsResponse other)

public ListTeamsResponse.Builder mergeFrom(ListTeamsResponse other)
Parameter
Name Description
other ListTeamsResponse
Returns
Type Description
ListTeamsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTeamsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListTeamsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTeamsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTeamsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTeamsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTeamsResponse.Builder
Overrides

removeTeams(int index)

public ListTeamsResponse.Builder removeTeams(int index)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTeamsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTeamsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTeamsResponse.Builder
Overrides

setNextPageToken(String value)

public ListTeamsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTeamsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTeamsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTeamsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListTeamsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListTeamsResponse.Builder
Overrides

setTeams(int index, Team value)

public ListTeamsResponse.Builder setTeams(int index, Team value)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameters
Name Description
index int
value Team
Returns
Type Description
ListTeamsResponse.Builder

setTeams(int index, Team.Builder builderForValue)

public ListTeamsResponse.Builder setTeams(int index, Team.Builder builderForValue)

The Team from the specified network.

repeated .google.ads.admanager.v1.Team teams = 1;

Parameters
Name Description
index int
builderForValue Team.Builder
Returns
Type Description
ListTeamsResponse.Builder

setTotalSize(int value)

public ListTeamsResponse.Builder setTotalSize(int value)

Total number of Teams. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListTeamsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTeamsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTeamsResponse.Builder
Overrides