Class Site (0.39.0)

public final class Site extends GeneratedMessageV3 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 Fields

APPROVAL_STATUS_FIELD_NUMBER

public static final int APPROVAL_STATUS_FIELD_NUMBER
Field Value
Type Description
int

APPROVAL_STATUS_UPDATE_TIME_FIELD_NUMBER

public static final int APPROVAL_STATUS_UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

CHILD_NETWORK_CODE_FIELD_NUMBER

public static final int CHILD_NETWORK_CODE_FIELD_NUMBER
Field Value
Type Description
int

DISAPPROVAL_REASONS_FIELD_NUMBER

public static final int DISAPPROVAL_REASONS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Site getDefaultInstance()
Returns
Type Description
Site

getDescriptor()

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

newBuilder()

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

newBuilder(Site prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 Site.Builder newBuilderForType()
Returns
Type Description
Site.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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