Class CreateAdSenseLinkRequest.Builder (0.54.0)

public static final class CreateAdSenseLinkRequest.Builder extends GeneratedMessageV3.Builder<CreateAdSenseLinkRequest.Builder> implements CreateAdSenseLinkRequestOrBuilder

Request message to be passed to CreateAdSenseLink method.

Protobuf type google.analytics.admin.v1alpha.CreateAdSenseLinkRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAdSenseLinkRequest build()
Returns
Type Description
CreateAdSenseLinkRequest

buildPartial()

public CreateAdSenseLinkRequest buildPartial()
Returns
Type Description
CreateAdSenseLinkRequest

clear()

public CreateAdSenseLinkRequest.Builder clear()
Returns
Type Description
CreateAdSenseLinkRequest.Builder
Overrides
public CreateAdSenseLinkRequest.Builder clearAdsenseLink()

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAdSenseLinkRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAdSenseLinkRequest.Builder clearParent()

Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateAdSenseLinkRequest.Builder

This builder for chaining.

clone()

public CreateAdSenseLinkRequest.Builder clone()
Returns
Type Description
CreateAdSenseLinkRequest.Builder
Overrides
public AdSenseLink getAdsenseLink()

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdSenseLink

The adsenseLink.

getAdsenseLinkBuilder()

public AdSenseLink.Builder getAdsenseLinkBuilder()

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdSenseLink.Builder

getAdsenseLinkOrBuilder()

public AdSenseLinkOrBuilder getAdsenseLinkOrBuilder()

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdSenseLinkOrBuilder

getDefaultInstanceForType()

public CreateAdSenseLinkRequest getDefaultInstanceForType()
Returns
Type Description
CreateAdSenseLinkRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

public boolean hasAdsenseLink()

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adsenseLink field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public CreateAdSenseLinkRequest.Builder mergeAdsenseLink(AdSenseLink value)

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AdSenseLink
Returns
Type Description
CreateAdSenseLinkRequest.Builder

mergeFrom(CreateAdSenseLinkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdSenseLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAdSenseLinkRequest.Builder
Overrides
public CreateAdSenseLinkRequest.Builder setAdsenseLink(AdSenseLink value)

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AdSenseLink
Returns
Type Description
CreateAdSenseLinkRequest.Builder
public CreateAdSenseLinkRequest.Builder setAdsenseLink(AdSenseLink.Builder builderForValue)

Required. The AdSense Link to create

.google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AdSenseLink.Builder
Returns
Type Description
CreateAdSenseLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAdSenseLinkRequest.Builder setParent(String value)

Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAdSenseLinkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAdSenseLinkRequest.Builder setParentBytes(ByteString value)

Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAdSenseLinkRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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