com.google.ads.googleads.v17.services.ShareablePreviewOrError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/services/shareable_preview_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Result of the generate shareable preview.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ShareablePreviewOrError}
*/
public final class ShareablePreviewOrError extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.ShareablePreviewOrError)
ShareablePreviewOrErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShareablePreviewOrError.newBuilder() to construct.
private ShareablePreviewOrError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShareablePreviewOrError() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShareablePreviewOrError();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ShareablePreviewServiceProto.internal_static_google_ads_googleads_v17_services_ShareablePreviewOrError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ShareablePreviewServiceProto.internal_static_google_ads_googleads_v17_services_ShareablePreviewOrError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ShareablePreviewOrError.class, com.google.ads.googleads.v17.services.ShareablePreviewOrError.Builder.class);
}
private int bitField0_;
private int generateShareablePreviewResponseCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object generateShareablePreviewResponse_;
public enum GenerateShareablePreviewResponseCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SHAREABLE_PREVIEW_RESULT(1),
PARTIAL_FAILURE_ERROR(2),
GENERATESHAREABLEPREVIEWRESPONSE_NOT_SET(0);
private final int value;
private GenerateShareablePreviewResponseCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GenerateShareablePreviewResponseCase valueOf(int value) {
return forNumber(value);
}
public static GenerateShareablePreviewResponseCase forNumber(int value) {
switch (value) {
case 1: return SHAREABLE_PREVIEW_RESULT;
case 2: return PARTIAL_FAILURE_ERROR;
case 0: return GENERATESHAREABLEPREVIEWRESPONSE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public GenerateShareablePreviewResponseCase
getGenerateShareablePreviewResponseCase() {
return GenerateShareablePreviewResponseCase.forNumber(
generateShareablePreviewResponseCase_);
}
public static final int ASSET_GROUP_IDENTIFIER_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.services.AssetGroupIdentifier assetGroupIdentifier_;
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
* @return Whether the assetGroupIdentifier field is set.
*/
@java.lang.Override
public boolean hasAssetGroupIdentifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
* @return The assetGroupIdentifier.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AssetGroupIdentifier getAssetGroupIdentifier() {
return assetGroupIdentifier_ == null ? com.google.ads.googleads.v17.services.AssetGroupIdentifier.getDefaultInstance() : assetGroupIdentifier_;
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AssetGroupIdentifierOrBuilder getAssetGroupIdentifierOrBuilder() {
return assetGroupIdentifier_ == null ? com.google.ads.googleads.v17.services.AssetGroupIdentifier.getDefaultInstance() : assetGroupIdentifier_;
}
public static final int SHAREABLE_PREVIEW_RESULT_FIELD_NUMBER = 1;
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
* @return Whether the shareablePreviewResult field is set.
*/
@java.lang.Override
public boolean hasShareablePreviewResult() {
return generateShareablePreviewResponseCase_ == 1;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
* @return The shareablePreviewResult.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewResult getShareablePreviewResult() {
if (generateShareablePreviewResponseCase_ == 1) {
return (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_;
}
return com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewResultOrBuilder getShareablePreviewResultOrBuilder() {
if (generateShareablePreviewResponseCase_ == 1) {
return (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_;
}
return com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
}
public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 2;
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
* @return Whether the partialFailureError field is set.
*/
@java.lang.Override
public boolean hasPartialFailureError() {
return generateShareablePreviewResponseCase_ == 2;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
* @return The partialFailureError.
*/
@java.lang.Override
public com.google.rpc.Status getPartialFailureError() {
if (generateShareablePreviewResponseCase_ == 2) {
return (com.google.rpc.Status) generateShareablePreviewResponse_;
}
return com.google.rpc.Status.getDefaultInstance();
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() {
if (generateShareablePreviewResponseCase_ == 2) {
return (com.google.rpc.Status) generateShareablePreviewResponse_;
}
return com.google.rpc.Status.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (generateShareablePreviewResponseCase_ == 1) {
output.writeMessage(1, (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_);
}
if (generateShareablePreviewResponseCase_ == 2) {
output.writeMessage(2, (com.google.rpc.Status) generateShareablePreviewResponse_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getAssetGroupIdentifier());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (generateShareablePreviewResponseCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_);
}
if (generateShareablePreviewResponseCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.rpc.Status) generateShareablePreviewResponse_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAssetGroupIdentifier());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.services.ShareablePreviewOrError)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.ShareablePreviewOrError other = (com.google.ads.googleads.v17.services.ShareablePreviewOrError) obj;
if (hasAssetGroupIdentifier() != other.hasAssetGroupIdentifier()) return false;
if (hasAssetGroupIdentifier()) {
if (!getAssetGroupIdentifier()
.equals(other.getAssetGroupIdentifier())) return false;
}
if (!getGenerateShareablePreviewResponseCase().equals(other.getGenerateShareablePreviewResponseCase())) return false;
switch (generateShareablePreviewResponseCase_) {
case 1:
if (!getShareablePreviewResult()
.equals(other.getShareablePreviewResult())) return false;
break;
case 2:
if (!getPartialFailureError()
.equals(other.getPartialFailureError())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAssetGroupIdentifier()) {
hash = (37 * hash) + ASSET_GROUP_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getAssetGroupIdentifier().hashCode();
}
switch (generateShareablePreviewResponseCase_) {
case 1:
hash = (37 * hash) + SHAREABLE_PREVIEW_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getShareablePreviewResult().hashCode();
break;
case 2:
hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getPartialFailureError().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.services.ShareablePreviewOrError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Result of the generate shareable preview.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ShareablePreviewOrError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.ShareablePreviewOrError)
com.google.ads.googleads.v17.services.ShareablePreviewOrErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ShareablePreviewServiceProto.internal_static_google_ads_googleads_v17_services_ShareablePreviewOrError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ShareablePreviewServiceProto.internal_static_google_ads_googleads_v17_services_ShareablePreviewOrError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ShareablePreviewOrError.class, com.google.ads.googleads.v17.services.ShareablePreviewOrError.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.ShareablePreviewOrError.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAssetGroupIdentifierFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
assetGroupIdentifier_ = null;
if (assetGroupIdentifierBuilder_ != null) {
assetGroupIdentifierBuilder_.dispose();
assetGroupIdentifierBuilder_ = null;
}
if (shareablePreviewResultBuilder_ != null) {
shareablePreviewResultBuilder_.clear();
}
if (partialFailureErrorBuilder_ != null) {
partialFailureErrorBuilder_.clear();
}
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.ShareablePreviewServiceProto.internal_static_google_ads_googleads_v17_services_ShareablePreviewOrError_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewOrError getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.ShareablePreviewOrError.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewOrError build() {
com.google.ads.googleads.v17.services.ShareablePreviewOrError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewOrError buildPartial() {
com.google.ads.googleads.v17.services.ShareablePreviewOrError result = new com.google.ads.googleads.v17.services.ShareablePreviewOrError(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.ShareablePreviewOrError result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.assetGroupIdentifier_ = assetGroupIdentifierBuilder_ == null
? assetGroupIdentifier_
: assetGroupIdentifierBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.services.ShareablePreviewOrError result) {
result.generateShareablePreviewResponseCase_ = generateShareablePreviewResponseCase_;
result.generateShareablePreviewResponse_ = this.generateShareablePreviewResponse_;
if (generateShareablePreviewResponseCase_ == 1 &&
shareablePreviewResultBuilder_ != null) {
result.generateShareablePreviewResponse_ = shareablePreviewResultBuilder_.build();
}
if (generateShareablePreviewResponseCase_ == 2 &&
partialFailureErrorBuilder_ != null) {
result.generateShareablePreviewResponse_ = partialFailureErrorBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.services.ShareablePreviewOrError) {
return mergeFrom((com.google.ads.googleads.v17.services.ShareablePreviewOrError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.ShareablePreviewOrError other) {
if (other == com.google.ads.googleads.v17.services.ShareablePreviewOrError.getDefaultInstance()) return this;
if (other.hasAssetGroupIdentifier()) {
mergeAssetGroupIdentifier(other.getAssetGroupIdentifier());
}
switch (other.getGenerateShareablePreviewResponseCase()) {
case SHAREABLE_PREVIEW_RESULT: {
mergeShareablePreviewResult(other.getShareablePreviewResult());
break;
}
case PARTIAL_FAILURE_ERROR: {
mergePartialFailureError(other.getPartialFailureError());
break;
}
case GENERATESHAREABLEPREVIEWRESPONSE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getShareablePreviewResultFieldBuilder().getBuilder(),
extensionRegistry);
generateShareablePreviewResponseCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getPartialFailureErrorFieldBuilder().getBuilder(),
extensionRegistry);
generateShareablePreviewResponseCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getAssetGroupIdentifierFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int generateShareablePreviewResponseCase_ = 0;
private java.lang.Object generateShareablePreviewResponse_;
public GenerateShareablePreviewResponseCase
getGenerateShareablePreviewResponseCase() {
return GenerateShareablePreviewResponseCase.forNumber(
generateShareablePreviewResponseCase_);
}
public Builder clearGenerateShareablePreviewResponse() {
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.ads.googleads.v17.services.AssetGroupIdentifier assetGroupIdentifier_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AssetGroupIdentifier, com.google.ads.googleads.v17.services.AssetGroupIdentifier.Builder, com.google.ads.googleads.v17.services.AssetGroupIdentifierOrBuilder> assetGroupIdentifierBuilder_;
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
* @return Whether the assetGroupIdentifier field is set.
*/
public boolean hasAssetGroupIdentifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
* @return The assetGroupIdentifier.
*/
public com.google.ads.googleads.v17.services.AssetGroupIdentifier getAssetGroupIdentifier() {
if (assetGroupIdentifierBuilder_ == null) {
return assetGroupIdentifier_ == null ? com.google.ads.googleads.v17.services.AssetGroupIdentifier.getDefaultInstance() : assetGroupIdentifier_;
} else {
return assetGroupIdentifierBuilder_.getMessage();
}
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public Builder setAssetGroupIdentifier(com.google.ads.googleads.v17.services.AssetGroupIdentifier value) {
if (assetGroupIdentifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetGroupIdentifier_ = value;
} else {
assetGroupIdentifierBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public Builder setAssetGroupIdentifier(
com.google.ads.googleads.v17.services.AssetGroupIdentifier.Builder builderForValue) {
if (assetGroupIdentifierBuilder_ == null) {
assetGroupIdentifier_ = builderForValue.build();
} else {
assetGroupIdentifierBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public Builder mergeAssetGroupIdentifier(com.google.ads.googleads.v17.services.AssetGroupIdentifier value) {
if (assetGroupIdentifierBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
assetGroupIdentifier_ != null &&
assetGroupIdentifier_ != com.google.ads.googleads.v17.services.AssetGroupIdentifier.getDefaultInstance()) {
getAssetGroupIdentifierBuilder().mergeFrom(value);
} else {
assetGroupIdentifier_ = value;
}
} else {
assetGroupIdentifierBuilder_.mergeFrom(value);
}
if (assetGroupIdentifier_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public Builder clearAssetGroupIdentifier() {
bitField0_ = (bitField0_ & ~0x00000001);
assetGroupIdentifier_ = null;
if (assetGroupIdentifierBuilder_ != null) {
assetGroupIdentifierBuilder_.dispose();
assetGroupIdentifierBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public com.google.ads.googleads.v17.services.AssetGroupIdentifier.Builder getAssetGroupIdentifierBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAssetGroupIdentifierFieldBuilder().getBuilder();
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
public com.google.ads.googleads.v17.services.AssetGroupIdentifierOrBuilder getAssetGroupIdentifierOrBuilder() {
if (assetGroupIdentifierBuilder_ != null) {
return assetGroupIdentifierBuilder_.getMessageOrBuilder();
} else {
return assetGroupIdentifier_ == null ?
com.google.ads.googleads.v17.services.AssetGroupIdentifier.getDefaultInstance() : assetGroupIdentifier_;
}
}
/**
*
* The asset group of the shareable preview.
*
*
* .google.ads.googleads.v17.services.AssetGroupIdentifier asset_group_identifier = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AssetGroupIdentifier, com.google.ads.googleads.v17.services.AssetGroupIdentifier.Builder, com.google.ads.googleads.v17.services.AssetGroupIdentifierOrBuilder>
getAssetGroupIdentifierFieldBuilder() {
if (assetGroupIdentifierBuilder_ == null) {
assetGroupIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AssetGroupIdentifier, com.google.ads.googleads.v17.services.AssetGroupIdentifier.Builder, com.google.ads.googleads.v17.services.AssetGroupIdentifierOrBuilder>(
getAssetGroupIdentifier(),
getParentForChildren(),
isClean());
assetGroupIdentifier_ = null;
}
return assetGroupIdentifierBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.ShareablePreviewResult, com.google.ads.googleads.v17.services.ShareablePreviewResult.Builder, com.google.ads.googleads.v17.services.ShareablePreviewResultOrBuilder> shareablePreviewResultBuilder_;
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
* @return Whether the shareablePreviewResult field is set.
*/
@java.lang.Override
public boolean hasShareablePreviewResult() {
return generateShareablePreviewResponseCase_ == 1;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
* @return The shareablePreviewResult.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewResult getShareablePreviewResult() {
if (shareablePreviewResultBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 1) {
return (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_;
}
return com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
} else {
if (generateShareablePreviewResponseCase_ == 1) {
return shareablePreviewResultBuilder_.getMessage();
}
return com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
}
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
public Builder setShareablePreviewResult(com.google.ads.googleads.v17.services.ShareablePreviewResult value) {
if (shareablePreviewResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
generateShareablePreviewResponse_ = value;
onChanged();
} else {
shareablePreviewResultBuilder_.setMessage(value);
}
generateShareablePreviewResponseCase_ = 1;
return this;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
public Builder setShareablePreviewResult(
com.google.ads.googleads.v17.services.ShareablePreviewResult.Builder builderForValue) {
if (shareablePreviewResultBuilder_ == null) {
generateShareablePreviewResponse_ = builderForValue.build();
onChanged();
} else {
shareablePreviewResultBuilder_.setMessage(builderForValue.build());
}
generateShareablePreviewResponseCase_ = 1;
return this;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
public Builder mergeShareablePreviewResult(com.google.ads.googleads.v17.services.ShareablePreviewResult value) {
if (shareablePreviewResultBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 1 &&
generateShareablePreviewResponse_ != com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance()) {
generateShareablePreviewResponse_ = com.google.ads.googleads.v17.services.ShareablePreviewResult.newBuilder((com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_)
.mergeFrom(value).buildPartial();
} else {
generateShareablePreviewResponse_ = value;
}
onChanged();
} else {
if (generateShareablePreviewResponseCase_ == 1) {
shareablePreviewResultBuilder_.mergeFrom(value);
} else {
shareablePreviewResultBuilder_.setMessage(value);
}
}
generateShareablePreviewResponseCase_ = 1;
return this;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
public Builder clearShareablePreviewResult() {
if (shareablePreviewResultBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 1) {
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
onChanged();
}
} else {
if (generateShareablePreviewResponseCase_ == 1) {
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
}
shareablePreviewResultBuilder_.clear();
}
return this;
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
public com.google.ads.googleads.v17.services.ShareablePreviewResult.Builder getShareablePreviewResultBuilder() {
return getShareablePreviewResultFieldBuilder().getBuilder();
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewResultOrBuilder getShareablePreviewResultOrBuilder() {
if ((generateShareablePreviewResponseCase_ == 1) && (shareablePreviewResultBuilder_ != null)) {
return shareablePreviewResultBuilder_.getMessageOrBuilder();
} else {
if (generateShareablePreviewResponseCase_ == 1) {
return (com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_;
}
return com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
}
}
/**
*
* The shareable preview result.
*
*
* .google.ads.googleads.v17.services.ShareablePreviewResult shareable_preview_result = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.ShareablePreviewResult, com.google.ads.googleads.v17.services.ShareablePreviewResult.Builder, com.google.ads.googleads.v17.services.ShareablePreviewResultOrBuilder>
getShareablePreviewResultFieldBuilder() {
if (shareablePreviewResultBuilder_ == null) {
if (!(generateShareablePreviewResponseCase_ == 1)) {
generateShareablePreviewResponse_ = com.google.ads.googleads.v17.services.ShareablePreviewResult.getDefaultInstance();
}
shareablePreviewResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.ShareablePreviewResult, com.google.ads.googleads.v17.services.ShareablePreviewResult.Builder, com.google.ads.googleads.v17.services.ShareablePreviewResultOrBuilder>(
(com.google.ads.googleads.v17.services.ShareablePreviewResult) generateShareablePreviewResponse_,
getParentForChildren(),
isClean());
generateShareablePreviewResponse_ = null;
}
generateShareablePreviewResponseCase_ = 1;
onChanged();
return shareablePreviewResultBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_;
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
* @return Whether the partialFailureError field is set.
*/
@java.lang.Override
public boolean hasPartialFailureError() {
return generateShareablePreviewResponseCase_ == 2;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
* @return The partialFailureError.
*/
@java.lang.Override
public com.google.rpc.Status getPartialFailureError() {
if (partialFailureErrorBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 2) {
return (com.google.rpc.Status) generateShareablePreviewResponse_;
}
return com.google.rpc.Status.getDefaultInstance();
} else {
if (generateShareablePreviewResponseCase_ == 2) {
return partialFailureErrorBuilder_.getMessage();
}
return com.google.rpc.Status.getDefaultInstance();
}
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
public Builder setPartialFailureError(com.google.rpc.Status value) {
if (partialFailureErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
generateShareablePreviewResponse_ = value;
onChanged();
} else {
partialFailureErrorBuilder_.setMessage(value);
}
generateShareablePreviewResponseCase_ = 2;
return this;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
public Builder setPartialFailureError(
com.google.rpc.Status.Builder builderForValue) {
if (partialFailureErrorBuilder_ == null) {
generateShareablePreviewResponse_ = builderForValue.build();
onChanged();
} else {
partialFailureErrorBuilder_.setMessage(builderForValue.build());
}
generateShareablePreviewResponseCase_ = 2;
return this;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
public Builder mergePartialFailureError(com.google.rpc.Status value) {
if (partialFailureErrorBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 2 &&
generateShareablePreviewResponse_ != com.google.rpc.Status.getDefaultInstance()) {
generateShareablePreviewResponse_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) generateShareablePreviewResponse_)
.mergeFrom(value).buildPartial();
} else {
generateShareablePreviewResponse_ = value;
}
onChanged();
} else {
if (generateShareablePreviewResponseCase_ == 2) {
partialFailureErrorBuilder_.mergeFrom(value);
} else {
partialFailureErrorBuilder_.setMessage(value);
}
}
generateShareablePreviewResponseCase_ = 2;
return this;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
public Builder clearPartialFailureError() {
if (partialFailureErrorBuilder_ == null) {
if (generateShareablePreviewResponseCase_ == 2) {
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
onChanged();
}
} else {
if (generateShareablePreviewResponseCase_ == 2) {
generateShareablePreviewResponseCase_ = 0;
generateShareablePreviewResponse_ = null;
}
partialFailureErrorBuilder_.clear();
}
return this;
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() {
return getPartialFailureErrorFieldBuilder().getBuilder();
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() {
if ((generateShareablePreviewResponseCase_ == 2) && (partialFailureErrorBuilder_ != null)) {
return partialFailureErrorBuilder_.getMessageOrBuilder();
} else {
if (generateShareablePreviewResponseCase_ == 2) {
return (com.google.rpc.Status) generateShareablePreviewResponse_;
}
return com.google.rpc.Status.getDefaultInstance();
}
}
/**
*
* The shareable preview partial failure error.
*
*
* .google.rpc.Status partial_failure_error = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getPartialFailureErrorFieldBuilder() {
if (partialFailureErrorBuilder_ == null) {
if (!(generateShareablePreviewResponseCase_ == 2)) {
generateShareablePreviewResponse_ = com.google.rpc.Status.getDefaultInstance();
}
partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
(com.google.rpc.Status) generateShareablePreviewResponse_,
getParentForChildren(),
isClean());
generateShareablePreviewResponse_ = null;
}
generateShareablePreviewResponseCase_ = 2;
onChanged();
return partialFailureErrorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.ShareablePreviewOrError)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.ShareablePreviewOrError)
private static final com.google.ads.googleads.v17.services.ShareablePreviewOrError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.ShareablePreviewOrError();
}
public static com.google.ads.googleads.v17.services.ShareablePreviewOrError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShareablePreviewOrError parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ShareablePreviewOrError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy