Class CreateAdSenseLinkRequest.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateAdSenseLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides

build()

public CreateAdSenseLinkRequest build()
Returns
TypeDescription
CreateAdSenseLinkRequest

buildPartial()

public CreateAdSenseLinkRequest buildPartial()
Returns
TypeDescription
CreateAdSenseLinkRequest

clear()

public CreateAdSenseLinkRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateAdSenseLinkRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateAdSenseLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAdSenseLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateAdSenseLinkRequest.Builder

This builder for chaining.

clone()

public CreateAdSenseLinkRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AdSenseLinkOrBuilder

getDefaultInstanceForType()

public CreateAdSenseLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAdSenseLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the adsenseLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAdSenseLink
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder

mergeFrom(CreateAdSenseLinkRequest other)

public CreateAdSenseLinkRequest.Builder mergeFrom(CreateAdSenseLinkRequest other)
Parameter
NameDescription
otherCreateAdSenseLinkRequest
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateAdSenseLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateAdSenseLinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdSenseLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAdSenseLink
Returns
TypeDescription
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
NameDescription
builderForValueAdSenseLink.Builder
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAdSenseLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdSenseLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateAdSenseLinkRequest.Builder
Overrides