Class MarketplaceComment (0.62.0)

public final class MarketplaceComment extends GeneratedMessage implements MarketplaceCommentOrBuilder

Comment associated with a programmatic Proposal that has been sent to Marketplace.

Protobuf type google.ads.admanager.v1.MarketplaceComment

Static Fields

COMMENTER_ROLE_FIELD_NUMBER

public static final int COMMENTER_ROLE_FIELD_NUMBER
Field Value
Type Description
int

COMMENT_FIELD_NUMBER

public static final int COMMENT_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

PROPOSAL_FIELD_NUMBER

public static final int PROPOSAL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MarketplaceComment getDefaultInstance()
Returns
Type Description
MarketplaceComment

getDescriptor()

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

newBuilder()

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

newBuilder(MarketplaceComment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getComment()

public String getComment()

Output only. The comment made on the Proposal.

optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Output only. The comment made on the Proposal.

optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for comment.

getCommenterRole()

public MarketplaceComment.CommenterRole getCommenterRole()

Output only. The role of the user who created the comment.

optional .google.ads.admanager.v1.MarketplaceComment.CommenterRole commenter_role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MarketplaceComment.CommenterRole

The commenterRole.

getCommenterRoleValue()

public int getCommenterRoleValue()

Output only. The role of the user who created the comment.

optional .google.ads.admanager.v1.MarketplaceComment.CommenterRole commenter_role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for commenterRole.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the comment was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the comment was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MarketplaceComment getDefaultInstanceForType()
Returns
Type Description
MarketplaceComment

getParserForType()

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

getProposal()

public String getProposal()

Output only. The resource name of the Proposal the comment belongs to. Format: networks/{network_code}/proposals/{proposal}

optional string proposal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The proposal.

getProposalBytes()

public ByteString getProposalBytes()

Output only. The resource name of the Proposal the comment belongs to. Format: networks/{network_code}/proposals/{proposal}

optional string proposal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for proposal.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasComment()

public boolean hasComment()

Output only. The comment made on the Proposal.

optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the comment field is set.

hasCommenterRole()

public boolean hasCommenterRole()

Output only. The role of the user who created the comment.

optional .google.ads.admanager.v1.MarketplaceComment.CommenterRole commenter_role = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the commenterRole field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the comment was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasProposal()

public boolean hasProposal()

Output only. The resource name of the Proposal the comment belongs to. Format: networks/{network_code}/proposals/{proposal}

optional string proposal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the proposal 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 MarketplaceComment.Builder newBuilderForType()
Returns
Type Description
MarketplaceComment.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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