Class BatchJob.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
- com.google.ads.googleads.v10.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,java.lang.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 typegoogle.ads.googleads.v10.resources.BatchJob
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchJob.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchJobbuild()BatchJobbuildPartial()BatchJob.Builderclear()BatchJob.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchJob.BuilderclearId()Output only.BatchJob.BuilderclearLongRunningOperation()Output only.BatchJob.BuilderclearMetadata()Output only.BatchJob.BuilderclearNextAddSequenceToken()Output only.BatchJob.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchJob.BuilderclearResourceName()Immutable.BatchJob.BuilderclearStatus()Output only.BatchJob.Builderclone()BatchJobgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetId()Output only.java.lang.StringgetLongRunningOperation()Output only.com.google.protobuf.ByteStringgetLongRunningOperationBytes()Output only.BatchJob.BatchJobMetadatagetMetadata()Output only.BatchJob.BatchJobMetadata.BuildergetMetadataBuilder()Output only.BatchJob.BatchJobMetadataOrBuildergetMetadataOrBuilder()Output only.java.lang.StringgetNextAddSequenceToken()Output only.com.google.protobuf.ByteStringgetNextAddSequenceTokenBytes()Output only.java.lang.StringgetResourceName()Immutable.com.google.protobuf.ByteStringgetResourceNameBytes()Immutable.BatchJobStatusEnum.BatchJobStatusgetStatus()Output only.intgetStatusValue()Output only.booleanhasId()Output only.booleanhasLongRunningOperation()Output only.booleanhasMetadata()Output only.booleanhasNextAddSequenceToken()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchJob.BuildermergeFrom(BatchJob other)BatchJob.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchJob.BuildermergeFrom(com.google.protobuf.Message other)BatchJob.BuildermergeMetadata(BatchJob.BatchJobMetadata value)Output only.BatchJob.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchJob.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BatchJob.BuildersetId(long value)Output only.BatchJob.BuildersetLongRunningOperation(java.lang.String value)Output only.BatchJob.BuildersetLongRunningOperationBytes(com.google.protobuf.ByteString value)Output only.BatchJob.BuildersetMetadata(BatchJob.BatchJobMetadata value)Output only.BatchJob.BuildersetMetadata(BatchJob.BatchJobMetadata.Builder builderForValue)Output only.BatchJob.BuildersetNextAddSequenceToken(java.lang.String value)Output only.BatchJob.BuildersetNextAddSequenceTokenBytes(com.google.protobuf.ByteString value)Output only.BatchJob.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BatchJob.BuildersetResourceName(java.lang.String value)Immutable.BatchJob.BuildersetResourceNameBytes(com.google.protobuf.ByteString value)Immutable.BatchJob.BuildersetStatus(BatchJobStatusEnum.BatchJobStatus value)Output only.BatchJob.BuildersetStatusValue(int value)Output only.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public BatchJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchJob build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchJob buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchJob.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
clearField
public BatchJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
clearOneof
public BatchJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
mergeFrom
public BatchJob.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchJob.Builder>
-
mergeFrom
public BatchJob.Builder mergeFrom(BatchJob other)
-
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 java.io.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:
java.io.IOException
-
getResourceName
public java.lang.String 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
public BatchJob.Builder setResourceName(java.lang.String value)
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
public BatchJob.Builder 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
public BatchJob.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
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
public BatchJob.Builder setId(long value)
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
public BatchJob.Builder 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
public java.lang.String 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
public BatchJob.Builder setNextAddSequenceToken(java.lang.String value)
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
public BatchJob.Builder 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
public BatchJob.Builder setNextAddSequenceTokenBytes(com.google.protobuf.ByteString value)
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.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasMetadatain interfaceBatchJobOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public BatchJob.BatchJobMetadata getMetadata()
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMetadatain interfaceBatchJobOrBuilder- Returns:
- The metadata.
-
setMetadata
public BatchJob.Builder setMetadata(BatchJob.BatchJobMetadata value)
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setMetadata
public BatchJob.Builder setMetadata(BatchJob.BatchJobMetadata.Builder builderForValue)
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeMetadata
public BatchJob.Builder mergeMetadata(BatchJob.BatchJobMetadata value)
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearMetadata
public BatchJob.Builder clearMetadata()
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMetadataBuilder
public BatchJob.BatchJobMetadata.Builder getMetadataBuilder()
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.resources.BatchJob.BatchJobMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getMetadataOrBuilder
public BatchJob.BatchJobMetadataOrBuilder getMetadataOrBuilder()
Output only. Contains additional information about this batch job.
.google.ads.googleads.v10.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.v10.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
public BatchJob.Builder setStatusValue(int value)
Output only. Status of this batch job.
.google.ads.googleads.v10.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
public BatchJobStatusEnum.BatchJobStatus getStatus()
Output only. Status of this batch job.
.google.ads.googleads.v10.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceBatchJobOrBuilder- Returns:
- The status.
-
setStatus
public BatchJob.Builder setStatus(BatchJobStatusEnum.BatchJobStatus value)
Output only. Status of this batch job.
.google.ads.googleads.v10.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public BatchJob.Builder clearStatus()
Output only. Status of this batch job.
.google.ads.googleads.v10.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
public java.lang.String 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
public BatchJob.Builder setLongRunningOperation(java.lang.String value)
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
public BatchJob.Builder 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
public BatchJob.Builder setLongRunningOperationBytes(com.google.protobuf.ByteString value)
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
public final BatchJob.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
mergeUnknownFields
public final BatchJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchJob.Builder>
-
-