Class CreateAdSenseLinkRequest (0.64.0)

public final class CreateAdSenseLinkRequest extends GeneratedMessageV3 implements CreateAdSenseLinkRequestOrBuilder

Request message to be passed to CreateAdSenseLink method.

Protobuf type google.analytics.admin.v1alpha.CreateAdSenseLinkRequest

Static Fields

public static final int ADSENSE_LINK_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateAdSenseLinkRequest getDefaultInstance()
Returns
Type Description
CreateAdSenseLinkRequest

getDescriptor()

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

newBuilder()

public static CreateAdSenseLinkRequest.Builder newBuilder()
Returns
Type Description
CreateAdSenseLinkRequest.Builder

newBuilder(CreateAdSenseLinkRequest prototype)

public static CreateAdSenseLinkRequest.Builder newBuilder(CreateAdSenseLinkRequest prototype)
Parameter
Name Description
prototype CreateAdSenseLinkRequest
Returns
Type Description
CreateAdSenseLinkRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateAdSenseLinkRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateAdSenseLinkRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateAdSenseLinkRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateAdSenseLinkRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateAdSenseLinkRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateAdSenseLinkRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateAdSenseLinkRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateAdSenseLinkRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateAdSenseLinkRequest> parser()
Returns
Type Description
Parser<CreateAdSenseLinkRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

getParserForType()

public Parser<CreateAdSenseLinkRequest> getParserForType()
Returns
Type Description
Parser<CreateAdSenseLinkRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateAdSenseLinkRequest.Builder newBuilderForType()
Returns
Type Description
CreateAdSenseLinkRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateAdSenseLinkRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateAdSenseLinkRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateAdSenseLinkRequest.Builder toBuilder()
Returns
Type Description
CreateAdSenseLinkRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException