com.google.ads.googleads.v17.resources.BatchJob 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/resources/batch_job.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A list of mutates being processed asynchronously. The mutates are uploaded
* by the user. The mutates themselves aren't readable and the results of the
* job can only be read using BatchJobService.ListBatchJobResults.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BatchJob}
*/
public final class BatchJob extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.BatchJob)
BatchJobOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchJob.newBuilder() to construct.
private BatchJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchJob() {
resourceName_ = "";
nextAddSequenceToken_ = "";
status_ = 0;
longRunningOperation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchJob();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BatchJob.class, com.google.ads.googleads.v17.resources.BatchJob.Builder.class);
}
public interface BatchJobMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDateTime field is set.
*/
boolean hasCreationDateTime();
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDateTime.
*/
java.lang.String getCreationDateTime();
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDateTime.
*/
com.google.protobuf.ByteString
getCreationDateTimeBytes();
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the startDateTime field is set.
*/
boolean hasStartDateTime();
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The startDateTime.
*/
java.lang.String getStartDateTime();
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for startDateTime.
*/
com.google.protobuf.ByteString
getStartDateTimeBytes();
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the completionDateTime field is set.
*/
boolean hasCompletionDateTime();
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The completionDateTime.
*/
java.lang.String getCompletionDateTime();
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for completionDateTime.
*/
com.google.protobuf.ByteString
getCompletionDateTimeBytes();
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedCompletionRatio field is set.
*/
boolean hasEstimatedCompletionRatio();
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedCompletionRatio.
*/
double getEstimatedCompletionRatio();
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the operationCount field is set.
*/
boolean hasOperationCount();
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The operationCount.
*/
long getOperationCount();
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the executedOperationCount field is set.
*/
boolean hasExecutedOperationCount();
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The executedOperationCount.
*/
long getExecutedOperationCount();
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the executionLimitSeconds field is set.
*/
boolean hasExecutionLimitSeconds();
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return The executionLimitSeconds.
*/
int getExecutionLimitSeconds();
}
/**
*
* Additional information about the batch job. This message is also used as
* metadata returned in batch job Long Running Operations.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata}
*/
public static final class BatchJobMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata)
BatchJobMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchJobMetadata.newBuilder() to construct.
private BatchJobMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchJobMetadata() {
creationDateTime_ = "";
startDateTime_ = "";
completionDateTime_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchJobMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_BatchJobMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_BatchJobMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.class, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder.class);
}
private int bitField0_;
public static final int CREATION_DATE_TIME_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object creationDateTime_ = "";
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDateTime field is set.
*/
@java.lang.Override
public boolean hasCreationDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDateTime.
*/
@java.lang.Override
public java.lang.String getCreationDateTime() {
java.lang.Object ref = creationDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creationDateTime_ = s;
return s;
}
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreationDateTimeBytes() {
java.lang.Object ref = creationDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creationDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_DATE_TIME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object startDateTime_ = "";
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the startDateTime field is set.
*/
@java.lang.Override
public boolean hasStartDateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The startDateTime.
*/
@java.lang.Override
public java.lang.String getStartDateTime() {
java.lang.Object ref = startDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDateTime_ = s;
return s;
}
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for startDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateTimeBytes() {
java.lang.Object ref = startDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMPLETION_DATE_TIME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object completionDateTime_ = "";
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the completionDateTime field is set.
*/
@java.lang.Override
public boolean hasCompletionDateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The completionDateTime.
*/
@java.lang.Override
public java.lang.String getCompletionDateTime() {
java.lang.Object ref = completionDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
completionDateTime_ = s;
return s;
}
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for completionDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCompletionDateTimeBytes() {
java.lang.Object ref = completionDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
completionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ESTIMATED_COMPLETION_RATIO_FIELD_NUMBER = 10;
private double estimatedCompletionRatio_ = 0D;
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedCompletionRatio field is set.
*/
@java.lang.Override
public boolean hasEstimatedCompletionRatio() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedCompletionRatio.
*/
@java.lang.Override
public double getEstimatedCompletionRatio() {
return estimatedCompletionRatio_;
}
public static final int OPERATION_COUNT_FIELD_NUMBER = 11;
private long operationCount_ = 0L;
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the operationCount field is set.
*/
@java.lang.Override
public boolean hasOperationCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The operationCount.
*/
@java.lang.Override
public long getOperationCount() {
return operationCount_;
}
public static final int EXECUTED_OPERATION_COUNT_FIELD_NUMBER = 12;
private long executedOperationCount_ = 0L;
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the executedOperationCount field is set.
*/
@java.lang.Override
public boolean hasExecutedOperationCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The executedOperationCount.
*/
@java.lang.Override
public long getExecutedOperationCount() {
return executedOperationCount_;
}
public static final int EXECUTION_LIMIT_SECONDS_FIELD_NUMBER = 13;
private int executionLimitSeconds_ = 0;
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the executionLimitSeconds field is set.
*/
@java.lang.Override
public boolean hasExecutionLimitSeconds() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return The executionLimitSeconds.
*/
@java.lang.Override
public int getExecutionLimitSeconds() {
return executionLimitSeconds_;
}
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 (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, startDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, creationDateTime_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, completionDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(10, estimatedCompletionRatio_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(11, operationCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(12, executedOperationCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(13, executionLimitSeconds_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, startDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, creationDateTime_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, completionDateTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, estimatedCompletionRatio_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, operationCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, executedOperationCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, executionLimitSeconds_);
}
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.resources.BatchJob.BatchJobMetadata)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata other = (com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata) obj;
if (hasCreationDateTime() != other.hasCreationDateTime()) return false;
if (hasCreationDateTime()) {
if (!getCreationDateTime()
.equals(other.getCreationDateTime())) return false;
}
if (hasStartDateTime() != other.hasStartDateTime()) return false;
if (hasStartDateTime()) {
if (!getStartDateTime()
.equals(other.getStartDateTime())) return false;
}
if (hasCompletionDateTime() != other.hasCompletionDateTime()) return false;
if (hasCompletionDateTime()) {
if (!getCompletionDateTime()
.equals(other.getCompletionDateTime())) return false;
}
if (hasEstimatedCompletionRatio() != other.hasEstimatedCompletionRatio()) return false;
if (hasEstimatedCompletionRatio()) {
if (java.lang.Double.doubleToLongBits(getEstimatedCompletionRatio())
!= java.lang.Double.doubleToLongBits(
other.getEstimatedCompletionRatio())) return false;
}
if (hasOperationCount() != other.hasOperationCount()) return false;
if (hasOperationCount()) {
if (getOperationCount()
!= other.getOperationCount()) return false;
}
if (hasExecutedOperationCount() != other.hasExecutedOperationCount()) return false;
if (hasExecutedOperationCount()) {
if (getExecutedOperationCount()
!= other.getExecutedOperationCount()) return false;
}
if (hasExecutionLimitSeconds() != other.hasExecutionLimitSeconds()) return false;
if (hasExecutionLimitSeconds()) {
if (getExecutionLimitSeconds()
!= other.getExecutionLimitSeconds()) return false;
}
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 (hasCreationDateTime()) {
hash = (37 * hash) + CREATION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationDateTime().hashCode();
}
if (hasStartDateTime()) {
hash = (37 * hash) + START_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartDateTime().hashCode();
}
if (hasCompletionDateTime()) {
hash = (37 * hash) + COMPLETION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCompletionDateTime().hashCode();
}
if (hasEstimatedCompletionRatio()) {
hash = (37 * hash) + ESTIMATED_COMPLETION_RATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getEstimatedCompletionRatio()));
}
if (hasOperationCount()) {
hash = (37 * hash) + OPERATION_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOperationCount());
}
if (hasExecutedOperationCount()) {
hash = (37 * hash) + EXECUTED_OPERATION_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecutedOperationCount());
}
if (hasExecutionLimitSeconds()) {
hash = (37 * hash) + EXECUTION_LIMIT_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getExecutionLimitSeconds();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata 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;
}
/**
*
* Additional information about the batch job. This message is also used as
* metadata returned in batch job Long Running Operations.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata)
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_BatchJobMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_BatchJobMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.class, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
creationDateTime_ = "";
startDateTime_ = "";
completionDateTime_ = "";
estimatedCompletionRatio_ = 0D;
operationCount_ = 0L;
executedOperationCount_ = 0L;
executionLimitSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_BatchJobMetadata_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata build() {
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata buildPartial() {
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata result = new com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.creationDateTime_ = creationDateTime_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startDateTime_ = startDateTime_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.completionDateTime_ = completionDateTime_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.estimatedCompletionRatio_ = estimatedCompletionRatio_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.operationCount_ = operationCount_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.executedOperationCount_ = executedOperationCount_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.executionLimitSeconds_ = executionLimitSeconds_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@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.resources.BatchJob.BatchJobMetadata) {
return mergeFrom((com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata other) {
if (other == com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance()) return this;
if (other.hasCreationDateTime()) {
creationDateTime_ = other.creationDateTime_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStartDateTime()) {
startDateTime_ = other.startDateTime_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCompletionDateTime()) {
completionDateTime_ = other.completionDateTime_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasEstimatedCompletionRatio()) {
setEstimatedCompletionRatio(other.getEstimatedCompletionRatio());
}
if (other.hasOperationCount()) {
setOperationCount(other.getOperationCount());
}
if (other.hasExecutedOperationCount()) {
setExecutedOperationCount(other.getExecutedOperationCount());
}
if (other.hasExecutionLimitSeconds()) {
setExecutionLimitSeconds(other.getExecutionLimitSeconds());
}
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 58: {
startDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
case 66: {
creationDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 66
case 74: {
completionDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 74
case 81: {
estimatedCompletionRatio_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 81
case 88: {
operationCount_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 88
case 96: {
executedOperationCount_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 96
case 104: {
executionLimitSeconds_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 104
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 bitField0_;
private java.lang.Object creationDateTime_ = "";
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDateTime field is set.
*/
public boolean hasCreationDateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDateTime.
*/
public java.lang.String getCreationDateTime() {
java.lang.Object ref = creationDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creationDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDateTime.
*/
public com.google.protobuf.ByteString
getCreationDateTimeBytes() {
java.lang.Object ref = creationDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creationDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The creationDateTime to set.
* @return This builder for chaining.
*/
public Builder setCreationDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
creationDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCreationDateTime() {
creationDateTime_ = getDefaultInstance().getCreationDateTime();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job was created.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00"
*
*
* optional string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for creationDateTime to set.
* @return This builder for chaining.
*/
public Builder setCreationDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
creationDateTime_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object startDateTime_ = "";
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the startDateTime field is set.
*/
public boolean hasStartDateTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The startDateTime.
*/
public java.lang.String getStartDateTime() {
java.lang.Object ref = startDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for startDateTime.
*/
public com.google.protobuf.ByteString
getStartDateTimeBytes() {
java.lang.Object ref = startDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The startDateTime to set.
* @return This builder for chaining.
*/
public Builder setStartDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startDateTime_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStartDateTime() {
startDateTime_ = getDefaultInstance().getStartDateTime();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job started running.
* Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30"
*
*
* optional string start_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for startDateTime to set.
* @return This builder for chaining.
*/
public Builder setStartDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
startDateTime_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object completionDateTime_ = "";
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the completionDateTime field is set.
*/
public boolean hasCompletionDateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The completionDateTime.
*/
public java.lang.String getCompletionDateTime() {
java.lang.Object ref = completionDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
completionDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for completionDateTime.
*/
public com.google.protobuf.ByteString
getCompletionDateTimeBytes() {
java.lang.Object ref = completionDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
completionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The completionDateTime to set.
* @return This builder for chaining.
*/
public Builder setCompletionDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
completionDateTime_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCompletionDateTime() {
completionDateTime_ = getDefaultInstance().getCompletionDateTime();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. The time when this batch job was completed.
* Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00"
*
*
* optional string completion_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for completionDateTime to set.
* @return This builder for chaining.
*/
public Builder setCompletionDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
completionDateTime_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private double estimatedCompletionRatio_ ;
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the estimatedCompletionRatio field is set.
*/
@java.lang.Override
public boolean hasEstimatedCompletionRatio() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedCompletionRatio.
*/
@java.lang.Override
public double getEstimatedCompletionRatio() {
return estimatedCompletionRatio_;
}
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The estimatedCompletionRatio to set.
* @return This builder for chaining.
*/
public Builder setEstimatedCompletionRatio(double value) {
estimatedCompletionRatio_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The fraction (between 0.0 and 1.0) of mutates that have been
* processed. This is empty if the job hasn't started running yet.
*
*
* optional double estimated_completion_ratio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEstimatedCompletionRatio() {
bitField0_ = (bitField0_ & ~0x00000008);
estimatedCompletionRatio_ = 0D;
onChanged();
return this;
}
private long operationCount_ ;
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the operationCount field is set.
*/
@java.lang.Override
public boolean hasOperationCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The operationCount.
*/
@java.lang.Override
public long getOperationCount() {
return operationCount_;
}
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The operationCount to set.
* @return This builder for chaining.
*/
public Builder setOperationCount(long value) {
operationCount_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. The number of mutate operations in the batch job.
*
*
* optional int64 operation_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearOperationCount() {
bitField0_ = (bitField0_ & ~0x00000010);
operationCount_ = 0L;
onChanged();
return this;
}
private long executedOperationCount_ ;
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the executedOperationCount field is set.
*/
@java.lang.Override
public boolean hasExecutedOperationCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The executedOperationCount.
*/
@java.lang.Override
public long getExecutedOperationCount() {
return executedOperationCount_;
}
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The executedOperationCount to set.
* @return This builder for chaining.
*/
public Builder setExecutedOperationCount(long value) {
executedOperationCount_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The number of mutate operations executed by the batch job.
* Present only if the job has started running.
*
*
* optional int64 executed_operation_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearExecutedOperationCount() {
bitField0_ = (bitField0_ & ~0x00000020);
executedOperationCount_ = 0L;
onChanged();
return this;
}
private int executionLimitSeconds_ ;
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the executionLimitSeconds field is set.
*/
@java.lang.Override
public boolean hasExecutionLimitSeconds() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return The executionLimitSeconds.
*/
@java.lang.Override
public int getExecutionLimitSeconds() {
return executionLimitSeconds_;
}
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The executionLimitSeconds to set.
* @return This builder for chaining.
*/
public Builder setExecutionLimitSeconds(int value) {
executionLimitSeconds_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Immutable. The approximate upper bound for how long a batch job can be
* executed, in seconds. If the job runs more than the given upper bound,
* the job will be canceled.
*
*
* optional int32 execution_limit_seconds = 13 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearExecutionLimitSeconds() {
bitField0_ = (bitField0_ & ~0x00000040);
executionLimitSeconds_ = 0;
onChanged();
return this;
}
@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.resources.BatchJob.BatchJobMetadata)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata)
private static final com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata();
}
public static com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchJobMetadata 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.resources.BatchJob.BatchJobMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 7;
private long id_ = 0L;
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NEXT_ADD_SEQUENCE_TOKEN_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object nextAddSequenceToken_ = "";
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the nextAddSequenceToken field is set.
*/
@java.lang.Override
public boolean hasNextAddSequenceToken() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The nextAddSequenceToken.
*/
@java.lang.Override
public java.lang.String getNextAddSequenceToken() {
java.lang.Object ref = nextAddSequenceToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextAddSequenceToken_ = s;
return s;
}
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for nextAddSequenceToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextAddSequenceTokenBytes() {
java.lang.Object ref = nextAddSequenceToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextAddSequenceToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 4;
private com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata_;
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The metadata.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata getMetadata() {
return metadata_ == null ? com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance() : metadata_;
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance() : metadata_;
}
public static final int STATUS_FIELD_NUMBER = 5;
private int status_ = 0;
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus getStatus() {
com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus result = com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.UNRECOGNIZED : result;
}
public static final int LONG_RUNNING_OPERATION_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object longRunningOperation_ = "";
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the longRunningOperation field is set.
*/
@java.lang.Override
public boolean hasLongRunningOperation() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The longRunningOperation.
*/
@java.lang.Override
public java.lang.String getLongRunningOperation() {
java.lang.Object ref = longRunningOperation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
longRunningOperation_ = s;
return s;
}
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for longRunningOperation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLongRunningOperationBytes() {
java.lang.Object ref = longRunningOperation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longRunningOperation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getMetadata());
}
if (status_ != com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(5, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(7, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, nextAddSequenceToken_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, longRunningOperation_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getMetadata());
}
if (status_ != com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, nextAddSequenceToken_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, longRunningOperation_);
}
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.resources.BatchJob)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.BatchJob other = (com.google.ads.googleads.v17.resources.BatchJob) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasNextAddSequenceToken() != other.hasNextAddSequenceToken()) return false;
if (hasNextAddSequenceToken()) {
if (!getNextAddSequenceToken()
.equals(other.getNextAddSequenceToken())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (status_ != other.status_) return false;
if (hasLongRunningOperation() != other.hasLongRunningOperation()) return false;
if (hasLongRunningOperation()) {
if (!getLongRunningOperation()
.equals(other.getLongRunningOperation())) return false;
}
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();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasNextAddSequenceToken()) {
hash = (37 * hash) + NEXT_ADD_SEQUENCE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextAddSequenceToken().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasLongRunningOperation()) {
hash = (37 * hash) + LONG_RUNNING_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getLongRunningOperation().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.BatchJob parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob 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.resources.BatchJob parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob 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.resources.BatchJob parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.BatchJob 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.resources.BatchJob parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BatchJob 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.resources.BatchJob parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.BatchJob 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.resources.BatchJob 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.resources.BatchJob 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.resources.BatchJob 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;
}
/**
*
* A list of mutates being processed asynchronously. The mutates are uploaded
* by the user. The mutates themselves aren't readable and the results of the
* job can only be read using BatchJobService.ListBatchJobResults.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.BatchJob}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.BatchJob)
com.google.ads.googleads.v17.resources.BatchJobOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.BatchJob.class, com.google.ads.googleads.v17.resources.BatchJob.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.BatchJob.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
nextAddSequenceToken_ = "";
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
status_ = 0;
longRunningOperation_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.BatchJobProto.internal_static_google_ads_googleads_v17_resources_BatchJob_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.BatchJob.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob build() {
com.google.ads.googleads.v17.resources.BatchJob result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.BatchJob buildPartial() {
com.google.ads.googleads.v17.resources.BatchJob result = new com.google.ads.googleads.v17.resources.BatchJob(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.BatchJob result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nextAddSequenceToken_ = nextAddSequenceToken_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.metadata_ = metadataBuilder_ == null
? metadata_
: metadataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.longRunningOperation_ = longRunningOperation_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.resources.BatchJob) {
return mergeFrom((com.google.ads.googleads.v17.resources.BatchJob)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.BatchJob other) {
if (other == com.google.ads.googleads.v17.resources.BatchJob.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasNextAddSequenceToken()) {
nextAddSequenceToken_ = other.nextAddSequenceToken_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasLongRunningOperation()) {
longRunningOperation_ = other.longRunningOperation_;
bitField0_ |= 0x00000020;
onChanged();
}
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: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 34: {
input.readMessage(
getMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
status_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 56: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 56
case 66: {
nextAddSequenceToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
case 74: {
longRunningOperation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 74
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 bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the batch job.
* Batch job resource names have the form:
*
* `customers/{customer_id}/batchJobs/{batch_job_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. ID of this batch job.
*
*
* optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object nextAddSequenceToken_ = "";
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the nextAddSequenceToken field is set.
*/
public boolean hasNextAddSequenceToken() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The nextAddSequenceToken.
*/
public java.lang.String getNextAddSequenceToken() {
java.lang.Object ref = nextAddSequenceToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextAddSequenceToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for nextAddSequenceToken.
*/
public com.google.protobuf.ByteString
getNextAddSequenceTokenBytes() {
java.lang.Object ref = nextAddSequenceToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextAddSequenceToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The nextAddSequenceToken to set.
* @return This builder for chaining.
*/
public Builder setNextAddSequenceToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nextAddSequenceToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearNextAddSequenceToken() {
nextAddSequenceToken_ = getDefaultInstance().getNextAddSequenceToken();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. The next sequence token to use when adding operations. Only
* set when the batch job status is PENDING.
*
*
* optional string next_add_sequence_token = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for nextAddSequenceToken to set.
* @return This builder for chaining.
*/
public Builder setNextAddSequenceTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nextAddSequenceToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder> metadataBuilder_;
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The metadata.
*/
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMetadata(com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMetadata(
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMetadata(com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
metadata_ != null &&
metadata_ != com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000008);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.getDefaultInstance() : metadata_;
}
}
/**
*
* Output only. Contains additional information about this batch job.
*
*
* .google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadata.Builder, com.google.ads.googleads.v17.resources.BatchJob.BatchJobMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private int status_ = 0;
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus getStatus() {
com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus result = com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Status of this batch job.
*
*
* .google.ads.googleads.v17.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000010);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object longRunningOperation_ = "";
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the longRunningOperation field is set.
*/
public boolean hasLongRunningOperation() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The longRunningOperation.
*/
public java.lang.String getLongRunningOperation() {
java.lang.Object ref = longRunningOperation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
longRunningOperation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for longRunningOperation.
*/
public com.google.protobuf.ByteString
getLongRunningOperationBytes() {
java.lang.Object ref = longRunningOperation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longRunningOperation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The longRunningOperation to set.
* @return This builder for chaining.
*/
public Builder setLongRunningOperation(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
longRunningOperation_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLongRunningOperation() {
longRunningOperation_ = getDefaultInstance().getLongRunningOperation();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the long-running operation that can be
* used to poll for completion. Only set when the batch job status is RUNNING
* or DONE.
*
*
* optional string long_running_operation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for longRunningOperation to set.
* @return This builder for chaining.
*/
public Builder setLongRunningOperationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
longRunningOperation_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@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.resources.BatchJob)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.BatchJob)
private static final com.google.ads.googleads.v17.resources.BatchJob DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.BatchJob();
}
public static com.google.ads.googleads.v17.resources.BatchJob getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchJob 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.resources.BatchJob getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy