Class Site.Builder (0.39.0)

public static final class Site.Builder extends GeneratedMessageV3.Builder<Site.Builder> implements SiteOrBuilder

A Site represents a domain owned or represented by a network. For a parent network managing other networks as part of Multiple Customer Management "Manage Inventory" model, it could be the child's domain.

Protobuf type google.ads.admanager.v1.Site

Implements

SiteOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllDisapprovalReasons(Iterable<? extends DisapprovalReason> values)

public Site.Builder addAllDisapprovalReasons(Iterable<? extends DisapprovalReason> values)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.DisapprovalReason>
Returns
Type Description
Site.Builder

addDisapprovalReasons(DisapprovalReason value)

public Site.Builder addDisapprovalReasons(DisapprovalReason value)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DisapprovalReason
Returns
Type Description
Site.Builder

addDisapprovalReasons(DisapprovalReason.Builder builderForValue)

public Site.Builder addDisapprovalReasons(DisapprovalReason.Builder builderForValue)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DisapprovalReason.Builder
Returns
Type Description
Site.Builder

addDisapprovalReasons(int index, DisapprovalReason value)

public Site.Builder addDisapprovalReasons(int index, DisapprovalReason value)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DisapprovalReason
Returns
Type Description
Site.Builder

addDisapprovalReasons(int index, DisapprovalReason.Builder builderForValue)

public Site.Builder addDisapprovalReasons(int index, DisapprovalReason.Builder builderForValue)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DisapprovalReason.Builder
Returns
Type Description
Site.Builder

addDisapprovalReasonsBuilder()

public DisapprovalReason.Builder addDisapprovalReasonsBuilder()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DisapprovalReason.Builder

addDisapprovalReasonsBuilder(int index)

public DisapprovalReason.Builder addDisapprovalReasonsBuilder(int index)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DisapprovalReason.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Site.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Site.Builder
Overrides

build()

public Site build()
Returns
Type Description
Site

buildPartial()

public Site buildPartial()
Returns
Type Description
Site

clear()

public Site.Builder clear()
Returns
Type Description
Site.Builder
Overrides

clearApprovalStatus()

public Site.Builder clearApprovalStatus()

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Site.Builder

This builder for chaining.

clearApprovalStatusUpdateTime()

public Site.Builder clearApprovalStatusUpdateTime()

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Site.Builder

clearChildNetworkCode()

public Site.Builder clearChildNetworkCode()

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Site.Builder

This builder for chaining.

clearDisapprovalReasons()

public Site.Builder clearDisapprovalReasons()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Site.Builder

clearField(Descriptors.FieldDescriptor field)

public Site.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Site.Builder
Overrides

clearName()

public Site.Builder clearName()

Identifier. The resource name of the Site. Format: networks/{network_code}/sites/{site_id}

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

Returns
Type Description
Site.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Site.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Site.Builder
Overrides

clearUrl()

public Site.Builder clearUrl()

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Site.Builder

This builder for chaining.

clone()

public Site.Builder clone()
Returns
Type Description
Site.Builder
Overrides

getApprovalStatus()

public SiteApprovalStatusEnum.SiteApprovalStatus getApprovalStatus()

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SiteApprovalStatusEnum.SiteApprovalStatus

The approvalStatus.

getApprovalStatusUpdateTime()

public Timestamp getApprovalStatusUpdateTime()

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The approvalStatusUpdateTime.

getApprovalStatusUpdateTimeBuilder()

public Timestamp.Builder getApprovalStatusUpdateTimeBuilder()

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getApprovalStatusUpdateTimeOrBuilder()

public TimestampOrBuilder getApprovalStatusUpdateTimeOrBuilder()

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getApprovalStatusValue()

public int getApprovalStatusValue()

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for approvalStatus.

getChildNetworkCode()

public String getChildNetworkCode()

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The childNetworkCode.

getChildNetworkCodeBytes()

public ByteString getChildNetworkCodeBytes()

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for childNetworkCode.

getDefaultInstanceForType()

public Site getDefaultInstanceForType()
Returns
Type Description
Site

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisapprovalReasons(int index)

public DisapprovalReason getDisapprovalReasons(int index)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DisapprovalReason

getDisapprovalReasonsBuilder(int index)

public DisapprovalReason.Builder getDisapprovalReasonsBuilder(int index)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DisapprovalReason.Builder

getDisapprovalReasonsBuilderList()

