Class CarrierConstant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
- com.google.ads.googleads.v15.resources.CarrierConstant.Builder
-
- All Implemented Interfaces:
CarrierConstantOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CarrierConstant
public static final class CarrierConstant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder> implements CarrierConstantOrBuilder
A carrier criterion that can be used in campaign targeting.
Protobuf typegoogle.ads.googleads.v15.resources.CarrierConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CarrierConstant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CarrierConstantbuild()CarrierConstantbuildPartial()CarrierConstant.Builderclear()CarrierConstant.BuilderclearCountryCode()Output only.CarrierConstant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CarrierConstant.BuilderclearId()Output only.CarrierConstant.BuilderclearName()Output only.CarrierConstant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CarrierConstant.BuilderclearResourceName()Output only.CarrierConstant.Builderclone()java.lang.StringgetCountryCode()Output only.com.google.protobuf.ByteStringgetCountryCodeBytes()Output only.CarrierConstantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()Output only.java.lang.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.booleanhasCountryCode()Output only.booleanhasId()Output only.booleanhasName()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CarrierConstant.BuildermergeFrom(CarrierConstant other)CarrierConstant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CarrierConstant.BuildermergeFrom(com.google.protobuf.Message other)CarrierConstant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CarrierConstant.BuildersetCountryCode(java.lang.String value)Output only.CarrierConstant.BuildersetCountryCodeBytes(com.google.protobuf.ByteString value)Output only.CarrierConstant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CarrierConstant.BuildersetId(long value)Output only.CarrierConstant.BuildersetName(java.lang.String value)Output only.CarrierConstant.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.CarrierConstant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CarrierConstant.BuildersetResourceName(java.lang.String value)Output only.CarrierConstant.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Output only.CarrierConstant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
clear
public CarrierConstant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
getDefaultInstanceForType
public CarrierConstant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CarrierConstant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CarrierConstant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CarrierConstant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
setField
public CarrierConstant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
clearField
public CarrierConstant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
clearOneof
public CarrierConstant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
setRepeatedField
public CarrierConstant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
addRepeatedField
public CarrierConstant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
mergeFrom
public CarrierConstant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CarrierConstant.Builder>
-
mergeFrom
public CarrierConstant.Builder mergeFrom(CarrierConstant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
mergeFrom
public CarrierConstant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CarrierConstant.Builder>- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the carrier criterion. Carrier criterion resource names have the form: `carrierConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceCarrierConstantOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the carrier criterion. Carrier criterion resource names have the form: `carrierConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceCarrierConstantOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
public CarrierConstant.Builder setResourceName(java.lang.String value)
Output only. The resource name of the carrier criterion. Carrier criterion resource names have the form: `carrierConstants/{criterion_id}`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 CarrierConstant.Builder clearResourceName()
Output only. The resource name of the carrier criterion. Carrier criterion resource names have the form: `carrierConstants/{criterion_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
public CarrierConstant.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the carrier criterion. Carrier criterion resource names have the form: `carrierConstants/{criterion_id}`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.
-
hasId
public boolean hasId()
Output only. The ID of the carrier criterion.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceCarrierConstantOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()
Output only. The ID of the carrier criterion.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceCarrierConstantOrBuilder- Returns:
- The id.
-
setId
public CarrierConstant.Builder setId(long value)
Output only. The ID of the carrier criterion.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public CarrierConstant.Builder clearId()
Output only. The ID of the carrier criterion.
optional int64 id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceCarrierConstantOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceCarrierConstantOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceCarrierConstantOrBuilder- Returns:
- The bytes for name.
-
setName
public CarrierConstant.Builder setName(java.lang.String value)
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CarrierConstant.Builder clearName()
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public CarrierConstant.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The full name of the carrier in English.
optional string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCountryCode
public boolean hasCountryCode()
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCountryCodein interfaceCarrierConstantOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
public java.lang.String getCountryCode()
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCountryCodein interfaceCarrierConstantOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCountryCodeBytesin interfaceCarrierConstantOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
public CarrierConstant.Builder setCountryCode(java.lang.String value)
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
public CarrierConstant.Builder clearCountryCode()
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setCountryCodeBytes
public CarrierConstant.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
Output only. The country code of the country where the carrier is located, for example, "AR", "FR", etc.
optional string country_code = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CarrierConstant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
mergeUnknownFields
public final CarrierConstant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CarrierConstant.Builder>
-
-