Class VideoEnhancement.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder>
com.google.ads.googleads.v23.resources.VideoEnhancement.Builder
- All Implemented Interfaces:
VideoEnhancementOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoEnhancement
public static final class VideoEnhancement.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder>
implements VideoEnhancementOrBuilder
Represents a video that can include both advertiser uploaded videos or
enhancements generated from the advertiser uploaded videos. Only publicly
available videos are returned.
Each row in this resource represents either the video uploaded by the
advertiser or each specific variation of it. In contrast, the `Video`
resource represents only the advertiser-provided video and would aggregate
metrics across all its variations (including enhancements).
{-- next tag to use: 5 --}
Protobuf type google.ads.googleads.v23.resources.VideoEnhancement-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.getTitle()Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VideoEnhancement other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDurationMillis(long value) Output only.setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.Output only.setSourceValue(int value) Output only.Output only.setTitleBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.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.GeneratedMessage.Builder<VideoEnhancement.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VideoEnhancement.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoEnhancement.Builder>
-
mergeFrom
public VideoEnhancement.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<VideoEnhancement.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the video enhancement. Video enhancement resource names have the form: `customers/{customer_id}/videoEnhancements/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceVideoEnhancementOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the video enhancement. Video enhancement resource names have the form: `customers/{customer_id}/videoEnhancements/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceVideoEnhancementOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the video enhancement. Video enhancement resource names have the form: `customers/{customer_id}/videoEnhancements/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
Output only. The resource name of the video enhancement. Video enhancement resource names have the form: `customers/{customer_id}/videoEnhancements/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
Output only. The resource name of the video enhancement. Video enhancement resource names have the form: `customers/{customer_id}/videoEnhancements/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
getDurationMillis
public long getDurationMillis()Output only. Duration of this video, in milliseconds.
int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDurationMillisin interfaceVideoEnhancementOrBuilder- Returns:
- The durationMillis.
-
setDurationMillis
Output only. Duration of this video, in milliseconds.
int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The durationMillis to set.- Returns:
- This builder for chaining.
-
clearDurationMillis
Output only. Duration of this video, in milliseconds.
int64 duration_millis = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getSourceValue
public int getSourceValue()Output only. The source of the video (e.g. advertiser or enhanced by Google Ads).
.google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceValuein interfaceVideoEnhancementOrBuilder- Returns:
- The enum numeric value on the wire for source.
-
setSourceValue
Output only. The source of the video (e.g. advertiser or enhanced by Google Ads).
.google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for source to set.- Returns:
- This builder for chaining.
-
getSource
Output only. The source of the video (e.g. advertiser or enhanced by Google Ads).
.google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourcein interfaceVideoEnhancementOrBuilder- Returns:
- The source.
-
setSource
Output only. The source of the video (e.g. advertiser or enhanced by Google Ads).
.google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Output only. The source of the video (e.g. advertiser or enhanced by Google Ads).
.google.ads.googleads.v23.enums.VideoEnhancementSourceEnum.VideoEnhancementSource source = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTitle
Output only. Title of this video.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTitlein interfaceVideoEnhancementOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Output only. Title of this video.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTitleBytesin interfaceVideoEnhancementOrBuilder- Returns:
- The bytes for title.
-
setTitle
Output only. Title of this video.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Output only. Title of this video.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTitleBytes
Output only. Title of this video.
string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-