Class WebProperty.Builder (0.39.0)

public static final class WebProperty.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public WebProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public WebProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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.