Class Video.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
- com.google.ads.googleads.v9.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
,java.lang.Cloneable
- Enclosing class:
- Video
public static final class Video.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Video.Builder> implements VideoOrBuilder
A video.
Protobuf typegoogle.ads.googleads.v9.resources.Video
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Video.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Video
build()
Video
buildPartial()
Video.Builder
clear()
Video.Builder
clearChannelId()
Output only.Video.Builder
clearDurationMillis()
Output only.Video.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Video.Builder
clearId()
Output only.Video.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Video.Builder
clearResourceName()
Output only.Video.Builder
clearTitle()
Output only.Video.Builder
clone()
java.lang.String
getChannelId()
Output only.com.google.protobuf.ByteString
getChannelIdBytes()
Output only.Video
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getDurationMillis()
Output only.java.lang.String
getId()
Output only.com.google.protobuf.ByteString
getIdBytes()
Output only.java.lang.String
getResourceName()
Output only.com.google.protobuf.ByteString
getResourceNameBytes()
Output only.java.lang.String
getTitle()
Output only.com.google.protobuf.ByteString
getTitleBytes()
Output only.boolean
hasChannelId()
Output only.boolean
hasDurationMillis()
Output only.boolean
hasId()
Output only.boolean
hasTitle()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Video.Builder
mergeFrom(Video other)
Video.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Video.Builder
mergeFrom(com.google.protobuf.Message other)
Video.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Video.Builder
setChannelId(java.lang.String value)
Output only.Video.Builder
setChannelIdBytes(com.google.protobuf.ByteString value)
Output only.Video.Builder
setDurationMillis(long value)
Output only.Video.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Video.Builder
setId(java.lang.String value)
Output only.Video.Builder
setIdBytes(com.google.protobuf.ByteString value)
Output only.Video.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Video.Builder
setResourceName(java.lang.String value)
Output only.Video.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Output only.Video.Builder
setTitle(java.lang.String value)
Output only.Video.Builder
setTitleBytes(com.google.protobuf.ByteString value)
Output only.Video.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
clear
public Video.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
getDefaultInstanceForType
public Video getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Video build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Video buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Video.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
setField
public Video.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
clearField
public Video.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
clearOneof
public Video.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
setRepeatedField
public Video.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
addRepeatedField
public Video.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
mergeFrom
public Video.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Video.Builder>
-
mergeFrom
public Video.Builder mergeFrom(Video other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
mergeFrom
public Video.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Video.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String 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:
getResourceName
in 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:
getResourceNameBytes
in interfaceVideoOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public Video.Builder setResourceName(java.lang.String value)
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
public Video.Builder 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
public Video.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
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:
hasId
in interfaceVideoOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public java.lang.String getId()
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getId
in 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:
getIdBytes
in interfaceVideoOrBuilder
- Returns:
- The bytes for id.
-
setId
public Video.Builder setId(java.lang.String value)
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
public Video.Builder clearId()
Output only. The ID of the video.
optional string id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setIdBytes
public Video.Builder setIdBytes(com.google.protobuf.ByteString value)
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:
hasChannelId
in interfaceVideoOrBuilder
- Returns:
- Whether the channelId field is set.
-
getChannelId
public java.lang.String getChannelId()
Output only. The owner channel id of the video.
optional string channel_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getChannelId
in 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:
getChannelIdBytes
in interfaceVideoOrBuilder
- Returns:
- The bytes for channelId.
-
setChannelId
public Video.Builder setChannelId(java.lang.String value)
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
public Video.Builder 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
public Video.Builder setChannelIdBytes(com.google.protobuf.ByteString value)
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:
hasDurationMillis
in 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:
getDurationMillis
in interfaceVideoOrBuilder
- Returns:
- The durationMillis.
-
setDurationMillis
public Video.Builder setDurationMillis(long value)
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
public Video.Builder 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:
hasTitle
in interfaceVideoOrBuilder
- Returns:
- Whether the title field is set.
-
getTitle
public java.lang.String getTitle()
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTitle
in 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:
getTitleBytes
in interfaceVideoOrBuilder
- Returns:
- The bytes for title.
-
setTitle
public Video.Builder setTitle(java.lang.String value)
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
public Video.Builder clearTitle()
Output only. The title of the video.
optional string title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setTitleBytes
public Video.Builder setTitleBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Video.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
mergeUnknownFields
public final Video.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Video.Builder>
-
-