Class Video.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Video.Builder>
com.google.ads.googleads.v23.resources.Video.Builder
- All Implemented Interfaces:
VideoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Video
public static final class Video.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Video.Builder>
implements VideoOrBuilder
A video. If the video has any enhancements, the stats on all of them will be aggregated and displayed on this video resource. To get stats for a specific enhancement, use the VideoEnhancement resource instead.Protobuf type
google.ads.googleads.v23.resources.Video-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.clearId()Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongOutput only.getId()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getTitle()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanhasId()Output only.booleanhasTitle()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setChannelId(String value) Output only.setChannelIdBytes(com.google.protobuf.ByteString value) Output only.setDurationMillis(long value) Output only.Output only.setIdBytes(com.google.protobuf.ByteString value) Output only.setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString 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<Video.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<Video.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<Video.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<Video.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Video.Builder>
-
mergeFrom
public Video.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<Video.Builder>- Throws:
IOException
-
getResourceName
Output only. The resource name of the video. Video resource names have the form: `customers/{customer_id}/videos/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceVideoOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()Output only. The resource name of the video. Video resource names have the form: `customers/{customer_id}/videos/{video_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceVideoOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
Output only. The resource name of the video. Video resource names have the form: `customers/{customer_id}/videos/{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. Video resource names have the form: `customers/{customer_id}/videos/{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. Video resource names have the form: `customers/{customer_id}/videos/{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.
-
hasId
public boolean hasId()Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIdin interfaceVideoOrBuilder- Returns:
- Whether the id field is set.
-
getId
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceVideoOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceVideoOrBuilder- Returns:
- The bytes for id.
-
setId
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIdBytes
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasChannelId
public boolean hasChannelId()Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasChannelIdin interfaceVideoOrBuilder- Returns:
- Whether the channelId field is set.
-
getChannelId
Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChannelIdin interfaceVideoOrBuilder- Returns:
- The channelId.
-
getChannelIdBytes
public com.google.protobuf.ByteString getChannelIdBytes()Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getChannelIdBytesin interfaceVideoOrBuilder- Returns:
- The bytes for channelId.
-
setChannelId
Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The channelId to set.- Returns:
- This builder for chaining.
-
clearChannelId
Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setChannelIdBytes
Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for channelId to set.- Returns:
- This builder for chaining.
-
hasDurationMillis
public boolean hasDurationMillis()Output only. The duration of the video in milliseconds.
optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDurationMillisin interfaceVideoOrBuilder- Returns:
- Whether the durationMillis field is set.
-
getDurationMillis
public long getDurationMillis()Output only. The duration of the video in milliseconds.
optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDurationMillisin interfaceVideoOrBuilder- Returns:
- The durationMillis.
-
setDurationMillis
Output only. The duration of the video in milliseconds.
optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The durationMillis to set.- Returns:
- This builder for chaining.
-
clearDurationMillis
Output only. The duration of the video in milliseconds.
optional int64 duration_millis = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasTitle
public boolean hasTitle()Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTitlein interfaceVideoOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTitlein interfaceVideoOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTitleBytesin interfaceVideoOrBuilder- Returns:
- The bytes for title.
-
setTitle
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTitleBytes
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-