Class CmsContent (0.54.0)

public final class CmsContent extends GeneratedMessage implements CmsContentOrBuilder

Contains information about the Content from the CMS it was ingested from.

Protobuf type google.ads.admanager.v1.CmsContent

Implements

CmsContentOrBuilder

Static Fields

CMS_CONTENT_ID_FIELD_NUMBER

public static final int CMS_CONTENT_ID_FIELD_NUMBER
Field Value
Type Description
int

CONTENT_SOURCE_DISPLAY_NAME_FIELD_NUMBER

public static final int CONTENT_SOURCE_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

CONTENT_SOURCE_FIELD_NUMBER

public static final int CONTENT_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CmsContent getDefaultInstance()
Returns
Type Description
CmsContent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CmsContent.Builder newBuilder()
Returns
Type Description
CmsContent.Builder

newBuilder(CmsContent prototype)

public static CmsContent.Builder newBuilder(CmsContent prototype)
Parameter
Name Description
prototype CmsContent
Returns
Type Description
CmsContent.Builder

parseDelimitedFrom(InputStream input)

public static CmsContent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CmsContent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CmsContent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CmsContent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CmsContent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CmsContent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CmsContent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CmsContent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CmsContent> parser()
Returns
Type Description
Parser<CmsContent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<CmsContent> getParserForType()
Returns
Type Description
Parser<CmsContent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CmsContent.Builder newBuilderForType()
Returns
Type Description
CmsContent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CmsContent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CmsContent.Builder
Overrides

toBuilder()

public CmsContent.Builder toBuilder()
Returns
Type Description
CmsContent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException