public
final
class
GeoTarget
extends
GeneratedMessageV3
implements
GeoTargetOrBuilder
Represents a location in the world, for targeting.
Protobuf type google.ads.admanager.v1.GeoTarget
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GeoTargetImplements
GeoTargetOrBuilderStatic Fields
CANONICAL_PARENT_FIELD_NUMBER
public
static
final
int
CANONICAL_PARENT_FIELD_NUMBER
DISPLAY_NAME_FIELD_NUMBER
public
static
final
int
DISPLAY_NAME_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
PARENT_NAMES_FIELD_NUMBER
public
static
final
int
PARENT_NAMES_FIELD_NUMBER
REGION_CODE_FIELD_NUMBER
public
static
final
int
REGION_CODE_FIELD_NUMBER
TARGETABLE_FIELD_NUMBER
public
static
final
int
TARGETABLE_FIELD_NUMBER
TYPE_FIELD_NUMBER
public
static
final
int
TYPE_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
GeoTarget
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
GeoTarget
.
Builder
newBuilder
()
newBuilder(GeoTarget prototype)
public
static
GeoTarget
.
Builder
newBuilder
(
GeoTarget
prototype
)
parseDelimitedFrom(InputStream input)
public
static
GeoTarget
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
GeoTarget
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
GeoTarget
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
GeoTarget
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
GeoTarget
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
GeoTarget
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
GeoTarget
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<GeoTarget>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getCanonicalParent()
public
String
getCanonicalParent
()
Output only. The name of the direct parent that defines the canonical name
of the geo target. For example, if the current geo target is "San
Francisco", its canonical name would be "San Francisco, California, United
States" thus the canonical_parent would be the name of California and the
canonical_parent of California would be the name of United states Format: networks/{network_code}/geoTargets/{geo_target}
optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getCanonicalParentBytes()
public
ByteString
getCanonicalParentBytes
()
Output only. The name of the direct parent that defines the canonical name
of the geo target. For example, if the current geo target is "San
Francisco", its canonical name would be "San Francisco, California, United
States" thus the canonical_parent would be the name of California and the
canonical_parent of California would be the name of United states Format: networks/{network_code}/geoTargets/{geo_target}
optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getDefaultInstanceForType()
public
GeoTarget
getDefaultInstanceForType
()
getDisplayName()
public
String
getDisplayName
()
Output only. The display name of the GeoTarget.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDisplayNameBytes()
public
ByteString
getDisplayNameBytes
()
Output only. The display name of the GeoTarget.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName()
public
String
getName
()
Identifier. The resource name of the GeoTarget
.
Format: networks/{network_code}/geoTargets/{geo_target_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getNameBytes()
public
ByteString
getNameBytes
()
Identifier. The resource name of the GeoTarget
.
Format: networks/{network_code}/geoTargets/{geo_target_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getParentNames(int index)
public
String
getParentNames
(
int
index
)
Output only. All parents of the geo target ordered by ascending size.
repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentNamesBytes(int index)
public
ByteString
getParentNamesBytes
(
int
index
)
Output only. All parents of the geo target ordered by ascending size.
repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentNamesCount()
public
int
getParentNamesCount
()
Output only. All parents of the geo target ordered by ascending size.
repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParentNamesList()
public
ProtocolStringList
getParentNamesList
()
Output only. All parents of the geo target ordered by ascending size.
repeated string parent_names = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
public
Parser<GeoTarget>
getParserForType
()
getRegionCode()
public
String
getRegionCode
()
Output only. The Unicode CLDR region code of the geo target.
optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getRegionCodeBytes()
public
ByteString
getRegionCodeBytes
()
Output only. The Unicode CLDR region code of the geo target.
optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public
int
getSerializedSize
()
getTargetable()
public
boolean
getTargetable
()
Output only. Whether the geo target is targetable.
optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getType()
public
String
getType
()
Output only. The location type (unlocalized) for this geographical entity.
optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTypeBytes()
public
ByteString
getTypeBytes
()
Output only. The location type (unlocalized) for this geographical entity.
optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCanonicalParent()
public
boolean
hasCanonicalParent
()
Output only. The name of the direct parent that defines the canonical name
of the geo target. For example, if the current geo target is "San
Francisco", its canonical name would be "San Francisco, California, United
States" thus the canonical_parent would be the name of California and the
canonical_parent of California would be the name of United states Format: networks/{network_code}/geoTargets/{geo_target}
optional string canonical_parent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
hasDisplayName()
public
boolean
hasDisplayName
()
Output only. The display name of the GeoTarget.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasRegionCode()
public
boolean
hasRegionCode
()
Output only. The Unicode CLDR region code of the geo target.
optional string region_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasTargetable()
public
boolean
hasTargetable
()
Output only. Whether the geo target is targetable.
optional bool targetable = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasType()
public
boolean
hasType
()
Output only. The location type (unlocalized) for this geographical entity.
optional string type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
GeoTarget
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
GeoTarget
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
GeoTarget
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)