implements
// @@protoc_insertion_point(builder_implements:clarifai.api.Video)
com.clarifai.grpc.api.VideoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Video_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Video_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.Video.class, com.clarifai.grpc.api.Video.Builder.class);
}
// Construct using com.clarifai.grpc.api.Video.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
url_ = "";
base64_ = com.google.protobuf.ByteString.EMPTY;
allowDuplicateUrl_ = false;
thumbnailUrl_ = "";
if (hostedBuilder_ == null) {
hosted_ = null;
} else {
hosted_ = null;
hostedBuilder_ = null;
}
if (hostedThumbnailBuilder_ == null) {
hostedThumbnail_ = null;
} else {
hostedThumbnail_ = null;
hostedThumbnailBuilder_ = null;
}
if (videoInfoBuilder_ == null) {
videoInfo_ = null;
} else {
videoInfo_ = null;
videoInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Video_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.Video getDefaultInstanceForType() {
return com.clarifai.grpc.api.Video.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.Video build() {
com.clarifai.grpc.api.Video result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.Video buildPartial() {
com.clarifai.grpc.api.Video result = new com.clarifai.grpc.api.Video(this);
result.url_ = url_;
result.base64_ = base64_;
result.allowDuplicateUrl_ = allowDuplicateUrl_;
result.thumbnailUrl_ = thumbnailUrl_;
if (hostedBuilder_ == null) {
result.hosted_ = hosted_;
} else {
result.hosted_ = hostedBuilder_.build();
}
if (hostedThumbnailBuilder_ == null) {
result.hostedThumbnail_ = hostedThumbnail_;
} else {
result.hostedThumbnail_ = hostedThumbnailBuilder_.build();
}
if (videoInfoBuilder_ == null) {
result.videoInfo_ = videoInfo_;
} else {
result.videoInfo_ = videoInfoBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.clarifai.grpc.api.Video) {
return mergeFrom((com.clarifai.grpc.api.Video)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.Video other) {
if (other == com.clarifai.grpc.api.Video.getDefaultInstance()) return this;
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
onChanged();
}
if (other.getBase64() != com.google.protobuf.ByteString.EMPTY) {
setBase64(other.getBase64());
}
if (other.getAllowDuplicateUrl() != false) {
setAllowDuplicateUrl(other.getAllowDuplicateUrl());
}
if (!other.getThumbnailUrl().isEmpty()) {
thumbnailUrl_ = other.thumbnailUrl_;
onChanged();
}
if (other.hasHosted()) {
mergeHosted(other.getHosted());
}
if (other.hasHostedThumbnail()) {
mergeHostedThumbnail(other.getHostedThumbnail());
}
if (other.hasVideoInfo()) {
mergeVideoInfo(other.getVideoInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.Video parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.Video) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object url_ = "";
/**
*
* This is a URL to a publicly accessible video file. The platform will download this file server
* side and then process.
*
*
* string url = 1;
* @return The url.
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
url_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is a URL to a publicly accessible video file. The platform will download this file server
* side and then process.
*
*
* string url = 1;
* @return The bytes for url.
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is a URL to a publicly accessible video file. The platform will download this file server
* side and then process.
*
*
* string url = 1;
* @param value The url to set.
* @return This builder for chaining.
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
url_ = value;
onChanged();
return this;
}
/**
*
* This is a URL to a publicly accessible video file. The platform will download this file server
* side and then process.
*
*
* string url = 1;
* @return This builder for chaining.
*/
public Builder clearUrl() {
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
*
* This is a URL to a publicly accessible video file. The platform will download this file server
* side and then process.
*
*
* string url = 1;
* @param value The bytes for url to set.
* @return This builder for chaining.
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
url_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString base64_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The base64 field is using video file bytes directly in the request.
* NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
* the name here).
* When using our grpc clients, you DO NOT need to base64 encode
* it yourself since the clients know how to do this for you automatically and will avoid the
* base64 encoding if they send a binary request.
*
*
* bytes base64 = 2;
* @return The base64.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBase64() {
return base64_;
}
/**
*
* The base64 field is using video file bytes directly in the request.
* NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
* the name here).
* When using our grpc clients, you DO NOT need to base64 encode
* it yourself since the clients know how to do this for you automatically and will avoid the
* base64 encoding if they send a binary request.
*
*
* bytes base64 = 2;
* @param value The base64 to set.
* @return This builder for chaining.
*/
public Builder setBase64(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
base64_ = value;
onChanged();
return this;
}
/**
*
* The base64 field is using video file bytes directly in the request.
* NOTE: if you're sending a json request, then this MUST be base64 encoded before sending (hence
* the name here).
* When using our grpc clients, you DO NOT need to base64 encode
* it yourself since the clients know how to do this for you automatically and will avoid the
* base64 encoding if they send a binary request.
*
*
* bytes base64 = 2;
* @return This builder for chaining.
*/
public Builder clearBase64() {
base64_ = getDefaultInstance().getBase64();
onChanged();
return this;
}
private boolean allowDuplicateUrl_ ;
/**
* bool allow_duplicate_url = 4;
* @return The allowDuplicateUrl.
*/
@java.lang.Override
public boolean getAllowDuplicateUrl() {
return allowDuplicateUrl_;
}
/**
* bool allow_duplicate_url = 4;
* @param value The allowDuplicateUrl to set.
* @return This builder for chaining.
*/
public Builder setAllowDuplicateUrl(boolean value) {
allowDuplicateUrl_ = value;
onChanged();
return this;
}
/**
* bool allow_duplicate_url = 4;
* @return This builder for chaining.
*/
public Builder clearAllowDuplicateUrl() {
allowDuplicateUrl_ = false;
onChanged();
return this;
}
private java.lang.Object thumbnailUrl_ = "";
/**
*
* URL of thumbnail image, which is currently frame at position of 1s. This field is currently
* used only in response.
* Deprecated in favour of thumbnail_hosted, which also contains alternate sizes of thumbnail
*
*
* string thumbnail_url = 5 [deprecated = true];
* @deprecated clarifai.api.Video.thumbnail_url is deprecated.
* See proto/clarifai/api/resources.proto;l=2660
* @return The thumbnailUrl.
*/
@java.lang.Deprecated public java.lang.String getThumbnailUrl() {
java.lang.Object ref = thumbnailUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
thumbnailUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL of thumbnail image, which is currently frame at position of 1s. This field is currently
* used only in response.
* Deprecated in favour of thumbnail_hosted, which also contains alternate sizes of thumbnail
*
*
* string thumbnail_url = 5 [deprecated = true];
* @deprecated clarifai.api.Video.thumbnail_url is deprecated.
* See proto/clarifai/api/resources.proto;l=2660
* @return The bytes for thumbnailUrl.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getThumbnailUrlBytes() {
java.lang.Object ref = thumbnailUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
thumbnailUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL of thumbnail image, which is currently frame at position of 1s. This field is currently
* used only in response.
* Deprecated in favour of thumbnail_hosted, which also contains alternate sizes of thumbnail
*
*
* string thumbnail_url = 5 [deprecated = true];
* @deprecated clarifai.api.Video.thumbnail_url is deprecated.
* See proto/clarifai/api/resources.proto;l=2660
* @param value The thumbnailUrl to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setThumbnailUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
thumbnailUrl_ = value;
onChanged();
return this;
}
/**
*
* URL of thumbnail image, which is currently frame at position of 1s. This field is currently
* used only in response.
* Deprecated in favour of thumbnail_hosted, which also contains alternate sizes of thumbnail
*
*
* string thumbnail_url = 5 [deprecated = true];
* @deprecated clarifai.api.Video.thumbnail_url is deprecated.
* See proto/clarifai/api/resources.proto;l=2660
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearThumbnailUrl() {
thumbnailUrl_ = getDefaultInstance().getThumbnailUrl();
onChanged();
return this;
}
/**
*
* URL of thumbnail image, which is currently frame at position of 1s. This field is currently
* used only in response.
* Deprecated in favour of thumbnail_hosted, which also contains alternate sizes of thumbnail
*
*
* string thumbnail_url = 5 [deprecated = true];
* @deprecated clarifai.api.Video.thumbnail_url is deprecated.
* See proto/clarifai/api/resources.proto;l=2660
* @param value The bytes for thumbnailUrl to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setThumbnailUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
thumbnailUrl_ = value;
onChanged();
return this;
}
private com.clarifai.grpc.api.HostedURL hosted_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder> hostedBuilder_;
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
* @return Whether the hosted field is set.
*/
public boolean hasHosted() {
return hostedBuilder_ != null || hosted_ != null;
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
* @return The hosted.
*/
public com.clarifai.grpc.api.HostedURL getHosted() {
if (hostedBuilder_ == null) {
return hosted_ == null ? com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hosted_;
} else {
return hostedBuilder_.getMessage();
}
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public Builder setHosted(com.clarifai.grpc.api.HostedURL value) {
if (hostedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hosted_ = value;
onChanged();
} else {
hostedBuilder_.setMessage(value);
}
return this;
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public Builder setHosted(
com.clarifai.grpc.api.HostedURL.Builder builderForValue) {
if (hostedBuilder_ == null) {
hosted_ = builderForValue.build();
onChanged();
} else {
hostedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public Builder mergeHosted(com.clarifai.grpc.api.HostedURL value) {
if (hostedBuilder_ == null) {
if (hosted_ != null) {
hosted_ =
com.clarifai.grpc.api.HostedURL.newBuilder(hosted_).mergeFrom(value).buildPartial();
} else {
hosted_ = value;
}
onChanged();
} else {
hostedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public Builder clearHosted() {
if (hostedBuilder_ == null) {
hosted_ = null;
onChanged();
} else {
hosted_ = null;
hostedBuilder_ = null;
}
return this;
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public com.clarifai.grpc.api.HostedURL.Builder getHostedBuilder() {
onChanged();
return getHostedFieldBuilder().getBuilder();
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
public com.clarifai.grpc.api.HostedURLOrBuilder getHostedOrBuilder() {
if (hostedBuilder_ != null) {
return hostedBuilder_.getMessageOrBuilder();
} else {
return hosted_ == null ?
com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hosted_;
}
}
/**
*
* The hosted field lists original video hosted in Clarifai storage. This field is currently used
* only in response.
*
*
* .clarifai.api.HostedURL hosted = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder>
getHostedFieldBuilder() {
if (hostedBuilder_ == null) {
hostedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder>(
getHosted(),
getParentForChildren(),
isClean());
hosted_ = null;
}
return hostedBuilder_;
}
private com.clarifai.grpc.api.HostedURL hostedThumbnail_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder> hostedThumbnailBuilder_;
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
* @return Whether the hostedThumbnail field is set.
*/
public boolean hasHostedThumbnail() {
return hostedThumbnailBuilder_ != null || hostedThumbnail_ != null;
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
* @return The hostedThumbnail.
*/
public com.clarifai.grpc.api.HostedURL getHostedThumbnail() {
if (hostedThumbnailBuilder_ == null) {
return hostedThumbnail_ == null ? com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hostedThumbnail_;
} else {
return hostedThumbnailBuilder_.getMessage();
}
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public Builder setHostedThumbnail(com.clarifai.grpc.api.HostedURL value) {
if (hostedThumbnailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hostedThumbnail_ = value;
onChanged();
} else {
hostedThumbnailBuilder_.setMessage(value);
}
return this;
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public Builder setHostedThumbnail(
com.clarifai.grpc.api.HostedURL.Builder builderForValue) {
if (hostedThumbnailBuilder_ == null) {
hostedThumbnail_ = builderForValue.build();
onChanged();
} else {
hostedThumbnailBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public Builder mergeHostedThumbnail(com.clarifai.grpc.api.HostedURL value) {
if (hostedThumbnailBuilder_ == null) {
if (hostedThumbnail_ != null) {
hostedThumbnail_ =
com.clarifai.grpc.api.HostedURL.newBuilder(hostedThumbnail_).mergeFrom(value).buildPartial();
} else {
hostedThumbnail_ = value;
}
onChanged();
} else {
hostedThumbnailBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public Builder clearHostedThumbnail() {
if (hostedThumbnailBuilder_ == null) {
hostedThumbnail_ = null;
onChanged();
} else {
hostedThumbnail_ = null;
hostedThumbnailBuilder_ = null;
}
return this;
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public com.clarifai.grpc.api.HostedURL.Builder getHostedThumbnailBuilder() {
onChanged();
return getHostedThumbnailFieldBuilder().getBuilder();
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
public com.clarifai.grpc.api.HostedURLOrBuilder getHostedThumbnailOrBuilder() {
if (hostedThumbnailBuilder_ != null) {
return hostedThumbnailBuilder_.getMessageOrBuilder();
} else {
return hostedThumbnail_ == null ?
com.clarifai.grpc.api.HostedURL.getDefaultInstance() : hostedThumbnail_;
}
}
/**
*
* The hosted field lists various sizes of the vide thumbnail hosted in Clarifai storage, with 'thumbnail' as the full size
* This field is currently used only in response.
*
*
* .clarifai.api.HostedURL hosted_thumbnail = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder>
getHostedThumbnailFieldBuilder() {
if (hostedThumbnailBuilder_ == null) {
hostedThumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.HostedURL, com.clarifai.grpc.api.HostedURL.Builder, com.clarifai.grpc.api.HostedURLOrBuilder>(
getHostedThumbnail(),
getParentForChildren(),
isClean());
hostedThumbnail_ = null;
}
return hostedThumbnailBuilder_;
}
private com.clarifai.grpc.api.VideoInfo videoInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.VideoInfo, com.clarifai.grpc.api.VideoInfo.Builder, com.clarifai.grpc.api.VideoInfoOrBuilder> videoInfoBuilder_;
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
* @return Whether the videoInfo field is set.
*/
public boolean hasVideoInfo() {
return videoInfoBuilder_ != null || videoInfo_ != null;
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
* @return The videoInfo.
*/
public com.clarifai.grpc.api.VideoInfo getVideoInfo() {
if (videoInfoBuilder_ == null) {
return videoInfo_ == null ? com.clarifai.grpc.api.VideoInfo.getDefaultInstance() : videoInfo_;
} else {
return videoInfoBuilder_.getMessage();
}
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public Builder setVideoInfo(com.clarifai.grpc.api.VideoInfo value) {
if (videoInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
videoInfo_ = value;
onChanged();
} else {
videoInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public Builder setVideoInfo(
com.clarifai.grpc.api.VideoInfo.Builder builderForValue) {
if (videoInfoBuilder_ == null) {
videoInfo_ = builderForValue.build();
onChanged();
} else {
videoInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public Builder mergeVideoInfo(com.clarifai.grpc.api.VideoInfo value) {
if (videoInfoBuilder_ == null) {
if (videoInfo_ != null) {
videoInfo_ =
com.clarifai.grpc.api.VideoInfo.newBuilder(videoInfo_).mergeFrom(value).buildPartial();
} else {
videoInfo_ = value;
}
onChanged();
} else {
videoInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public Builder clearVideoInfo() {
if (videoInfoBuilder_ == null) {
videoInfo_ = null;
onChanged();
} else {
videoInfo_ = null;
videoInfoBuilder_ = null;
}
return this;
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public com.clarifai.grpc.api.VideoInfo.Builder getVideoInfoBuilder() {
onChanged();
return getVideoInfoFieldBuilder().getBuilder();
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
public com.clarifai.grpc.api.VideoInfoOrBuilder getVideoInfoOrBuilder() {
if (videoInfoBuilder_ != null) {
return videoInfoBuilder_.getMessageOrBuilder();
} else {
return videoInfo_ == null ?
com.clarifai.grpc.api.VideoInfo.getDefaultInstance() : videoInfo_;
}
}
/**
*
* video info
*
*
* .clarifai.api.VideoInfo video_info = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.VideoInfo, com.clarifai.grpc.api.VideoInfo.Builder, com.clarifai.grpc.api.VideoInfoOrBuilder>
getVideoInfoFieldBuilder() {
if (videoInfoBuilder_ == null) {
videoInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.clarifai.grpc.api.VideoInfo, com.clarifai.grpc.api.VideoInfo.Builder, com.clarifai.grpc.api.VideoInfoOrBuilder>(
getVideoInfo(),
getParentForChildren(),
isClean());
videoInfo_ = null;
}
return videoInfoBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.Video)
}
// @@protoc_insertion_point(class_scope:clarifai.api.Video)
private static final com.clarifai.grpc.api.Video DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.Video();
}
public static com.clarifai.grpc.api.Video getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser