Class CmsMetadataValue (0.39.0)

public final class CmsMetadataValue extends GeneratedMessageV3 implements CmsMetadataValueOrBuilder

Key value pair associated with a piece of content from a publisher's CMS.

Protobuf type google.ads.admanager.v1.CmsMetadataValue

Static Fields

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CmsMetadataValue getDefaultInstance()
Returns
Type Description
CmsMetadataValue

getDescriptor()

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

newBuilder()

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

newBuilder(CmsMetadataValue prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CmsMetadataValue getDefaultInstanceForType()
Returns
Type Description
CmsMetadataValue

getDisplayName()

public String getDisplayName()

The value of this key-value pair.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The value of this key-value pair.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getKey()

public String getKey()

Required. Immutable. The resource name of the CmsMetadataKey. Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"

string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Immutable. The resource name of the CmsMetadataKey. Format: "networks/{network_code}/cmsMetadataKey/{cms_metadata_key_id}"

string key = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for key.

getName()

public String getName()

Identifier. The resource name of the CmsMetadataValue. Format: networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the CmsMetadataValue. Format: networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStatus()

public CmsMetadataValueStatusEnum.CmsMetadataValueStatus getStatus()

Output only. The status of this CMS metadata value.

.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CmsMetadataValueStatusEnum.CmsMetadataValueStatus

The status.

getStatusValue()

public int getStatusValue()

Output only. The status of this CMS metadata value.

.google.ads.admanager.v1.CmsMetadataValueStatusEnum.CmsMetadataValueStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for status.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CmsMetadataValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CmsMetadataValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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