Class BatchJob.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
com.google.ads.googleads.v18.resources.BatchJob.Builder
- All Implemented Interfaces:
BatchJobOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchJob
public static final class BatchJob.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
implements BatchJobOrBuilder
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
google.ads.googleads.v18.resources.BatchJob-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Output only.Output only.Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Immutable.Output only.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Immutable.com.google.protobuf.ByteStringImmutable.Output only.intOutput only.booleanhasId()Output only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.final BatchJob.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setId(long value) Output only.setLongRunningOperation(String value) Output only.setLongRunningOperationBytes(com.google.protobuf.ByteString value) Output only.Output only.setMetadata(BatchJob.BatchJobMetadata.Builder builderForValue) Output only.setNextAddSequenceToken(String value) Output only.setNextAddSequenceTokenBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Immutable.setResourceNameBytes(com.google.protobuf.ByteString value) Immutable.Output only.setStatusValue(int value) Output only.final BatchJob.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
setField
public BatchJob.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
setRepeatedField
public BatchJob.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
addRepeatedField
public BatchJob.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchJob.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
mergeFrom
public BatchJob.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchJob.Builder>- Throws:
IOException
-
getResourceName
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) = { ... }- Specified by:
getResourceNamein interfaceBatchJobOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()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) = { ... }- Specified by:
getResourceNameBytesin interfaceBatchJobOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
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) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
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) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
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) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. ID of this batch job.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceBatchJobOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. ID of this batch job.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceBatchJobOrBuilder- Returns:
- The id.
-
setId
Output only. ID of this batch job.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. ID of this batch job.
optional int64 id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasNextAddSequenceToken
public boolean hasNextAddSequenceToken()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];- Specified by:
hasNextAddSequenceTokenin interfaceBatchJobOrBuilder- Returns:
- Whether the nextAddSequenceToken field is set.
-
getNextAddSequenceToken
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];- Specified by:
getNextAddSequenceTokenin interfaceBatchJobOrBuilder- Returns:
- The nextAddSequenceToken.
-
getNextAddSequenceTokenBytes
public com.google.protobuf.ByteString getNextAddSequenceTokenBytes()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];- Specified by:
getNextAddSequenceTokenBytesin interfaceBatchJobOrBuilder- Returns:
- The bytes for nextAddSequenceToken.
-
setNextAddSequenceToken
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];- Parameters:
value- The nextAddSequenceToken to set.- Returns:
- This builder for chaining.
-
clearNextAddSequenceToken
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];- Returns:
- This builder for chaining.
-
setNextAddSequenceTokenBytes
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];- Parameters:
value- The bytes for nextAddSequenceToken to set.- Returns:
- This builder for chaining.
-
hasMetadata
public boolean hasMetadata()Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMetadatain interfaceBatchJobOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadatain interfaceBatchJobOrBuilder- Returns:
- The metadata.
-
setMetadata
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setMetadata
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeMetadata
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearMetadata
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataBuilder
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getMetadataOrBuilder
Output only. Contains additional information about this batch job.
.google.ads.googleads.v18.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadataOrBuilderin interfaceBatchJobOrBuilder
-
getStatusValue
public int getStatusValue()Output only. Status of this batch job.
.google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceBatchJobOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
Output only. Status of this batch job.
.google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
Output only. Status of this batch job.
.google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceBatchJobOrBuilder- Returns:
- The status.
-
setStatus
Output only. Status of this batch job.
.google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. Status of this batch job.
.google.ads.googleads.v18.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasLongRunningOperation
public boolean hasLongRunningOperation()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];- Specified by:
hasLongRunningOperationin interfaceBatchJobOrBuilder- Returns:
- Whether the longRunningOperation field is set.
-
getLongRunningOperation
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];- Specified by:
getLongRunningOperationin interfaceBatchJobOrBuilder- Returns:
- The longRunningOperation.
-
getLongRunningOperationBytes
public com.google.protobuf.ByteString getLongRunningOperationBytes()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];- Specified by:
getLongRunningOperationBytesin interfaceBatchJobOrBuilder- Returns:
- The bytes for longRunningOperation.
-
setLongRunningOperation
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];- Parameters:
value- The longRunningOperation to set.- Returns:
- This builder for chaining.
-
clearLongRunningOperation
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];- Returns:
- This builder for chaining.
-
setLongRunningOperationBytes
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];- Parameters:
value- The bytes for longRunningOperation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-