Class BatchCreateCustomTargetingKeysRequest (0.44.0)

public final class BatchCreateCustomTargetingKeysRequest extends GeneratedMessage implements BatchCreateCustomTargetingKeysRequestOrBuilder

Request object for BatchCreateCustomTargetingKeys method.

Protobuf type google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > BatchCreateCustomTargetingKeysRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

REQUESTS_FIELD_NUMBER

public static final int REQUESTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchCreateCustomTargetingKeysRequest getDefaultInstance()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest

getDescriptor()

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

newBuilder()

public static BatchCreateCustomTargetingKeysRequest.Builder newBuilder()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

newBuilder(BatchCreateCustomTargetingKeysRequest prototype)

public static BatchCreateCustomTargetingKeysRequest.Builder newBuilder(BatchCreateCustomTargetingKeysRequest prototype)
Parameter
Name Description
prototype BatchCreateCustomTargetingKeysRequest
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreateCustomTargetingKeysRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchCreateCustomTargetingKeysRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreateCustomTargetingKeysRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreateCustomTargetingKeysRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchCreateCustomTargetingKeysRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchCreateCustomTargetingKeysRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateCustomTargetingKeysRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateCustomTargetingKeysRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchCreateCustomTargetingKeysRequest> parser()
Returns
Type Description
Parser<BatchCreateCustomTargetingKeysRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchCreateCustomTargetingKeysRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest

getParent()

public String getParent()

Required. The parent resource where CustomTargetingKeys will be created. Format: networks/{network_code} The parent field in the CreateCustomTargetingKeyRequest 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 CustomTargetingKeys will be created. Format: networks/{network_code} The parent field in the CreateCustomTargetingKeyRequest must match this field.

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

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<BatchCreateCustomTargetingKeysRequest> getParserForType()
Returns
Type Description
Parser<BatchCreateCustomTargetingKeysRequest>
Overrides

getRequests(int index)

public CreateCustomTargetingKeyRequest getRequests(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequest

getRequestsCount()

public int getRequestsCount()

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

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

Returns
Type Description
int

getRequestsList()

public List<CreateCustomTargetingKeyRequest> getRequestsList()

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

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

Returns
Type Description
List<CreateCustomTargetingKeyRequest>

getRequestsOrBuilder(int index)

public CreateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
CreateCustomTargetingKeyRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateCustomTargetingKeyRequestOrBuilder> getRequestsOrBuilderList()

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

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

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchCreateCustomTargetingKeysRequest.Builder newBuilderForType()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BatchCreateCustomTargetingKeysRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder
Overrides

toBuilder()

public BatchCreateCustomTargetingKeysRequest.Builder toBuilder()
Returns
Type Description
BatchCreateCustomTargetingKeysRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException