Class WebProperty.Builder (0.44.0)

public static final class WebProperty.Builder extends GeneratedMessage.Builder<WebProperty.Builder> implements WebPropertyOrBuilder

Represents a web property.

Protobuf type google.ads.admanager.v1.WebProperty

Static Methods

getDescriptor()

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

Methods

build()

public WebProperty build()
Returns
Type Description
WebProperty

buildPartial()

public WebProperty buildPartial()
Returns
Type Description
WebProperty

clear()

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

clearName()

public WebProperty.Builder clearName()

Identifier. The resource name of the WebProperty. Format: networks/{network_code}/webProperties/{web_property_code}

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

Returns
Type Description
WebProperty.Builder

This builder for chaining.

clearProductType()

public WebProperty.Builder clearProductType()

Required. The ExchangeSyndicationProduct associated with this WebProperty.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WebProperty.Builder

This builder for chaining.

clearWebPropertyCode()

public WebProperty.Builder clearWebPropertyCode()

Required. The WebProperty code.

string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WebProperty.Builder

This builder for chaining.

clearWebPropertyId()

public WebProperty.Builder clearWebPropertyId()

Optional. The WebProperty ID.

int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WebProperty.Builder

This builder for chaining.

getDefaultInstanceForType()

public WebProperty getDefaultInstanceForType()
Returns
Type Description
WebProperty

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of the WebProperty. Format: networks/{network_code}/webProperties/{web_property_code}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the WebProperty. Format: networks/{network_code}/webProperties/{web_property_code}

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

Returns
Type Description
ByteString

The bytes for name.

getProductType()

public ExchangeSyndicationProductEnum.ExchangeSyndicationProduct getProductType()

Required. The ExchangeSyndicationProduct associated with this WebProperty.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExchangeSyndicationProductEnum.ExchangeSyndicationProduct

The productType.

getProductTypeValue()

public int getProductTypeValue()

Required. The ExchangeSyndicationProduct associated with this WebProperty.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for productType.

getWebPropertyCode()

public String getWebPropertyCode()

Required. The WebProperty code.

string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The webPropertyCode.

getWebPropertyCodeBytes()

public ByteString getWebPropertyCodeBytes()

Required. The WebProperty code.

string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for webPropertyCode.

getWebPropertyId()

public long getWebPropertyId()

Optional. The WebProperty ID.

int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The webPropertyId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WebProperty other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public WebProperty.Builder setName(String value)

Identifier. The resource name of the WebProperty. Format: networks/{network_code}/webProperties/{web_property_code}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WebProperty.Builder setNameBytes(ByteString value)

Identifier. The resource name of the WebProperty. Format: networks/{network_code}/webProperties/{web_property_code}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setProductType(ExchangeSyndicationProductEnum.ExchangeSyndicationProduct value)

public WebProperty.Builder setProductType(ExchangeSyndicationProductEnum.ExchangeSyndicationProduct value)

Required. The ExchangeSyndicationProduct associated with this WebProperty.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ExchangeSyndicationProductEnum.ExchangeSyndicationProduct

The productType to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setProductTypeValue(int value)

public WebProperty.Builder setProductTypeValue(int value)

Required. The ExchangeSyndicationProduct associated with this WebProperty.

.google.ads.admanager.v1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct product_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setWebPropertyCode(String value)

public WebProperty.Builder setWebPropertyCode(String value)

Required. The WebProperty code.

string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The webPropertyCode to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setWebPropertyCodeBytes(ByteString value)

public WebProperty.Builder setWebPropertyCodeBytes(ByteString value)

Required. The WebProperty code.

string web_property_code = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for webPropertyCode to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.

setWebPropertyId(long value)

public WebProperty.Builder setWebPropertyId(long value)

Optional. The WebProperty ID.

int64 web_property_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The webPropertyId to set.

Returns
Type Description
WebProperty.Builder

This builder for chaining.