public List<DisapprovalReason.Builder> getDisapprovalReasonsBuilderList()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getDisapprovalReasonsCount()

public int getDisapprovalReasonsCount()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDisapprovalReasonsList()

public List<DisapprovalReason> getDisapprovalReasonsList()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DisapprovalReason>

getDisapprovalReasonsOrBuilder(int index)

public DisapprovalReasonOrBuilder getDisapprovalReasonsOrBuilder(int index)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DisapprovalReasonOrBuilder

getDisapprovalReasonsOrBuilderList()

public List<? extends DisapprovalReasonOrBuilder> getDisapprovalReasonsOrBuilderList()

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.DisapprovalReasonOrBuilder>

getName()

public String getName()

Identifier. The resource name of the Site. Format: networks/{network_code}/sites/{site_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 Site. Format: networks/{network_code}/sites/{site_id}

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

Returns
Type Description
ByteString

The bytes for name.

getUrl()

public String getUrl()

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for url.

hasApprovalStatus()

public boolean hasApprovalStatus()

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the approvalStatus field is set.

hasApprovalStatusUpdateTime()

public boolean hasApprovalStatusUpdateTime()

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the approvalStatusUpdateTime field is set.

hasChildNetworkCode()

public boolean hasChildNetworkCode()

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the childNetworkCode field is set.

hasUrl()

public boolean hasUrl()

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the url field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApprovalStatusUpdateTime(Timestamp value)

public Site.Builder mergeApprovalStatusUpdateTime(Timestamp value)

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

mergeFrom(Site other)

public Site.Builder mergeFrom(Site other)
Parameter
Name Description
other Site
Returns
Type Description
Site.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Site.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Site.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Site.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Site.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Site.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Site.Builder
Overrides

removeDisapprovalReasons(int index)

public Site.Builder removeDisapprovalReasons(int index)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Site.Builder

setApprovalStatus(SiteApprovalStatusEnum.SiteApprovalStatus value)

public Site.Builder setApprovalStatus(SiteApprovalStatusEnum.SiteApprovalStatus value)

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SiteApprovalStatusEnum.SiteApprovalStatus

The approvalStatus to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setApprovalStatusUpdateTime(Timestamp value)

public Site.Builder setApprovalStatusUpdateTime(Timestamp value)

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

setApprovalStatusUpdateTime(Timestamp.Builder builderForValue)

public Site.Builder setApprovalStatusUpdateTime(Timestamp.Builder builderForValue)

Output only. The latest Site approval status change time.

optional .google.protobuf.Timestamp approval_status_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Site.Builder

setApprovalStatusValue(int value)

public Site.Builder setApprovalStatusValue(int value)

Output only. Status of the review performed on the Site by Google.

optional .google.ads.admanager.v1.SiteApprovalStatusEnum.SiteApprovalStatus approval_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for approvalStatus to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setChildNetworkCode(String value)

public Site.Builder setChildNetworkCode(String value)

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The childNetworkCode to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setChildNetworkCodeBytes(ByteString value)

public Site.Builder setChildNetworkCodeBytes(ByteString value)

Optional. The network code of the child if the Site is being managed for an MCM child network, or null if owned by this network.

optional string child_network_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for childNetworkCode to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setDisapprovalReasons(int index, DisapprovalReason value)

public Site.Builder setDisapprovalReasons(int index, DisapprovalReason value)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DisapprovalReason
Returns
Type Description
Site.Builder

setDisapprovalReasons(int index, DisapprovalReason.Builder builderForValue)

public Site.Builder setDisapprovalReasons(int index, DisapprovalReason.Builder builderForValue)

Output only. Provides reasons for disapproving the Site. It is null when the Site is not disapproved.

repeated .google.ads.admanager.v1.DisapprovalReason disapproval_reasons = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DisapprovalReason.Builder
Returns
Type Description
Site.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Site.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Site.Builder
Overrides

setName(String value)

public Site.Builder setName(String value)

Identifier. The resource name of the Site. Format: networks/{network_code}/sites/{site_id}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Site.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Site. Format: networks/{network_code}/sites/{site_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Site.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Site.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Site.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Site.Builder
Overrides

setUrl(String value)

public Site.Builder setUrl(String value)

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public Site.Builder setUrlBytes(ByteString value)

Required. The URL of the Site.

optional string url = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
Site.Builder

This builder for chaining.