public static final class MarketplaceComment.Builder extends GeneratedMessage.Builder<MarketplaceComment.Builder> implements MarketplaceCommentOrBuilderComment associated with a programmatic Proposal that has been sent to Marketplace.
Protobuf type google.ads.admanager.v1.MarketplaceComment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MarketplaceComment.BuilderImplements
MarketplaceCommentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MarketplaceComment build()| Returns | |
|---|---|
| Type | Description |
MarketplaceComment |
|
buildPartial()
public MarketplaceComment buildPartial()| Returns | |
|---|---|
| Type | Description |
MarketplaceComment |
|
clear()
public MarketplaceComment.Builder clear()| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
clearComment()
public MarketplaceComment.Builder clearComment()Output only. The comment made on the Proposal.
optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
clearCommenterRole()
public MarketplaceComment.Builder clearCommenterRole()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.Builder |
This builder for chaining. |
clearCreateTime()
public MarketplaceComment.Builder clearCreateTime()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 |
MarketplaceComment.Builder |
|
clearProposal()
public MarketplaceComment.Builder clearProposal() 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 |
MarketplaceComment.Builder |
This builder for chaining. |
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. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()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 |
Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public MarketplaceComment.Builder mergeCreateTime(Timestamp value)Output only. The time at which the comment was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
mergeFrom(MarketplaceComment other)
public MarketplaceComment.Builder mergeFrom(MarketplaceComment other)| Parameter | |
|---|---|
| Name | Description |
other |
MarketplaceComment |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MarketplaceComment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MarketplaceComment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
setComment(String value)
public MarketplaceComment.Builder setComment(String value)Output only. The comment made on the Proposal.
optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe comment to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
setCommentBytes(ByteString value)
public MarketplaceComment.Builder setCommentBytes(ByteString value)Output only. The comment made on the Proposal.
optional string comment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for comment to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
setCommenterRole(MarketplaceComment.CommenterRole value)
public MarketplaceComment.Builder setCommenterRole(MarketplaceComment.CommenterRole value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
MarketplaceComment.CommenterRoleThe commenterRole to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
setCommenterRoleValue(int value)
public MarketplaceComment.Builder setCommenterRoleValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for commenterRole to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public MarketplaceComment.Builder setCreateTime(Timestamp value)Output only. The time at which the comment was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public MarketplaceComment.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time at which the comment was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
|
setProposal(String value)
public MarketplaceComment.Builder setProposal(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe proposal to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |
setProposalBytes(ByteString value)
public MarketplaceComment.Builder setProposalBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for proposal to set. |
| Returns | |
|---|---|
| Type | Description |
MarketplaceComment.Builder |
This builder for chaining. |