Class GenerateTextRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v22.services.GenerateTextRequest
- All Implemented Interfaces:
GenerateTextRequestOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class GenerateTextRequest
extends com.google.protobuf.GeneratedMessageV3
implements GenerateTextRequestOrBuilder
Request message for [AssetGenerationService.GenerateText][google.ads.googleads.v22.services.AssetGenerationService.GenerateText]Protobuf type
google.ads.googleads.v22.services.GenerateTextRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for [AssetGenerationService.GenerateText][google.ads.googleads.v22.services.AssetGenerationService.GenerateText]static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter, com.google.protobuf.GeneratedMessage.ExtendableMessage.FieldEntryNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object> Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.intOptional.getAssetFieldTypes(int index) Required.intRequired.Required.intgetAssetFieldTypesValue(int index) Required.Required.Required.com.google.protobuf.ByteStringRequired.static GenerateTextRequeststatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getKeywords(int index) Optional.com.google.protobuf.ByteStringgetKeywordsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.protobuf.Parser<GenerateTextRequest>intbooleanOptional.booleanOptional.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic GenerateTextRequest.Builderstatic GenerateTextRequest.BuildernewBuilder(GenerateTextRequest prototype) protected GenerateTextRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static GenerateTextRequestparseDelimitedFrom(InputStream input) static GenerateTextRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateTextRequestparseFrom(byte[] data) static GenerateTextRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateTextRequestparseFrom(com.google.protobuf.ByteString data) static GenerateTextRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateTextRequestparseFrom(com.google.protobuf.CodedInputStream input) static GenerateTextRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateTextRequestparseFrom(InputStream input) static GenerateTextRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerateTextRequestparseFrom(ByteBuffer data) static GenerateTextRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GenerateTextRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongListMethods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsIterator, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriterMethods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtensionMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CUSTOMER_ID_FIELD_NUMBER
public static final int CUSTOMER_ID_FIELD_NUMBER- See Also:
-
ASSET_FIELD_TYPES_FIELD_NUMBER
public static final int ASSET_FIELD_TYPES_FIELD_NUMBER- See Also:
-
FINAL_URL_FIELD_NUMBER
public static final int FINAL_URL_FIELD_NUMBER- See Also:
-
FREEFORM_PROMPT_FIELD_NUMBER
public static final int FREEFORM_PROMPT_FIELD_NUMBER- See Also:
-
KEYWORDS_FIELD_NUMBER
public static final int KEYWORDS_FIELD_NUMBER- See Also:
-
EXISTING_GENERATION_CONTEXT_FIELD_NUMBER
public static final int EXISTING_GENERATION_CONTEXT_FIELD_NUMBER- See Also:
-
ADVERTISING_CHANNEL_TYPE_FIELD_NUMBER
public static final int ADVERTISING_CHANNEL_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getContextCase
- Specified by:
getContextCasein interfaceGenerateTextRequestOrBuilder
-
getCustomerId
Required. The ID of the customer to generate assets for. Required.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdin interfaceGenerateTextRequestOrBuilder- Returns:
- The customerId.
-
getCustomerIdBytes
public com.google.protobuf.ByteString getCustomerIdBytes()Required. The ID of the customer to generate assets for. Required.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdBytesin interfaceGenerateTextRequestOrBuilder- Returns:
- The bytes for customerId.
-
getAssetFieldTypesList
Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssetFieldTypesListin interfaceGenerateTextRequestOrBuilder- Returns:
- A list containing the assetFieldTypes.
-
getAssetFieldTypesCount
public int getAssetFieldTypesCount()Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssetFieldTypesCountin interfaceGenerateTextRequestOrBuilder- Returns:
- The count of assetFieldTypes.
-
getAssetFieldTypes
Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssetFieldTypesin interfaceGenerateTextRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assetFieldTypes at the given index.
-
getAssetFieldTypesValueList
Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssetFieldTypesValueListin interfaceGenerateTextRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for assetFieldTypes.
-
getAssetFieldTypesValue
public int getAssetFieldTypesValue(int index) Required. Which field types text is being generated for. Supported values are: HEADLINE, LONG_HEADLINE, DESCRIPTION. Required.
repeated .google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType asset_field_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssetFieldTypesValuein interfaceGenerateTextRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of assetFieldTypes at the given index.
-
getFinalUrl
Optional. Final url to use as a source for generating assets. Required if existing_generation_context is not provided or does not have a final url associated with it.
string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFinalUrlin interfaceGenerateTextRequestOrBuilder- Returns:
- The finalUrl.
-
getFinalUrlBytes
public com.google.protobuf.ByteString getFinalUrlBytes()Optional. Final url to use as a source for generating assets. Required if existing_generation_context is not provided or does not have a final url associated with it.
string final_url = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFinalUrlBytesin interfaceGenerateTextRequestOrBuilder- Returns:
- The bytes for finalUrl.
-
getFreeformPrompt
Optional. A freeform description of what assets should be generated. The string length must be between 1 and 1500, inclusive.
string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFreeformPromptin interfaceGenerateTextRequestOrBuilder- Returns:
- The freeformPrompt.
-
getFreeformPromptBytes
public com.google.protobuf.ByteString getFreeformPromptBytes()Optional. A freeform description of what assets should be generated. The string length must be between 1 and 1500, inclusive.
string freeform_prompt = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFreeformPromptBytesin interfaceGenerateTextRequestOrBuilder- Returns:
- The bytes for freeformPrompt.
-
getKeywordsList
public com.google.protobuf.ProtocolStringList getKeywordsList()Optional. A freeform list of keywords that are relevant, used to inform asset generation.
repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeywordsListin interfaceGenerateTextRequestOrBuilder- Returns:
- A list containing the keywords.
-
getKeywordsCount
public int getKeywordsCount()Optional. A freeform list of keywords that are relevant, used to inform asset generation.
repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeywordsCountin interfaceGenerateTextRequestOrBuilder- Returns:
- The count of keywords.
-
getKeywords
Optional. A freeform list of keywords that are relevant, used to inform asset generation.
repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeywordsin interfaceGenerateTextRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The keywords at the given index.
-
getKeywordsBytes
public com.google.protobuf.ByteString getKeywordsBytes(int index) Optional. A freeform list of keywords that are relevant, used to inform asset generation.
repeated string keywords = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeywordsBytesin interfaceGenerateTextRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the keywords at the given index.
-
hasExistingGenerationContext
public boolean hasExistingGenerationContext()Optional. The setting for which assets are being generated, such as an existing AssetGroup or AdGroupAd.
.google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExistingGenerationContextin interfaceGenerateTextRequestOrBuilder- Returns:
- Whether the existingGenerationContext field is set.
-
getExistingGenerationContext
Optional. The setting for which assets are being generated, such as an existing AssetGroup or AdGroupAd.
.google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExistingGenerationContextin interfaceGenerateTextRequestOrBuilder- Returns:
- The existingGenerationContext.
-
getExistingGenerationContextOrBuilder
Optional. The setting for which assets are being generated, such as an existing AssetGroup or AdGroupAd.
.google.ads.googleads.v22.services.AssetGenerationExistingContext existing_generation_context = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExistingGenerationContextOrBuilderin interfaceGenerateTextRequestOrBuilder
-
hasAdvertisingChannelType
public boolean hasAdvertisingChannelType()Optional. The advertising channel for which to generate assets. Required if existing_context is not provided. Supported channel types: SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
.google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAdvertisingChannelTypein interfaceGenerateTextRequestOrBuilder- Returns:
- Whether the advertisingChannelType field is set.
-
getAdvertisingChannelTypeValue
public int getAdvertisingChannelTypeValue()Optional. The advertising channel for which to generate assets. Required if existing_context is not provided. Supported channel types: SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
.google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdvertisingChannelTypeValuein interfaceGenerateTextRequestOrBuilder- Returns:
- The enum numeric value on the wire for advertisingChannelType.
-
getAdvertisingChannelType
Optional. The advertising channel for which to generate assets. Required if existing_context is not provided. Supported channel types: SEARCH, PERFORMANCE_MAX, DISPLAY, and DEMAND_GEN
.google.ads.googleads.v22.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdvertisingChannelTypein interfaceGenerateTextRequestOrBuilder- Returns:
- The advertisingChannelType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerateTextRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateTextRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateTextRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateTextRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateTextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateTextRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GenerateTextRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GenerateTextRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateTextRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateTextRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerateTextRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-