Class CreateCustomTargetingKeyRequest (0.44.0)

public final class CreateCustomTargetingKeyRequest extends GeneratedMessage implements CreateCustomTargetingKeyRequestOrBuilder

Request object for CreateCustomTargetingKey method.

Protobuf type google.ads.admanager.v1.CreateCustomTargetingKeyRequest

Inheritance

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

Static Fields

CUSTOM_TARGETING_KEY_FIELD_NUMBER

public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateCustomTargetingKeyRequest getDefaultInstance()
Returns
Type Description
CreateCustomTargetingKeyRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateCustomTargetingKeyRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCustomTargetingKey()

public CustomTargetingKey getCustomTargetingKey()

Required. The CustomTargetingKey to create.

.google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomTargetingKey

The customTargetingKey.

getCustomTargetingKeyOrBuilder()

public CustomTargetingKeyOrBuilder getCustomTargetingKeyOrBuilder()

Required. The CustomTargetingKey to create.

.google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CustomTargetingKeyOrBuilder

getDefaultInstanceForType()

public CreateCustomTargetingKeyRequest getDefaultInstanceForType()
Returns
Type Description
CreateCustomTargetingKeyRequest

getParent()

public String getParent()

Required. The parent resource where this CustomTargetingKey will be created. Format: networks/{network_code}

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 this CustomTargetingKey will be created. Format: networks/{network_code}

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

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCustomTargetingKey()

public boolean hasCustomTargetingKey()

Required. The CustomTargetingKey to create.

.google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the customTargetingKey field is set.

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 CreateCustomTargetingKeyRequest.Builder newBuilderForType()
Returns
Type Description
CreateCustomTargetingKeyRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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