public static final class CmsContent.Builder extends GeneratedMessage.Builder<CmsContent.Builder> implements CmsContentOrBuilder Contains information about the Content from the CMS it was ingested from.
Protobuf type google.ads.admanager.v1.CmsContent
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CmsContent.BuilderImplements
CmsContentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CmsContent build()| Returns | |
|---|---|
| Type | Description |
CmsContent |
|
buildPartial()
public CmsContent buildPartial()| Returns | |
|---|---|
| Type | Description |
CmsContent |
|
clear()
public CmsContent.Builder clear()| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
|
clearCmsContentId()
public CmsContent.Builder clearCmsContentId() The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
clearContentSource()
public CmsContent.Builder clearContentSource()Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
clearContentSourceDisplayName()
public CmsContent.Builder clearContentSourceDisplayName()Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
getCmsContentId()
public String getCmsContentId() The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The cmsContentId. |
getCmsContentIdBytes()
public ByteString getCmsContentIdBytes() The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cmsContentId. |
getContentSource()
public String getContentSource()Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The contentSource. |
getContentSourceBytes()
public ByteString getContentSourceBytes()Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentSource. |
getContentSourceDisplayName()
public String getContentSourceDisplayName()Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The contentSourceDisplayName. |
getContentSourceDisplayNameBytes()
public ByteString getContentSourceDisplayNameBytes()Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentSourceDisplayName. |
getDefaultInstanceForType()
public CmsContent getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CmsContent |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasCmsContentId()
public boolean hasCmsContentId() The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cmsContentId field is set. |
hasContentSource()
public boolean hasContentSource()Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentSource field is set. |
hasContentSourceDisplayName()
public boolean hasContentSourceDisplayName()Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentSourceDisplayName field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CmsContent other)
public CmsContent.Builder mergeFrom(CmsContent other)| Parameter | |
|---|---|
| Name | Description |
other |
CmsContent |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CmsContent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CmsContent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
|
setCmsContentId(String value)
public CmsContent.Builder setCmsContentId(String value) The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cmsContentId to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
setCmsContentIdBytes(ByteString value)
public CmsContent.Builder setCmsContentIdBytes(ByteString value) The ID of the Content in the CMS. This ID will be a 3rd party ID,
usually the ID of the content in a CMS (Content Management System).
optional string cms_content_id = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cmsContentId to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
setContentSource(String value)
public CmsContent.Builder setContentSource(String value)Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contentSource to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
setContentSourceBytes(ByteString value)
public CmsContent.Builder setContentSourceBytes(ByteString value)Output only. The resource name of the ContentSource this content was ingested from.
optional string content_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contentSource to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
setContentSourceDisplayName(String value)
public CmsContent.Builder setContentSourceDisplayName(String value)Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contentSourceDisplayName to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |
setContentSourceDisplayNameBytes(ByteString value)
public CmsContent.Builder setContentSourceDisplayNameBytes(ByteString value)Output only. The display name of the ContentSource this content was ingested from.
optional string content_source_display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contentSourceDisplayName to set. |
| Returns | |
|---|---|
| Type | Description |
CmsContent.Builder |
This builder for chaining. |