Class YieldPartnerSettings.YieldParameter.Builder (0.62.0)

public static final class YieldPartnerSettings.YieldParameter.Builder extends GeneratedMessage.Builder<YieldPartnerSettings.YieldParameter.Builder> implements YieldPartnerSettings.YieldParameterOrBuilder

Describes a field used by a mobile adapter to call an ad network. For example, pubid.

Protobuf type google.ads.admanager.v1.YieldPartnerSettings.YieldParameter

Static Methods

getDescriptor()

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

Methods

build()

public YieldPartnerSettings.YieldParameter build()
Returns
Type Description
YieldPartnerSettings.YieldParameter

buildPartial()

public YieldPartnerSettings.YieldParameter buildPartial()
Returns
Type Description
YieldPartnerSettings.YieldParameter

clear()

public YieldPartnerSettings.YieldParameter.Builder clear()
Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder
Overrides

clearKey()

public YieldPartnerSettings.YieldParameter.Builder clearKey()

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder

This builder for chaining.

clearOptional()

public YieldPartnerSettings.YieldParameter.Builder clearOptional()

Output only. Whether or not this parameter is optional.

optional bool optional = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder

This builder for chaining.

getDefaultInstanceForType()

public YieldPartnerSettings.YieldParameter getDefaultInstanceForType()
Returns
Type Description
YieldPartnerSettings.YieldParameter

getDescriptorForType()

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

getKey()

public String getKey()

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for key.

getOptional()

public boolean getOptional()

Output only. Whether or not this parameter is optional.

optional bool optional = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The optional.

hasKey()

public boolean hasKey()

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the key field is set.

hasOptional()

public boolean hasOptional()

Output only. Whether or not this parameter is optional.

optional bool optional = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the optional field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(YieldPartnerSettings.YieldParameter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public YieldPartnerSettings.YieldParameter.Builder setKey(String value)

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public YieldPartnerSettings.YieldParameter.Builder setKeyBytes(ByteString value)

Output only. Identifier of the parameter.

optional string key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder

This builder for chaining.

setOptional(boolean value)

public YieldPartnerSettings.YieldParameter.Builder setOptional(boolean value)

Output only. Whether or not this parameter is optional.

optional bool optional = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The optional to set.

Returns
Type Description
YieldPartnerSettings.YieldParameter.Builder

This builder for chaining.