Class BrandInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
com.google.ads.googleads.v18.common.BrandInfo.Builder
- All Implemented Interfaces:
BrandInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BrandInfo
public static final class BrandInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
implements BrandInfoOrBuilder
Represents a Brand Criterion used for targeting based on commercial knowledge graph.Protobuf type
google.ads.googleads.v18.common.BrandInfo-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.The Commercial KG MID for the brand.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Output only.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.The Commercial KG MID for the brand.com.google.protobuf.ByteStringThe Commercial KG MID for the brand.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.intOutput only.booleanOutput only.booleanThe Commercial KG MID for the brand.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final BrandInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.setEntityId(String value) The Commercial KG MID for the brand.setEntityIdBytes(com.google.protobuf.ByteString value) The Commercial KG MID for the brand.setPrimaryUrl(String value) Output only.setPrimaryUrlBytes(com.google.protobuf.ByteString value) Output only.Output only.setRejectionReasonValue(int value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Output only.setStatusValue(int value) Output only.final BrandInfo.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<BrandInfo.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<BrandInfo.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<BrandInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<BrandInfo.Builder>
-
setField
public BrandInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
setRepeatedField
public BrandInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
addRepeatedField
public BrandInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BrandInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
mergeFrom
public BrandInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BrandInfo.Builder>- Throws:
IOException
-
hasDisplayName
public boolean hasDisplayName()Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDisplayNamein interfaceBrandInfoOrBuilder- Returns:
- Whether the displayName field is set.
-
getDisplayName
Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceBrandInfoOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNameBytesin interfaceBrandInfoOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Output only. A text representation of a brand.
optional string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasEntityId
public boolean hasEntityId()The Commercial KG MID for the brand.
optional string entity_id = 1;- Specified by:
hasEntityIdin interfaceBrandInfoOrBuilder- Returns:
- Whether the entityId field is set.
-
getEntityId
The Commercial KG MID for the brand.
optional string entity_id = 1;- Specified by:
getEntityIdin interfaceBrandInfoOrBuilder- Returns:
- The entityId.
-
getEntityIdBytes
public com.google.protobuf.ByteString getEntityIdBytes()The Commercial KG MID for the brand.
optional string entity_id = 1;- Specified by:
getEntityIdBytesin interfaceBrandInfoOrBuilder- Returns:
- The bytes for entityId.
-
setEntityId
The Commercial KG MID for the brand.
optional string entity_id = 1;- Parameters:
value- The entityId to set.- Returns:
- This builder for chaining.
-
clearEntityId
The Commercial KG MID for the brand.
optional string entity_id = 1;- Returns:
- This builder for chaining.
-
setEntityIdBytes
The Commercial KG MID for the brand.
optional string entity_id = 1;- Parameters:
value- The bytes for entityId to set.- Returns:
- This builder for chaining.
-
hasPrimaryUrl
public boolean hasPrimaryUrl()Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPrimaryUrlin interfaceBrandInfoOrBuilder- Returns:
- Whether the primaryUrl field is set.
-
getPrimaryUrl
Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryUrlin interfaceBrandInfoOrBuilder- Returns:
- The primaryUrl.
-
getPrimaryUrlBytes
public com.google.protobuf.ByteString getPrimaryUrlBytes()Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPrimaryUrlBytesin interfaceBrandInfoOrBuilder- Returns:
- The bytes for primaryUrl.
-
setPrimaryUrl
Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The primaryUrl to set.- Returns:
- This builder for chaining.
-
clearPrimaryUrl
Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setPrimaryUrlBytes
Output only. The primary url of a brand.
optional string primary_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for primaryUrl to set.- Returns:
- This builder for chaining.
-
hasRejectionReason
public boolean hasRejectionReason()Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRejectionReasonin interfaceBrandInfoOrBuilder- Returns:
- Whether the rejectionReason field is set.
-
getRejectionReasonValue
public int getRejectionReasonValue()Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRejectionReasonValuein interfaceBrandInfoOrBuilder- Returns:
- The enum numeric value on the wire for rejectionReason.
-
setRejectionReasonValue
Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for rejectionReason to set.- Returns:
- This builder for chaining.
-
getRejectionReason
Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRejectionReasonin interfaceBrandInfoOrBuilder- Returns:
- The rejectionReason.
-
setRejectionReason
public BrandInfo.Builder setRejectionReason(BrandRequestRejectionReasonEnum.BrandRequestRejectionReason value) Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The rejectionReason to set.- Returns:
- This builder for chaining.
-
clearRejectionReason
Output only. The rejection reason when a brand status is REJECTED.
optional .google.ads.googleads.v18.enums.BrandRequestRejectionReasonEnum.BrandRequestRejectionReason rejection_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStatusin interfaceBrandInfoOrBuilder- Returns:
- Whether the status field is set.
-
getStatusValue
public int getStatusValue()Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceBrandInfoOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceBrandInfoOrBuilder- Returns:
- The status.
-
setStatus
Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. The status of a brand.
optional .google.ads.googleads.v18.enums.BrandStateEnum.BrandState status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-
mergeUnknownFields
public final BrandInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BrandInfo.Builder>
-