Class BatchCreateLineItemsRequest.Builder (0.62.0)

public static final class BatchCreateLineItemsRequest.Builder extends GeneratedMessage.Builder<BatchCreateLineItemsRequest.Builder> implements BatchCreateLineItemsRequestOrBuilder

Request object for BatchCreateLineItems method.

Protobuf type google.ads.admanager.v1.BatchCreateLineItemsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateLineItemRequest> values)

public BatchCreateLineItemsRequest.Builder addAllRequests(Iterable<? extends CreateLineItemRequest> values)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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

addRequests(CreateLineItemRequest value)

public BatchCreateLineItemsRequest.Builder addRequests(CreateLineItemRequest value)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreateLineItemRequest
Returns
Type Description
BatchCreateLineItemsRequest.Builder

addRequests(CreateLineItemRequest.Builder builderForValue)

public BatchCreateLineItemsRequest.Builder addRequests(CreateLineItemRequest.Builder builderForValue)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreateLineItemRequest.Builder
Returns
Type Description
BatchCreateLineItemsRequest.Builder

addRequests(int index, CreateLineItemRequest value)

public BatchCreateLineItemsRequest.Builder addRequests(int index, CreateLineItemRequest value)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateLineItemRequest
Returns
Type Description
BatchCreateLineItemsRequest.Builder

addRequests(int index, CreateLineItemRequest.Builder builderForValue)

public BatchCreateLineItemsRequest.Builder addRequests(int index, CreateLineItemRequest.Builder builderForValue)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateLineItemRequest.Builder
Returns
Type Description
BatchCreateLineItemsRequest.Builder

addRequestsBuilder()

public CreateLineItemRequest.Builder addRequestsBuilder()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateLineItemRequest.Builder

addRequestsBuilder(int index)

public CreateLineItemRequest.Builder addRequestsBuilder(int index)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateLineItemRequest.Builder

build()

public BatchCreateLineItemsRequest build()
Returns
Type Description
BatchCreateLineItemsRequest

buildPartial()

public BatchCreateLineItemsRequest buildPartial()
Returns
Type Description
BatchCreateLineItemsRequest

clear()

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

clearParent()

public BatchCreateLineItemsRequest.Builder clearParent()

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BatchCreateLineItemsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateLineItemsRequest.Builder clearRequests()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreateLineItemsRequest.Builder

getDefaultInstanceForType()

public BatchCreateLineItemsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateLineItemsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public CreateLineItemRequest getRequests(int index)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateLineItemRequest

getRequestsBuilder(int index)

public CreateLineItemRequest.Builder getRequestsBuilder(int index)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateLineItemRequest.Builder

getRequestsBuilderList()

public List<CreateLineItemRequest.Builder> getRequestsBuilderList()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreateLineItemRequest> getRequestsList()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreateLineItemRequest>

getRequestsOrBuilder(int index)

public CreateLineItemRequestOrBuilder getRequestsOrBuilder(int index)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateLineItemRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateLineItemRequestOrBuilder> getRequestsOrBuilderList()

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateLineItemsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreateLineItemsRequest.Builder removeRequests(int index)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreateLineItemsRequest.Builder

setParent(String value)

public BatchCreateLineItemsRequest.Builder setParent(String value)

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchCreateLineItemsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateLineItemsRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where LineItems will be created. Format: networks/{network_code} The parent field in the CreateLineItemRequest must match this field.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchCreateLineItemsRequest.Builder

This builder for chaining.

setRequests(int index, CreateLineItemRequest value)

public BatchCreateLineItemsRequest.Builder setRequests(int index, CreateLineItemRequest value)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateLineItemRequest
Returns
Type Description
BatchCreateLineItemsRequest.Builder

setRequests(int index, CreateLineItemRequest.Builder builderForValue)

public BatchCreateLineItemsRequest.Builder setRequests(int index, CreateLineItemRequest.Builder builderForValue)

Required. The LineItem objects to create. A maximum of 100 objects can be created in a batch.

repeated .google.ads.admanager.v1.CreateLineItemRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateLineItemRequest.Builder
Returns
Type Description
BatchCreateLineItemsRequest.Builder