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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int COMMENTER_ROLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int COMMENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int PROPOSAL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static MarketplaceComment getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MarketplaceComment.Builder newBuilder()
public static MarketplaceComment.Builder newBuilder(MarketplaceComment prototype)
public static MarketplaceComment parseDelimitedFrom(InputStream input)
public static MarketplaceComment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MarketplaceComment parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static MarketplaceComment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MarketplaceComment parseFrom(ByteString data)
public static MarketplaceComment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MarketplaceComment parseFrom(CodedInputStream input)
public static MarketplaceComment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MarketplaceComment parseFrom(InputStream input)
public static MarketplaceComment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MarketplaceComment parseFrom(ByteBuffer data)
public static MarketplaceComment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MarketplaceComment> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
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.
|
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];
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.
|
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.
|
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];
public MarketplaceComment getDefaultInstanceForType()
public Parser<MarketplaceComment> getParserForType()
Overrides
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.
|
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.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MarketplaceComment.Builder newBuilderForType()
protected MarketplaceComment.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public MarketplaceComment.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides