Class BatchApproveSuggestedAdUnitsResponse (0.54.0)

public final class BatchApproveSuggestedAdUnitsResponse extends GeneratedMessage implements BatchApproveSuggestedAdUnitsResponseOrBuilder

Response message for BatchApproveSuggestedAdUnits method.

Protobuf type google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > BatchApproveSuggestedAdUnitsResponse

Static Fields

CREATED_AD_UNITS_FIELD_NUMBER

public static final int CREATED_AD_UNITS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchApproveSuggestedAdUnitsResponse getDefaultInstance()
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse

getDescriptor()

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

newBuilder()

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

newBuilder(BatchApproveSuggestedAdUnitsResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreatedAdUnits(int index)

public String getCreatedAdUnits(int index)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The createdAdUnits at the given index.

getCreatedAdUnitsBytes(int index)

public ByteString getCreatedAdUnitsBytes(int index)

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the createdAdUnits at the given index.

getCreatedAdUnitsCount()

public int getCreatedAdUnitsCount()

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of createdAdUnits.

getCreatedAdUnitsList()

public ProtocolStringList getCreatedAdUnitsList()

The resource names of the AdUnits that were created as part of the approval. The order of the ad units in the response is not guaranteed to be the same as the order of the suggestions in the request.

repeated string created_ad_units = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the createdAdUnits.

getDefaultInstanceForType()

public BatchApproveSuggestedAdUnitsResponse getDefaultInstanceForType()
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BatchApproveSuggestedAdUnitsResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchApproveSuggestedAdUnitsResponse.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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