Class GeographicView.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
- com.google.ads.googleads.v9.resources.GeographicView.Builder
-
- All Implemented Interfaces:
GeographicViewOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- GeographicView
public static final class GeographicView.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder> implements GeographicViewOrBuilder
A geographic view. Geographic View includes all metrics aggregated at the country level, one row per country. It reports metrics at either actual physical location of the user or an area of interest. If other segment fields are used, you may get more than one row per country.
Protobuf typegoogle.ads.googleads.v9.resources.GeographicView
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GeographicView.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
GeographicView
build()
GeographicView
buildPartial()
GeographicView.Builder
clear()
GeographicView.Builder
clearCountryCriterionId()
Output only.GeographicView.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GeographicView.Builder
clearLocationType()
Output only.GeographicView.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GeographicView.Builder
clearResourceName()
Output only.GeographicView.Builder
clone()
long
getCountryCriterionId()
Output only.GeographicView
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
GeoTargetingTypeEnum.GeoTargetingType
getLocationType()
Output only.int
getLocationTypeValue()
Output only.java.lang.String
getResourceName()
Output only.com.google.protobuf.ByteString
getResourceNameBytes()
Output only.boolean
hasCountryCriterionId()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GeographicView.Builder
mergeFrom(GeographicView other)
GeographicView.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GeographicView.Builder
mergeFrom(com.google.protobuf.Message other)
GeographicView.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GeographicView.Builder
setCountryCriterionId(long value)
Output only.GeographicView.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
GeographicView.Builder
setLocationType(GeoTargetingTypeEnum.GeoTargetingType value)
Output only.GeographicView.Builder
setLocationTypeValue(int value)
Output only.GeographicView.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
GeographicView.Builder
setResourceName(java.lang.String value)
Output only.GeographicView.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Output only.GeographicView.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
clear
public GeographicView.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
getDefaultInstanceForType
public GeographicView getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GeographicView build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GeographicView buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GeographicView.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
setField
public GeographicView.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
clearField
public GeographicView.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
clearOneof
public GeographicView.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
setRepeatedField
public GeographicView.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
addRepeatedField
public GeographicView.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
mergeFrom
public GeographicView.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GeographicView.Builder>
-
mergeFrom
public GeographicView.Builder mergeFrom(GeographicView other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
mergeFrom
public GeographicView.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GeographicView.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the geographic view. Geographic view resource names have the form: `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceGeographicViewOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the geographic view. Geographic view resource names have the form: `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceGeographicViewOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public GeographicView.Builder setResourceName(java.lang.String value)
Output only. The resource name of the geographic view. Geographic view resource names have the form: `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public GeographicView.Builder clearResourceName()
Output only. The resource name of the geographic view. Geographic view resource names have the form: `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public GeographicView.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the geographic view. Geographic view resource names have the form: `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}`
string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getLocationTypeValue
public int getLocationTypeValue()
Output only. Type of the geo targeting of the campaign.
.google.ads.googleads.v9.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLocationTypeValue
in interfaceGeographicViewOrBuilder
- Returns:
- The enum numeric value on the wire for locationType.
-
setLocationTypeValue
public GeographicView.Builder setLocationTypeValue(int value)
Output only. Type of the geo targeting of the campaign.
.google.ads.googleads.v9.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for locationType to set.- Returns:
- This builder for chaining.
-
getLocationType
public GeoTargetingTypeEnum.GeoTargetingType getLocationType()
Output only. Type of the geo targeting of the campaign.
.google.ads.googleads.v9.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLocationType
in interfaceGeographicViewOrBuilder
- Returns:
- The locationType.
-
setLocationType
public GeographicView.Builder setLocationType(GeoTargetingTypeEnum.GeoTargetingType value)
Output only. Type of the geo targeting of the campaign.
.google.ads.googleads.v9.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The locationType to set.- Returns:
- This builder for chaining.
-
clearLocationType
public GeographicView.Builder clearLocationType()
Output only. Type of the geo targeting of the campaign.
.google.ads.googleads.v9.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasCountryCriterionId
public boolean hasCountryCriterionId()
Output only. Criterion Id for the country.
optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCountryCriterionId
in interfaceGeographicViewOrBuilder
- Returns:
- Whether the countryCriterionId field is set.
-
getCountryCriterionId
public long getCountryCriterionId()
Output only. Criterion Id for the country.
optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCountryCriterionId
in interfaceGeographicViewOrBuilder
- Returns:
- The countryCriterionId.
-
setCountryCriterionId
public GeographicView.Builder setCountryCriterionId(long value)
Output only. Criterion Id for the country.
optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The countryCriterionId to set.- Returns:
- This builder for chaining.
-
clearCountryCriterionId
public GeographicView.Builder clearCountryCriterionId()
Output only. Criterion Id for the country.
optional int64 country_criterion_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final GeographicView.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
mergeUnknownFields
public final GeographicView.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GeographicView.Builder>
-
-