Class BatchCreateNativeStylesRequest.Builder (0.58.0)

public static final class BatchCreateNativeStylesRequest.Builder extends GeneratedMessage.Builder<BatchCreateNativeStylesRequest.Builder> implements BatchCreateNativeStylesRequestOrBuilder

Request object for BatchCreateNativeStyles method.

Protobuf type google.ads.admanager.v1.BatchCreateNativeStylesRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateNativeStyleRequest> values)

public BatchCreateNativeStylesRequest.Builder addAllRequests(Iterable<? extends CreateNativeStyleRequest> values)

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

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

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

addRequests(CreateNativeStyleRequest value)

public BatchCreateNativeStylesRequest.Builder addRequests(CreateNativeStyleRequest value)

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

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

Parameter
Name Description
value CreateNativeStyleRequest
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

addRequests(CreateNativeStyleRequest.Builder builderForValue)

public BatchCreateNativeStylesRequest.Builder addRequests(CreateNativeStyleRequest.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue CreateNativeStyleRequest.Builder
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

addRequests(int index, CreateNativeStyleRequest value)

public BatchCreateNativeStylesRequest.Builder addRequests(int index, CreateNativeStyleRequest value)

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

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

Parameters
Name Description
index int
value CreateNativeStyleRequest
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

addRequests(int index, CreateNativeStyleRequest.Builder builderForValue)

public BatchCreateNativeStylesRequest.Builder addRequests(int index, CreateNativeStyleRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateNativeStyleRequest.Builder
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

addRequestsBuilder()

public CreateNativeStyleRequest.Builder addRequestsBuilder()

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

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

Returns
Type Description
CreateNativeStyleRequest.Builder

addRequestsBuilder(int index)

public CreateNativeStyleRequest.Builder addRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateNativeStyleRequest.Builder

build()

public BatchCreateNativeStylesRequest build()
Returns
Type Description
BatchCreateNativeStylesRequest

buildPartial()

public BatchCreateNativeStylesRequest buildPartial()
Returns
Type Description
BatchCreateNativeStylesRequest

clear()

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

clearParent()

public BatchCreateNativeStylesRequest.Builder clearParent()

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

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

Returns
Type Description
BatchCreateNativeStylesRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateNativeStylesRequest.Builder clearRequests()

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

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

Returns
Type Description
BatchCreateNativeStylesRequest.Builder

getDefaultInstanceForType()

public BatchCreateNativeStylesRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateNativeStylesRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where NativeStyles will be created. Format: networks/{network_code} The parent field in the CreateNativeStyleRequest 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 NativeStyles will be created. Format: networks/{network_code} The parent field in the CreateNativeStyleRequest 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 CreateNativeStyleRequest getRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateNativeStyleRequest

getRequestsBuilder(int index)

public CreateNativeStyleRequest.Builder getRequestsBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateNativeStyleRequest.Builder

getRequestsBuilderList()

public List<CreateNativeStyleRequest.Builder> getRequestsBuilderList()

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

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

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<CreateNativeStyleRequest> getRequestsList()

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

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

Returns
Type Description
List<CreateNativeStyleRequest>

getRequestsOrBuilder(int index)

public CreateNativeStyleRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateNativeStyleRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateNativeStyleRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateNativeStylesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreateNativeStylesRequest.Builder removeRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

setParent(String value)

public BatchCreateNativeStylesRequest.Builder setParent(String value)

Required. The parent resource where NativeStyles will be created. Format: networks/{network_code} The parent field in the CreateNativeStyleRequest 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
BatchCreateNativeStylesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateNativeStylesRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where NativeStyles will be created. Format: networks/{network_code} The parent field in the CreateNativeStyleRequest 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
BatchCreateNativeStylesRequest.Builder

This builder for chaining.

setRequests(int index, CreateNativeStyleRequest value)

public BatchCreateNativeStylesRequest.Builder setRequests(int index, CreateNativeStyleRequest value)

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

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

Parameters
Name Description
index int
value CreateNativeStyleRequest
Returns
Type Description
BatchCreateNativeStylesRequest.Builder

setRequests(int index, CreateNativeStyleRequest.Builder builderForValue)

public BatchCreateNativeStylesRequest.Builder setRequests(int index, CreateNativeStyleRequest.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue CreateNativeStyleRequest.Builder
Returns
Type Description
BatchCreateNativeStylesRequest.Builder