Class BuyerPlacementConfig (0.62.0)

public final class BuyerPlacementConfig extends GeneratedMessage implements BuyerPlacementConfigOrBuilder

Represents the buyer placement configuration for a creative.

Protobuf type google.ads.admanager.v1.BuyerPlacementConfig

Static Fields

PLACEMENT_DISPLAY_NAME_FIELD_NUMBER

public static final int PLACEMENT_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

PLACEMENT_ID_FIELD_NUMBER

public static final int PLACEMENT_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BuyerPlacementConfig getDefaultInstance()
Returns
Type Description
BuyerPlacementConfig

getDescriptor()

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

newBuilder()

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

newBuilder(BuyerPlacementConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BuyerPlacementConfig getDefaultInstanceForType()
Returns
Type Description
BuyerPlacementConfig

getParserForType()

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

getPlacementDisplayName()

public String getPlacementDisplayName()

Optional. The name of the buyer placement.

optional string placement_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The placementDisplayName.

getPlacementDisplayNameBytes()

public ByteString getPlacementDisplayNameBytes()

Optional. The name of the buyer placement.

optional string placement_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for placementDisplayName.

getPlacementId()

public String getPlacementId()

Optional. The ID of the buyer placement.

optional string placement_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The placementId.

getPlacementIdBytes()

public ByteString getPlacementIdBytes()

Optional. The ID of the buyer placement.

optional string placement_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for placementId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasPlacementDisplayName()

public boolean hasPlacementDisplayName()

Optional. The name of the buyer placement.

optional string placement_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the placementDisplayName field is set.

hasPlacementId()

public boolean hasPlacementId()

Optional. The ID of the buyer placement.

optional string placement_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the placementId 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 BuyerPlacementConfig.Builder newBuilderForType()
Returns
Type Description
BuyerPlacementConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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