All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.Data Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * Data
 * 
* * Protobuf type {@code clarifai.api.Data} */ public final class Data extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.Data) DataOrBuilder { private static final long serialVersionUID = 0L; // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Data() { concepts_ = java.util.Collections.emptyList(); colors_ = java.util.Collections.emptyList(); clusters_ = java.util.Collections.emptyList(); embeddings_ = java.util.Collections.emptyList(); regions_ = java.util.Collections.emptyList(); frames_ = java.util.Collections.emptyList(); tracks_ = java.util.Collections.emptyList(); timeSegments_ = java.util.Collections.emptyList(); hits_ = java.util.Collections.emptyList(); heatmaps_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Data(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Data( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.clarifai.grpc.api.Image.Builder subBuilder = null; if (image_ != null) { subBuilder = image_.toBuilder(); } image_ = input.readMessage(com.clarifai.grpc.api.Image.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(image_); image_ = subBuilder.buildPartial(); } break; } case 18: { com.clarifai.grpc.api.Video.Builder subBuilder = null; if (video_ != null) { subBuilder = video_.toBuilder(); } video_ = input.readMessage(com.clarifai.grpc.api.Video.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(video_); video_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { concepts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } concepts_.add( input.readMessage(com.clarifai.grpc.api.Concept.parser(), extensionRegistry)); break; } case 42: { com.google.protobuf.Struct.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } break; } case 50: { com.clarifai.grpc.api.Geo.Builder subBuilder = null; if (geo_ != null) { subBuilder = geo_.toBuilder(); } geo_ = input.readMessage(com.clarifai.grpc.api.Geo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(geo_); geo_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { colors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } colors_.add( input.readMessage(com.clarifai.grpc.api.Color.parser(), extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { clusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } clusters_.add( input.readMessage(com.clarifai.grpc.api.Cluster.parser(), extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { embeddings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } embeddings_.add( input.readMessage(com.clarifai.grpc.api.Embedding.parser(), extensionRegistry)); break; } case 90: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } regions_.add( input.readMessage(com.clarifai.grpc.api.Region.parser(), extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000020) != 0)) { frames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } frames_.add( input.readMessage(com.clarifai.grpc.api.Frame.parser(), extensionRegistry)); break; } case 106: { com.clarifai.grpc.api.Text.Builder subBuilder = null; if (text_ != null) { subBuilder = text_.toBuilder(); } text_ = input.readMessage(com.clarifai.grpc.api.Text.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(text_); text_ = subBuilder.buildPartial(); } break; } case 114: { com.clarifai.grpc.api.Audio.Builder subBuilder = null; if (audio_ != null) { subBuilder = audio_.toBuilder(); } audio_ = input.readMessage(com.clarifai.grpc.api.Audio.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(audio_); audio_ = subBuilder.buildPartial(); } break; } case 122: { if (!((mutable_bitField0_ & 0x00000040) != 0)) { tracks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } tracks_.add( input.readMessage(com.clarifai.grpc.api.Track.parser(), extensionRegistry)); break; } case 130: { if (!((mutable_bitField0_ & 0x00000080) != 0)) { timeSegments_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } timeSegments_.add( input.readMessage(com.clarifai.grpc.api.TimeSegment.parser(), extensionRegistry)); break; } case 138: { if (!((mutable_bitField0_ & 0x00000100) != 0)) { hits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } hits_.add( input.readMessage(com.clarifai.grpc.api.Hit.parser(), extensionRegistry)); break; } case 146: { if (!((mutable_bitField0_ & 0x00000200) != 0)) { heatmaps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } heatmaps_.add( input.readMessage(com.clarifai.grpc.api.Image.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { concepts_ = java.util.Collections.unmodifiableList(concepts_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { embeddings_ = java.util.Collections.unmodifiableList(embeddings_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { regions_ = java.util.Collections.unmodifiableList(regions_); } if (((mutable_bitField0_ & 0x00000020) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); } if (((mutable_bitField0_ & 0x00000040) != 0)) { tracks_ = java.util.Collections.unmodifiableList(tracks_); } if (((mutable_bitField0_ & 0x00000080) != 0)) { timeSegments_ = java.util.Collections.unmodifiableList(timeSegments_); } if (((mutable_bitField0_ & 0x00000100) != 0)) { hits_ = java.util.Collections.unmodifiableList(hits_); } if (((mutable_bitField0_ & 0x00000200) != 0)) { heatmaps_ = java.util.Collections.unmodifiableList(heatmaps_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Data.class, com.clarifai.grpc.api.Data.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; private com.clarifai.grpc.api.Image image_; /** *
   * Input and output images.
   * 
* * .clarifai.api.Image image = 1; * @return Whether the image field is set. */ @java.lang.Override public boolean hasImage() { return image_ != null; } /** *
   * Input and output images.
   * 
* * .clarifai.api.Image image = 1; * @return The image. */ @java.lang.Override public com.clarifai.grpc.api.Image getImage() { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } /** *
   * Input and output images.
   * 
* * .clarifai.api.Image image = 1; */ @java.lang.Override public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() { return getImage(); } public static final int VIDEO_FIELD_NUMBER = 2; private com.clarifai.grpc.api.Video video_; /** *
   * Input and output videos.
   * 
* * .clarifai.api.Video video = 2; * @return Whether the video field is set. */ @java.lang.Override public boolean hasVideo() { return video_ != null; } /** *
   * Input and output videos.
   * 
* * .clarifai.api.Video video = 2; * @return The video. */ @java.lang.Override public com.clarifai.grpc.api.Video getVideo() { return video_ == null ? com.clarifai.grpc.api.Video.getDefaultInstance() : video_; } /** *
   * Input and output videos.
   * 
* * .clarifai.api.Video video = 2; */ @java.lang.Override public com.clarifai.grpc.api.VideoOrBuilder getVideoOrBuilder() { return getVideo(); } public static final int CONCEPTS_FIELD_NUMBER = 3; private java.util.List concepts_; /** *
   * A list of concepts.
   * 
* * repeated .clarifai.api.Concept concepts = 3; */ @java.lang.Override public java.util.List getConceptsList() { return concepts_; } /** *
   * A list of concepts.
   * 
* * repeated .clarifai.api.Concept concepts = 3; */ @java.lang.Override public java.util.List getConceptsOrBuilderList() { return concepts_; } /** *
   * A list of concepts.
   * 
* * repeated .clarifai.api.Concept concepts = 3; */ @java.lang.Override public int getConceptsCount() { return concepts_.size(); } /** *
   * A list of concepts.
   * 
* * repeated .clarifai.api.Concept concepts = 3; */ @java.lang.Override public com.clarifai.grpc.api.Concept getConcepts(int index) { return concepts_.get(index); } /** *
   * A list of concepts.
   * 
* * repeated .clarifai.api.Concept concepts = 3; */ @java.lang.Override public com.clarifai.grpc.api.ConceptOrBuilder getConceptsOrBuilder( int index) { return concepts_.get(index); } public static final int METADATA_FIELD_NUMBER = 5; private com.google.protobuf.Struct metadata_; /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 5; * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return metadata_ != null; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 5; * @return The metadata. */ @java.lang.Override public com.google.protobuf.Struct getMetadata() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 5; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int GEO_FIELD_NUMBER = 6; private com.clarifai.grpc.api.Geo geo_; /** *
   * Geography information.
   * 
* * .clarifai.api.Geo geo = 6; * @return Whether the geo field is set. */ @java.lang.Override public boolean hasGeo() { return geo_ != null; } /** *
   * Geography information.
   * 
* * .clarifai.api.Geo geo = 6; * @return The geo. */ @java.lang.Override public com.clarifai.grpc.api.Geo getGeo() { return geo_ == null ? com.clarifai.grpc.api.Geo.getDefaultInstance() : geo_; } /** *
   * Geography information.
   * 
* * .clarifai.api.Geo geo = 6; */ @java.lang.Override public com.clarifai.grpc.api.GeoOrBuilder getGeoOrBuilder() { return getGeo(); } public static final int COLORS_FIELD_NUMBER = 7; private java.util.List colors_; /** *
   * The dominant colors within an image.
   * 
* * repeated .clarifai.api.Color colors = 7; */ @java.lang.Override public java.util.List getColorsList() { return colors_; } /** *
   * The dominant colors within an image.
   * 
* * repeated .clarifai.api.Color colors = 7; */ @java.lang.Override public java.util.List getColorsOrBuilderList() { return colors_; } /** *
   * The dominant colors within an image.
   * 
* * repeated .clarifai.api.Color colors = 7; */ @java.lang.Override public int getColorsCount() { return colors_.size(); } /** *
   * The dominant colors within an image.
   * 
* * repeated .clarifai.api.Color colors = 7; */ @java.lang.Override public com.clarifai.grpc.api.Color getColors(int index) { return colors_.get(index); } /** *
   * The dominant colors within an image.
   * 
* * repeated .clarifai.api.Color colors = 7; */ @java.lang.Override public com.clarifai.grpc.api.ColorOrBuilder getColorsOrBuilder( int index) { return colors_.get(index); } public static final int CLUSTERS_FIELD_NUMBER = 8; private java.util.List clusters_; /** *
   * Clustering centroids for inputs.
   * 
* * repeated .clarifai.api.Cluster clusters = 8; */ @java.lang.Override public java.util.List getClustersList() { return clusters_; } /** *
   * Clustering centroids for inputs.
   * 
* * repeated .clarifai.api.Cluster clusters = 8; */ @java.lang.Override public java.util.List getClustersOrBuilderList() { return clusters_; } /** *
   * Clustering centroids for inputs.
   * 
* * repeated .clarifai.api.Cluster clusters = 8; */ @java.lang.Override public int getClustersCount() { return clusters_.size(); } /** *
   * Clustering centroids for inputs.
   * 
* * repeated .clarifai.api.Cluster clusters = 8; */ @java.lang.Override public com.clarifai.grpc.api.Cluster getClusters(int index) { return clusters_.get(index); } /** *
   * Clustering centroids for inputs.
   * 
* * repeated .clarifai.api.Cluster clusters = 8; */ @java.lang.Override public com.clarifai.grpc.api.ClusterOrBuilder getClustersOrBuilder( int index) { return clusters_.get(index); } public static final int EMBEDDINGS_FIELD_NUMBER = 9; private java.util.List embeddings_; /** *
   * Embedding vectors representing each input.
   * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ @java.lang.Override public java.util.List getEmbeddingsList() { return embeddings_; } /** *
   * Embedding vectors representing each input.
   * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ @java.lang.Override public java.util.List getEmbeddingsOrBuilderList() { return embeddings_; } /** *
   * Embedding vectors representing each input.
   * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ @java.lang.Override public int getEmbeddingsCount() { return embeddings_.size(); } /** *
   * Embedding vectors representing each input.
   * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ @java.lang.Override public com.clarifai.grpc.api.Embedding getEmbeddings(int index) { return embeddings_.get(index); } /** *
   * Embedding vectors representing each input.
   * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ @java.lang.Override public com.clarifai.grpc.api.EmbeddingOrBuilder getEmbeddingsOrBuilder( int index) { return embeddings_.get(index); } public static final int REGIONS_FIELD_NUMBER = 11; private java.util.List regions_; /** *
   * For recursing into localized regions of an input.
   * 
* * repeated .clarifai.api.Region regions = 11; */ @java.lang.Override public java.util.List getRegionsList() { return regions_; } /** *
   * For recursing into localized regions of an input.
   * 
* * repeated .clarifai.api.Region regions = 11; */ @java.lang.Override public java.util.List getRegionsOrBuilderList() { return regions_; } /** *
   * For recursing into localized regions of an input.
   * 
* * repeated .clarifai.api.Region regions = 11; */ @java.lang.Override public int getRegionsCount() { return regions_.size(); } /** *
   * For recursing into localized regions of an input.
   * 
* * repeated .clarifai.api.Region regions = 11; */ @java.lang.Override public com.clarifai.grpc.api.Region getRegions(int index) { return regions_.get(index); } /** *
   * For recursing into localized regions of an input.
   * 
* * repeated .clarifai.api.Region regions = 11; */ @java.lang.Override public com.clarifai.grpc.api.RegionOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } public static final int FRAMES_FIELD_NUMBER = 12; private java.util.List frames_; /** *
   * For temporal content like video.
   * 
* * repeated .clarifai.api.Frame frames = 12; */ @java.lang.Override public java.util.List getFramesList() { return frames_; } /** *
   * For temporal content like video.
   * 
* * repeated .clarifai.api.Frame frames = 12; */ @java.lang.Override public java.util.List getFramesOrBuilderList() { return frames_; } /** *
   * For temporal content like video.
   * 
* * repeated .clarifai.api.Frame frames = 12; */ @java.lang.Override public int getFramesCount() { return frames_.size(); } /** *
   * For temporal content like video.
   * 
* * repeated .clarifai.api.Frame frames = 12; */ @java.lang.Override public com.clarifai.grpc.api.Frame getFrames(int index) { return frames_.get(index); } /** *
   * For temporal content like video.
   * 
* * repeated .clarifai.api.Frame frames = 12; */ @java.lang.Override public com.clarifai.grpc.api.FrameOrBuilder getFramesOrBuilder( int index) { return frames_.get(index); } public static final int TEXT_FIELD_NUMBER = 13; private com.clarifai.grpc.api.Text text_; /** *
   * Input, output or annotation text.
   * 
* * .clarifai.api.Text text = 13; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return text_ != null; } /** *
   * Input, output or annotation text.
   * 
* * .clarifai.api.Text text = 13; * @return The text. */ @java.lang.Override public com.clarifai.grpc.api.Text getText() { return text_ == null ? com.clarifai.grpc.api.Text.getDefaultInstance() : text_; } /** *
   * Input, output or annotation text.
   * 
* * .clarifai.api.Text text = 13; */ @java.lang.Override public com.clarifai.grpc.api.TextOrBuilder getTextOrBuilder() { return getText(); } public static final int AUDIO_FIELD_NUMBER = 14; private com.clarifai.grpc.api.Audio audio_; /** *
   * Input and output audio.
   * 
* * .clarifai.api.Audio audio = 14; * @return Whether the audio field is set. */ @java.lang.Override public boolean hasAudio() { return audio_ != null; } /** *
   * Input and output audio.
   * 
* * .clarifai.api.Audio audio = 14; * @return The audio. */ @java.lang.Override public com.clarifai.grpc.api.Audio getAudio() { return audio_ == null ? com.clarifai.grpc.api.Audio.getDefaultInstance() : audio_; } /** *
   * Input and output audio.
   * 
* * .clarifai.api.Audio audio = 14; */ @java.lang.Override public com.clarifai.grpc.api.AudioOrBuilder getAudioOrBuilder() { return getAudio(); } public static final int TRACKS_FIELD_NUMBER = 15; private java.util.List tracks_; /** *
   * Track information.
   * 
* * repeated .clarifai.api.Track tracks = 15; */ @java.lang.Override public java.util.List getTracksList() { return tracks_; } /** *
   * Track information.
   * 
* * repeated .clarifai.api.Track tracks = 15; */ @java.lang.Override public java.util.List getTracksOrBuilderList() { return tracks_; } /** *
   * Track information.
   * 
* * repeated .clarifai.api.Track tracks = 15; */ @java.lang.Override public int getTracksCount() { return tracks_.size(); } /** *
   * Track information.
   * 
* * repeated .clarifai.api.Track tracks = 15; */ @java.lang.Override public com.clarifai.grpc.api.Track getTracks(int index) { return tracks_.get(index); } /** *
   * Track information.
   * 
* * repeated .clarifai.api.Track tracks = 15; */ @java.lang.Override public com.clarifai.grpc.api.TrackOrBuilder getTracksOrBuilder( int index) { return tracks_.get(index); } public static final int TIME_SEGMENTS_FIELD_NUMBER = 16; private java.util.List timeSegments_; /** *
   * Time segments information.
   * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ @java.lang.Override public java.util.List getTimeSegmentsList() { return timeSegments_; } /** *
   * Time segments information.
   * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ @java.lang.Override public java.util.List getTimeSegmentsOrBuilderList() { return timeSegments_; } /** *
   * Time segments information.
   * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ @java.lang.Override public int getTimeSegmentsCount() { return timeSegments_.size(); } /** *
   * Time segments information.
   * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ @java.lang.Override public com.clarifai.grpc.api.TimeSegment getTimeSegments(int index) { return timeSegments_.get(index); } /** *
   * Time segments information.
   * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ @java.lang.Override public com.clarifai.grpc.api.TimeSegmentOrBuilder getTimeSegmentsOrBuilder( int index) { return timeSegments_.get(index); } public static final int HITS_FIELD_NUMBER = 17; private java.util.List hits_; /** *
   * Holds score, rank, and user, app, input IDs and search hit data
   * 
* * repeated .clarifai.api.Hit hits = 17; */ @java.lang.Override public java.util.List getHitsList() { return hits_; } /** *
   * Holds score, rank, and user, app, input IDs and search hit data
   * 
* * repeated .clarifai.api.Hit hits = 17; */ @java.lang.Override public java.util.List getHitsOrBuilderList() { return hits_; } /** *
   * Holds score, rank, and user, app, input IDs and search hit data
   * 
* * repeated .clarifai.api.Hit hits = 17; */ @java.lang.Override public int getHitsCount() { return hits_.size(); } /** *
   * Holds score, rank, and user, app, input IDs and search hit data
   * 
* * repeated .clarifai.api.Hit hits = 17; */ @java.lang.Override public com.clarifai.grpc.api.Hit getHits(int index) { return hits_.get(index); } /** *
   * Holds score, rank, and user, app, input IDs and search hit data
   * 
* * repeated .clarifai.api.Hit hits = 17; */ @java.lang.Override public com.clarifai.grpc.api.HitOrBuilder getHitsOrBuilder( int index) { return hits_.get(index); } public static final int HEATMAPS_FIELD_NUMBER = 18; private java.util.List heatmaps_; /** *
   * Heatmap as 2d image
   * 
* * repeated .clarifai.api.Image heatmaps = 18; */ @java.lang.Override public java.util.List getHeatmapsList() { return heatmaps_; } /** *
   * Heatmap as 2d image
   * 
* * repeated .clarifai.api.Image heatmaps = 18; */ @java.lang.Override public java.util.List getHeatmapsOrBuilderList() { return heatmaps_; } /** *
   * Heatmap as 2d image
   * 
* * repeated .clarifai.api.Image heatmaps = 18; */ @java.lang.Override public int getHeatmapsCount() { return heatmaps_.size(); } /** *
   * Heatmap as 2d image
   * 
* * repeated .clarifai.api.Image heatmaps = 18; */ @java.lang.Override public com.clarifai.grpc.api.Image getHeatmaps(int index) { return heatmaps_.get(index); } /** *
   * Heatmap as 2d image
   * 
* * repeated .clarifai.api.Image heatmaps = 18; */ @java.lang.Override public com.clarifai.grpc.api.ImageOrBuilder getHeatmapsOrBuilder( int index) { return heatmaps_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (image_ != null) { output.writeMessage(1, getImage()); } if (video_ != null) { output.writeMessage(2, getVideo()); } for (int i = 0; i < concepts_.size(); i++) { output.writeMessage(3, concepts_.get(i)); } if (metadata_ != null) { output.writeMessage(5, getMetadata()); } if (geo_ != null) { output.writeMessage(6, getGeo()); } for (int i = 0; i < colors_.size(); i++) { output.writeMessage(7, colors_.get(i)); } for (int i = 0; i < clusters_.size(); i++) { output.writeMessage(8, clusters_.get(i)); } for (int i = 0; i < embeddings_.size(); i++) { output.writeMessage(9, embeddings_.get(i)); } for (int i = 0; i < regions_.size(); i++) { output.writeMessage(11, regions_.get(i)); } for (int i = 0; i < frames_.size(); i++) { output.writeMessage(12, frames_.get(i)); } if (text_ != null) { output.writeMessage(13, getText()); } if (audio_ != null) { output.writeMessage(14, getAudio()); } for (int i = 0; i < tracks_.size(); i++) { output.writeMessage(15, tracks_.get(i)); } for (int i = 0; i < timeSegments_.size(); i++) { output.writeMessage(16, timeSegments_.get(i)); } for (int i = 0; i < hits_.size(); i++) { output.writeMessage(17, hits_.get(i)); } for (int i = 0; i < heatmaps_.size(); i++) { output.writeMessage(18, heatmaps_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (image_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getImage()); } if (video_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getVideo()); } for (int i = 0; i < concepts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, concepts_.get(i)); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMetadata()); } if (geo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getGeo()); } for (int i = 0; i < colors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, colors_.get(i)); } for (int i = 0; i < clusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, clusters_.get(i)); } for (int i = 0; i < embeddings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, embeddings_.get(i)); } for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, regions_.get(i)); } for (int i = 0; i < frames_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, frames_.get(i)); } if (text_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getText()); } if (audio_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getAudio()); } for (int i = 0; i < tracks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, tracks_.get(i)); } for (int i = 0; i < timeSegments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, timeSegments_.get(i)); } for (int i = 0; i < hits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, hits_.get(i)); } for (int i = 0; i < heatmaps_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, heatmaps_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.Data)) { return super.equals(obj); } com.clarifai.grpc.api.Data other = (com.clarifai.grpc.api.Data) obj; if (hasImage() != other.hasImage()) return false; if (hasImage()) { if (!getImage() .equals(other.getImage())) return false; } if (hasVideo() != other.hasVideo()) return false; if (hasVideo()) { if (!getVideo() .equals(other.getVideo())) return false; } if (!getConceptsList() .equals(other.getConceptsList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (hasGeo() != other.hasGeo()) return false; if (hasGeo()) { if (!getGeo() .equals(other.getGeo())) return false; } if (!getColorsList() .equals(other.getColorsList())) return false; if (!getClustersList() .equals(other.getClustersList())) return false; if (!getEmbeddingsList() .equals(other.getEmbeddingsList())) return false; if (!getRegionsList() .equals(other.getRegionsList())) return false; if (!getFramesList() .equals(other.getFramesList())) return false; if (hasText() != other.hasText()) return false; if (hasText()) { if (!getText() .equals(other.getText())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { if (!getAudio() .equals(other.getAudio())) return false; } if (!getTracksList() .equals(other.getTracksList())) return false; if (!getTimeSegmentsList() .equals(other.getTimeSegmentsList())) return false; if (!getHitsList() .equals(other.getHitsList())) return false; if (!getHeatmapsList() .equals(other.getHeatmapsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasVideo()) { hash = (37 * hash) + VIDEO_FIELD_NUMBER; hash = (53 * hash) + getVideo().hashCode(); } if (getConceptsCount() > 0) { hash = (37 * hash) + CONCEPTS_FIELD_NUMBER; hash = (53 * hash) + getConceptsList().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (hasGeo()) { hash = (37 * hash) + GEO_FIELD_NUMBER; hash = (53 * hash) + getGeo().hashCode(); } if (getColorsCount() > 0) { hash = (37 * hash) + COLORS_FIELD_NUMBER; hash = (53 * hash) + getColorsList().hashCode(); } if (getClustersCount() > 0) { hash = (37 * hash) + CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getClustersList().hashCode(); } if (getEmbeddingsCount() > 0) { hash = (37 * hash) + EMBEDDINGS_FIELD_NUMBER; hash = (53 * hash) + getEmbeddingsList().hashCode(); } if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } if (getFramesCount() > 0) { hash = (37 * hash) + FRAMES_FIELD_NUMBER; hash = (53 * hash) + getFramesList().hashCode(); } if (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } if (hasAudio()) { hash = (37 * hash) + AUDIO_FIELD_NUMBER; hash = (53 * hash) + getAudio().hashCode(); } if (getTracksCount() > 0) { hash = (37 * hash) + TRACKS_FIELD_NUMBER; hash = (53 * hash) + getTracksList().hashCode(); } if (getTimeSegmentsCount() > 0) { hash = (37 * hash) + TIME_SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getTimeSegmentsList().hashCode(); } if (getHitsCount() > 0) { hash = (37 * hash) + HITS_FIELD_NUMBER; hash = (53 * hash) + getHitsList().hashCode(); } if (getHeatmapsCount() > 0) { hash = (37 * hash) + HEATMAPS_FIELD_NUMBER; hash = (53 * hash) + getHeatmapsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.Data parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Data parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Data parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Data parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Data parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.Data parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.Data prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Data
   * 
* * Protobuf type {@code clarifai.api.Data} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.Data) com.clarifai.grpc.api.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.Data.class, com.clarifai.grpc.api.Data.Builder.class); } // Construct using com.clarifai.grpc.api.Data.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConceptsFieldBuilder(); getColorsFieldBuilder(); getClustersFieldBuilder(); getEmbeddingsFieldBuilder(); getRegionsFieldBuilder(); getFramesFieldBuilder(); getTracksFieldBuilder(); getTimeSegmentsFieldBuilder(); getHitsFieldBuilder(); getHeatmapsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (imageBuilder_ == null) { image_ = null; } else { image_ = null; imageBuilder_ = null; } if (videoBuilder_ == null) { video_ = null; } else { video_ = null; videoBuilder_ = null; } if (conceptsBuilder_ == null) { concepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { conceptsBuilder_.clear(); } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (geoBuilder_ == null) { geo_ = null; } else { geo_ = null; geoBuilder_ = null; } if (colorsBuilder_ == null) { colors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { colorsBuilder_.clear(); } if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { clustersBuilder_.clear(); } if (embeddingsBuilder_ == null) { embeddings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { embeddingsBuilder_.clear(); } if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { regionsBuilder_.clear(); } if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { framesBuilder_.clear(); } if (textBuilder_ == null) { text_ = null; } else { text_ = null; textBuilder_ = null; } if (audioBuilder_ == null) { audio_ = null; } else { audio_ = null; audioBuilder_ = null; } if (tracksBuilder_ == null) { tracks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { tracksBuilder_.clear(); } if (timeSegmentsBuilder_ == null) { timeSegments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { timeSegmentsBuilder_.clear(); } if (hitsBuilder_ == null) { hits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { hitsBuilder_.clear(); } if (heatmapsBuilder_ == null) { heatmaps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { heatmapsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_Data_descriptor; } @java.lang.Override public com.clarifai.grpc.api.Data getDefaultInstanceForType() { return com.clarifai.grpc.api.Data.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.Data build() { com.clarifai.grpc.api.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.Data buildPartial() { com.clarifai.grpc.api.Data result = new com.clarifai.grpc.api.Data(this); int from_bitField0_ = bitField0_; if (imageBuilder_ == null) { result.image_ = image_; } else { result.image_ = imageBuilder_.build(); } if (videoBuilder_ == null) { result.video_ = video_; } else { result.video_ = videoBuilder_.build(); } if (conceptsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { concepts_ = java.util.Collections.unmodifiableList(concepts_); bitField0_ = (bitField0_ & ~0x00000001); } result.concepts_ = concepts_; } else { result.concepts_ = conceptsBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (geoBuilder_ == null) { result.geo_ = geo_; } else { result.geo_ = geoBuilder_.build(); } if (colorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { colors_ = java.util.Collections.unmodifiableList(colors_); bitField0_ = (bitField0_ & ~0x00000002); } result.colors_ = colors_; } else { result.colors_ = colorsBuilder_.build(); } if (clustersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { clusters_ = java.util.Collections.unmodifiableList(clusters_); bitField0_ = (bitField0_ & ~0x00000004); } result.clusters_ = clusters_; } else { result.clusters_ = clustersBuilder_.build(); } if (embeddingsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { embeddings_ = java.util.Collections.unmodifiableList(embeddings_); bitField0_ = (bitField0_ & ~0x00000008); } result.embeddings_ = embeddings_; } else { result.embeddings_ = embeddingsBuilder_.build(); } if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000010); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.build(); } if (framesBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { frames_ = java.util.Collections.unmodifiableList(frames_); bitField0_ = (bitField0_ & ~0x00000020); } result.frames_ = frames_; } else { result.frames_ = framesBuilder_.build(); } if (textBuilder_ == null) { result.text_ = text_; } else { result.text_ = textBuilder_.build(); } if (audioBuilder_ == null) { result.audio_ = audio_; } else { result.audio_ = audioBuilder_.build(); } if (tracksBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { tracks_ = java.util.Collections.unmodifiableList(tracks_); bitField0_ = (bitField0_ & ~0x00000040); } result.tracks_ = tracks_; } else { result.tracks_ = tracksBuilder_.build(); } if (timeSegmentsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { timeSegments_ = java.util.Collections.unmodifiableList(timeSegments_); bitField0_ = (bitField0_ & ~0x00000080); } result.timeSegments_ = timeSegments_; } else { result.timeSegments_ = timeSegmentsBuilder_.build(); } if (hitsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { hits_ = java.util.Collections.unmodifiableList(hits_); bitField0_ = (bitField0_ & ~0x00000100); } result.hits_ = hits_; } else { result.hits_ = hitsBuilder_.build(); } if (heatmapsBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0)) { heatmaps_ = java.util.Collections.unmodifiableList(heatmaps_); bitField0_ = (bitField0_ & ~0x00000200); } result.heatmaps_ = heatmaps_; } else { result.heatmaps_ = heatmapsBuilder_.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.Data) { return mergeFrom((com.clarifai.grpc.api.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.Data other) { if (other == com.clarifai.grpc.api.Data.getDefaultInstance()) return this; if (other.hasImage()) { mergeImage(other.getImage()); } if (other.hasVideo()) { mergeVideo(other.getVideo()); } if (conceptsBuilder_ == null) { if (!other.concepts_.isEmpty()) { if (concepts_.isEmpty()) { concepts_ = other.concepts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConceptsIsMutable(); concepts_.addAll(other.concepts_); } onChanged(); } } else { if (!other.concepts_.isEmpty()) { if (conceptsBuilder_.isEmpty()) { conceptsBuilder_.dispose(); conceptsBuilder_ = null; concepts_ = other.concepts_; bitField0_ = (bitField0_ & ~0x00000001); conceptsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConceptsFieldBuilder() : null; } else { conceptsBuilder_.addAllMessages(other.concepts_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasGeo()) { mergeGeo(other.getGeo()); } if (colorsBuilder_ == null) { if (!other.colors_.isEmpty()) { if (colors_.isEmpty()) { colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureColorsIsMutable(); colors_.addAll(other.colors_); } onChanged(); } } else { if (!other.colors_.isEmpty()) { if (colorsBuilder_.isEmpty()) { colorsBuilder_.dispose(); colorsBuilder_ = null; colors_ = other.colors_; bitField0_ = (bitField0_ & ~0x00000002); colorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getColorsFieldBuilder() : null; } else { colorsBuilder_.addAllMessages(other.colors_); } } } if (clustersBuilder_ == null) { if (!other.clusters_.isEmpty()) { if (clusters_.isEmpty()) { clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureClustersIsMutable(); clusters_.addAll(other.clusters_); } onChanged(); } } else { if (!other.clusters_.isEmpty()) { if (clustersBuilder_.isEmpty()) { clustersBuilder_.dispose(); clustersBuilder_ = null; clusters_ = other.clusters_; bitField0_ = (bitField0_ & ~0x00000004); clustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClustersFieldBuilder() : null; } else { clustersBuilder_.addAllMessages(other.clusters_); } } } if (embeddingsBuilder_ == null) { if (!other.embeddings_.isEmpty()) { if (embeddings_.isEmpty()) { embeddings_ = other.embeddings_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEmbeddingsIsMutable(); embeddings_.addAll(other.embeddings_); } onChanged(); } } else { if (!other.embeddings_.isEmpty()) { if (embeddingsBuilder_.isEmpty()) { embeddingsBuilder_.dispose(); embeddingsBuilder_ = null; embeddings_ = other.embeddings_; bitField0_ = (bitField0_ & ~0x00000008); embeddingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEmbeddingsFieldBuilder() : null; } else { embeddingsBuilder_.addAllMessages(other.embeddings_); } } } if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000010); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } if (framesBuilder_ == null) { if (!other.frames_.isEmpty()) { if (frames_.isEmpty()) { frames_ = other.frames_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFramesIsMutable(); frames_.addAll(other.frames_); } onChanged(); } } else { if (!other.frames_.isEmpty()) { if (framesBuilder_.isEmpty()) { framesBuilder_.dispose(); framesBuilder_ = null; frames_ = other.frames_; bitField0_ = (bitField0_ & ~0x00000020); framesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFramesFieldBuilder() : null; } else { framesBuilder_.addAllMessages(other.frames_); } } } if (other.hasText()) { mergeText(other.getText()); } if (other.hasAudio()) { mergeAudio(other.getAudio()); } if (tracksBuilder_ == null) { if (!other.tracks_.isEmpty()) { if (tracks_.isEmpty()) { tracks_ = other.tracks_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTracksIsMutable(); tracks_.addAll(other.tracks_); } onChanged(); } } else { if (!other.tracks_.isEmpty()) { if (tracksBuilder_.isEmpty()) { tracksBuilder_.dispose(); tracksBuilder_ = null; tracks_ = other.tracks_; bitField0_ = (bitField0_ & ~0x00000040); tracksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTracksFieldBuilder() : null; } else { tracksBuilder_.addAllMessages(other.tracks_); } } } if (timeSegmentsBuilder_ == null) { if (!other.timeSegments_.isEmpty()) { if (timeSegments_.isEmpty()) { timeSegments_ = other.timeSegments_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureTimeSegmentsIsMutable(); timeSegments_.addAll(other.timeSegments_); } onChanged(); } } else { if (!other.timeSegments_.isEmpty()) { if (timeSegmentsBuilder_.isEmpty()) { timeSegmentsBuilder_.dispose(); timeSegmentsBuilder_ = null; timeSegments_ = other.timeSegments_; bitField0_ = (bitField0_ & ~0x00000080); timeSegmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTimeSegmentsFieldBuilder() : null; } else { timeSegmentsBuilder_.addAllMessages(other.timeSegments_); } } } if (hitsBuilder_ == null) { if (!other.hits_.isEmpty()) { if (hits_.isEmpty()) { hits_ = other.hits_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureHitsIsMutable(); hits_.addAll(other.hits_); } onChanged(); } } else { if (!other.hits_.isEmpty()) { if (hitsBuilder_.isEmpty()) { hitsBuilder_.dispose(); hitsBuilder_ = null; hits_ = other.hits_; bitField0_ = (bitField0_ & ~0x00000100); hitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHitsFieldBuilder() : null; } else { hitsBuilder_.addAllMessages(other.hits_); } } } if (heatmapsBuilder_ == null) { if (!other.heatmaps_.isEmpty()) { if (heatmaps_.isEmpty()) { heatmaps_ = other.heatmaps_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureHeatmapsIsMutable(); heatmaps_.addAll(other.heatmaps_); } onChanged(); } } else { if (!other.heatmaps_.isEmpty()) { if (heatmapsBuilder_.isEmpty()) { heatmapsBuilder_.dispose(); heatmapsBuilder_ = null; heatmaps_ = other.heatmaps_; bitField0_ = (bitField0_ & ~0x00000200); heatmapsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeatmapsFieldBuilder() : null; } else { heatmapsBuilder_.addAllMessages(other.heatmaps_); } } } 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.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.Data) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.Image image_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> imageBuilder_; /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; * @return Whether the image field is set. */ public boolean hasImage() { return imageBuilder_ != null || image_ != null; } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; * @return The image. */ public com.clarifai.grpc.api.Image getImage() { if (imageBuilder_ == null) { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } else { return imageBuilder_.getMessage(); } } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public Builder setImage(com.clarifai.grpc.api.Image value) { if (imageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } image_ = value; onChanged(); } else { imageBuilder_.setMessage(value); } return this; } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public Builder setImage( com.clarifai.grpc.api.Image.Builder builderForValue) { if (imageBuilder_ == null) { image_ = builderForValue.build(); onChanged(); } else { imageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public Builder mergeImage(com.clarifai.grpc.api.Image value) { if (imageBuilder_ == null) { if (image_ != null) { image_ = com.clarifai.grpc.api.Image.newBuilder(image_).mergeFrom(value).buildPartial(); } else { image_ = value; } onChanged(); } else { imageBuilder_.mergeFrom(value); } return this; } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public Builder clearImage() { if (imageBuilder_ == null) { image_ = null; onChanged(); } else { image_ = null; imageBuilder_ = null; } return this; } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public com.clarifai.grpc.api.Image.Builder getImageBuilder() { onChanged(); return getImageFieldBuilder().getBuilder(); } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ public com.clarifai.grpc.api.ImageOrBuilder getImageOrBuilder() { if (imageBuilder_ != null) { return imageBuilder_.getMessageOrBuilder(); } else { return image_ == null ? com.clarifai.grpc.api.Image.getDefaultInstance() : image_; } } /** *
     * Input and output images.
     * 
* * .clarifai.api.Image image = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> getImageFieldBuilder() { if (imageBuilder_ == null) { imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>( getImage(), getParentForChildren(), isClean()); image_ = null; } return imageBuilder_; } private com.clarifai.grpc.api.Video video_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Video, com.clarifai.grpc.api.Video.Builder, com.clarifai.grpc.api.VideoOrBuilder> videoBuilder_; /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; * @return Whether the video field is set. */ public boolean hasVideo() { return videoBuilder_ != null || video_ != null; } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; * @return The video. */ public com.clarifai.grpc.api.Video getVideo() { if (videoBuilder_ == null) { return video_ == null ? com.clarifai.grpc.api.Video.getDefaultInstance() : video_; } else { return videoBuilder_.getMessage(); } } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public Builder setVideo(com.clarifai.grpc.api.Video value) { if (videoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } video_ = value; onChanged(); } else { videoBuilder_.setMessage(value); } return this; } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public Builder setVideo( com.clarifai.grpc.api.Video.Builder builderForValue) { if (videoBuilder_ == null) { video_ = builderForValue.build(); onChanged(); } else { videoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public Builder mergeVideo(com.clarifai.grpc.api.Video value) { if (videoBuilder_ == null) { if (video_ != null) { video_ = com.clarifai.grpc.api.Video.newBuilder(video_).mergeFrom(value).buildPartial(); } else { video_ = value; } onChanged(); } else { videoBuilder_.mergeFrom(value); } return this; } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public Builder clearVideo() { if (videoBuilder_ == null) { video_ = null; onChanged(); } else { video_ = null; videoBuilder_ = null; } return this; } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public com.clarifai.grpc.api.Video.Builder getVideoBuilder() { onChanged(); return getVideoFieldBuilder().getBuilder(); } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ public com.clarifai.grpc.api.VideoOrBuilder getVideoOrBuilder() { if (videoBuilder_ != null) { return videoBuilder_.getMessageOrBuilder(); } else { return video_ == null ? com.clarifai.grpc.api.Video.getDefaultInstance() : video_; } } /** *
     * Input and output videos.
     * 
* * .clarifai.api.Video video = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Video, com.clarifai.grpc.api.Video.Builder, com.clarifai.grpc.api.VideoOrBuilder> getVideoFieldBuilder() { if (videoBuilder_ == null) { videoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Video, com.clarifai.grpc.api.Video.Builder, com.clarifai.grpc.api.VideoOrBuilder>( getVideo(), getParentForChildren(), isClean()); video_ = null; } return videoBuilder_; } private java.util.List concepts_ = java.util.Collections.emptyList(); private void ensureConceptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { concepts_ = new java.util.ArrayList(concepts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> conceptsBuilder_; /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public java.util.List getConceptsList() { if (conceptsBuilder_ == null) { return java.util.Collections.unmodifiableList(concepts_); } else { return conceptsBuilder_.getMessageList(); } } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public int getConceptsCount() { if (conceptsBuilder_ == null) { return concepts_.size(); } else { return conceptsBuilder_.getCount(); } } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public com.clarifai.grpc.api.Concept getConcepts(int index) { if (conceptsBuilder_ == null) { return concepts_.get(index); } else { return conceptsBuilder_.getMessage(index); } } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder setConcepts( int index, com.clarifai.grpc.api.Concept value) { if (conceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConceptsIsMutable(); concepts_.set(index, value); onChanged(); } else { conceptsBuilder_.setMessage(index, value); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder setConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (conceptsBuilder_ == null) { ensureConceptsIsMutable(); concepts_.set(index, builderForValue.build()); onChanged(); } else { conceptsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder addConcepts(com.clarifai.grpc.api.Concept value) { if (conceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConceptsIsMutable(); concepts_.add(value); onChanged(); } else { conceptsBuilder_.addMessage(value); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder addConcepts( int index, com.clarifai.grpc.api.Concept value) { if (conceptsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConceptsIsMutable(); concepts_.add(index, value); onChanged(); } else { conceptsBuilder_.addMessage(index, value); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder addConcepts( com.clarifai.grpc.api.Concept.Builder builderForValue) { if (conceptsBuilder_ == null) { ensureConceptsIsMutable(); concepts_.add(builderForValue.build()); onChanged(); } else { conceptsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder addConcepts( int index, com.clarifai.grpc.api.Concept.Builder builderForValue) { if (conceptsBuilder_ == null) { ensureConceptsIsMutable(); concepts_.add(index, builderForValue.build()); onChanged(); } else { conceptsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder addAllConcepts( java.lang.Iterable values) { if (conceptsBuilder_ == null) { ensureConceptsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, concepts_); onChanged(); } else { conceptsBuilder_.addAllMessages(values); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder clearConcepts() { if (conceptsBuilder_ == null) { concepts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { conceptsBuilder_.clear(); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public Builder removeConcepts(int index) { if (conceptsBuilder_ == null) { ensureConceptsIsMutable(); concepts_.remove(index); onChanged(); } else { conceptsBuilder_.remove(index); } return this; } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder getConceptsBuilder( int index) { return getConceptsFieldBuilder().getBuilder(index); } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public com.clarifai.grpc.api.ConceptOrBuilder getConceptsOrBuilder( int index) { if (conceptsBuilder_ == null) { return concepts_.get(index); } else { return conceptsBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public java.util.List getConceptsOrBuilderList() { if (conceptsBuilder_ != null) { return conceptsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(concepts_); } } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder addConceptsBuilder() { return getConceptsFieldBuilder().addBuilder( com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public com.clarifai.grpc.api.Concept.Builder addConceptsBuilder( int index) { return getConceptsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Concept.getDefaultInstance()); } /** *
     * A list of concepts.
     * 
* * repeated .clarifai.api.Concept concepts = 3; */ public java.util.List getConceptsBuilderList() { return getConceptsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder> getConceptsFieldBuilder() { if (conceptsBuilder_ == null) { conceptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Concept, com.clarifai.grpc.api.Concept.Builder, com.clarifai.grpc.api.ConceptOrBuilder>( concepts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); concepts_ = null; } return conceptsBuilder_; } private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; * @return The metadata. */ public com.google.protobuf.Struct getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public Builder setMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public Builder setMetadata( com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private com.clarifai.grpc.api.Geo geo_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Geo, com.clarifai.grpc.api.Geo.Builder, com.clarifai.grpc.api.GeoOrBuilder> geoBuilder_; /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; * @return Whether the geo field is set. */ public boolean hasGeo() { return geoBuilder_ != null || geo_ != null; } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; * @return The geo. */ public com.clarifai.grpc.api.Geo getGeo() { if (geoBuilder_ == null) { return geo_ == null ? com.clarifai.grpc.api.Geo.getDefaultInstance() : geo_; } else { return geoBuilder_.getMessage(); } } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public Builder setGeo(com.clarifai.grpc.api.Geo value) { if (geoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } geo_ = value; onChanged(); } else { geoBuilder_.setMessage(value); } return this; } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public Builder setGeo( com.clarifai.grpc.api.Geo.Builder builderForValue) { if (geoBuilder_ == null) { geo_ = builderForValue.build(); onChanged(); } else { geoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public Builder mergeGeo(com.clarifai.grpc.api.Geo value) { if (geoBuilder_ == null) { if (geo_ != null) { geo_ = com.clarifai.grpc.api.Geo.newBuilder(geo_).mergeFrom(value).buildPartial(); } else { geo_ = value; } onChanged(); } else { geoBuilder_.mergeFrom(value); } return this; } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public Builder clearGeo() { if (geoBuilder_ == null) { geo_ = null; onChanged(); } else { geo_ = null; geoBuilder_ = null; } return this; } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public com.clarifai.grpc.api.Geo.Builder getGeoBuilder() { onChanged(); return getGeoFieldBuilder().getBuilder(); } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ public com.clarifai.grpc.api.GeoOrBuilder getGeoOrBuilder() { if (geoBuilder_ != null) { return geoBuilder_.getMessageOrBuilder(); } else { return geo_ == null ? com.clarifai.grpc.api.Geo.getDefaultInstance() : geo_; } } /** *
     * Geography information.
     * 
* * .clarifai.api.Geo geo = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Geo, com.clarifai.grpc.api.Geo.Builder, com.clarifai.grpc.api.GeoOrBuilder> getGeoFieldBuilder() { if (geoBuilder_ == null) { geoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Geo, com.clarifai.grpc.api.Geo.Builder, com.clarifai.grpc.api.GeoOrBuilder>( getGeo(), getParentForChildren(), isClean()); geo_ = null; } return geoBuilder_; } private java.util.List colors_ = java.util.Collections.emptyList(); private void ensureColorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { colors_ = new java.util.ArrayList(colors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Color, com.clarifai.grpc.api.Color.Builder, com.clarifai.grpc.api.ColorOrBuilder> colorsBuilder_; /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public java.util.List getColorsList() { if (colorsBuilder_ == null) { return java.util.Collections.unmodifiableList(colors_); } else { return colorsBuilder_.getMessageList(); } } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public int getColorsCount() { if (colorsBuilder_ == null) { return colors_.size(); } else { return colorsBuilder_.getCount(); } } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public com.clarifai.grpc.api.Color getColors(int index) { if (colorsBuilder_ == null) { return colors_.get(index); } else { return colorsBuilder_.getMessage(index); } } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder setColors( int index, com.clarifai.grpc.api.Color value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColorsIsMutable(); colors_.set(index, value); onChanged(); } else { colorsBuilder_.setMessage(index, value); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder setColors( int index, com.clarifai.grpc.api.Color.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.set(index, builderForValue.build()); onChanged(); } else { colorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder addColors(com.clarifai.grpc.api.Color value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColorsIsMutable(); colors_.add(value); onChanged(); } else { colorsBuilder_.addMessage(value); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder addColors( int index, com.clarifai.grpc.api.Color value) { if (colorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColorsIsMutable(); colors_.add(index, value); onChanged(); } else { colorsBuilder_.addMessage(index, value); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder addColors( com.clarifai.grpc.api.Color.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(builderForValue.build()); onChanged(); } else { colorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder addColors( int index, com.clarifai.grpc.api.Color.Builder builderForValue) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.add(index, builderForValue.build()); onChanged(); } else { colorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder addAllColors( java.lang.Iterable values) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, colors_); onChanged(); } else { colorsBuilder_.addAllMessages(values); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder clearColors() { if (colorsBuilder_ == null) { colors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { colorsBuilder_.clear(); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public Builder removeColors(int index) { if (colorsBuilder_ == null) { ensureColorsIsMutable(); colors_.remove(index); onChanged(); } else { colorsBuilder_.remove(index); } return this; } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public com.clarifai.grpc.api.Color.Builder getColorsBuilder( int index) { return getColorsFieldBuilder().getBuilder(index); } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public com.clarifai.grpc.api.ColorOrBuilder getColorsOrBuilder( int index) { if (colorsBuilder_ == null) { return colors_.get(index); } else { return colorsBuilder_.getMessageOrBuilder(index); } } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public java.util.List getColorsOrBuilderList() { if (colorsBuilder_ != null) { return colorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(colors_); } } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public com.clarifai.grpc.api.Color.Builder addColorsBuilder() { return getColorsFieldBuilder().addBuilder( com.clarifai.grpc.api.Color.getDefaultInstance()); } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public com.clarifai.grpc.api.Color.Builder addColorsBuilder( int index) { return getColorsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Color.getDefaultInstance()); } /** *
     * The dominant colors within an image.
     * 
* * repeated .clarifai.api.Color colors = 7; */ public java.util.List getColorsBuilderList() { return getColorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Color, com.clarifai.grpc.api.Color.Builder, com.clarifai.grpc.api.ColorOrBuilder> getColorsFieldBuilder() { if (colorsBuilder_ == null) { colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Color, com.clarifai.grpc.api.Color.Builder, com.clarifai.grpc.api.ColorOrBuilder>( colors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); colors_ = null; } return colorsBuilder_; } private java.util.List clusters_ = java.util.Collections.emptyList(); private void ensureClustersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { clusters_ = new java.util.ArrayList(clusters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Cluster, com.clarifai.grpc.api.Cluster.Builder, com.clarifai.grpc.api.ClusterOrBuilder> clustersBuilder_; /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public java.util.List getClustersList() { if (clustersBuilder_ == null) { return java.util.Collections.unmodifiableList(clusters_); } else { return clustersBuilder_.getMessageList(); } } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public int getClustersCount() { if (clustersBuilder_ == null) { return clusters_.size(); } else { return clustersBuilder_.getCount(); } } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public com.clarifai.grpc.api.Cluster getClusters(int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessage(index); } } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder setClusters( int index, com.clarifai.grpc.api.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.set(index, value); onChanged(); } else { clustersBuilder_.setMessage(index, value); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder setClusters( int index, com.clarifai.grpc.api.Cluster.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.set(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder addClusters(com.clarifai.grpc.api.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(value); onChanged(); } else { clustersBuilder_.addMessage(value); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder addClusters( int index, com.clarifai.grpc.api.Cluster value) { if (clustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClustersIsMutable(); clusters_.add(index, value); onChanged(); } else { clustersBuilder_.addMessage(index, value); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder addClusters( com.clarifai.grpc.api.Cluster.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder addClusters( int index, com.clarifai.grpc.api.Cluster.Builder builderForValue) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.add(index, builderForValue.build()); onChanged(); } else { clustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder addAllClusters( java.lang.Iterable values) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clusters_); onChanged(); } else { clustersBuilder_.addAllMessages(values); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder clearClusters() { if (clustersBuilder_ == null) { clusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { clustersBuilder_.clear(); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public Builder removeClusters(int index) { if (clustersBuilder_ == null) { ensureClustersIsMutable(); clusters_.remove(index); onChanged(); } else { clustersBuilder_.remove(index); } return this; } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public com.clarifai.grpc.api.Cluster.Builder getClustersBuilder( int index) { return getClustersFieldBuilder().getBuilder(index); } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public com.clarifai.grpc.api.ClusterOrBuilder getClustersOrBuilder( int index) { if (clustersBuilder_ == null) { return clusters_.get(index); } else { return clustersBuilder_.getMessageOrBuilder(index); } } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public java.util.List getClustersOrBuilderList() { if (clustersBuilder_ != null) { return clustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clusters_); } } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public com.clarifai.grpc.api.Cluster.Builder addClustersBuilder() { return getClustersFieldBuilder().addBuilder( com.clarifai.grpc.api.Cluster.getDefaultInstance()); } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public com.clarifai.grpc.api.Cluster.Builder addClustersBuilder( int index) { return getClustersFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Cluster.getDefaultInstance()); } /** *
     * Clustering centroids for inputs.
     * 
* * repeated .clarifai.api.Cluster clusters = 8; */ public java.util.List getClustersBuilderList() { return getClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Cluster, com.clarifai.grpc.api.Cluster.Builder, com.clarifai.grpc.api.ClusterOrBuilder> getClustersFieldBuilder() { if (clustersBuilder_ == null) { clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Cluster, com.clarifai.grpc.api.Cluster.Builder, com.clarifai.grpc.api.ClusterOrBuilder>( clusters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); clusters_ = null; } return clustersBuilder_; } private java.util.List embeddings_ = java.util.Collections.emptyList(); private void ensureEmbeddingsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { embeddings_ = new java.util.ArrayList(embeddings_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Embedding, com.clarifai.grpc.api.Embedding.Builder, com.clarifai.grpc.api.EmbeddingOrBuilder> embeddingsBuilder_; /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public java.util.List getEmbeddingsList() { if (embeddingsBuilder_ == null) { return java.util.Collections.unmodifiableList(embeddings_); } else { return embeddingsBuilder_.getMessageList(); } } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public int getEmbeddingsCount() { if (embeddingsBuilder_ == null) { return embeddings_.size(); } else { return embeddingsBuilder_.getCount(); } } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public com.clarifai.grpc.api.Embedding getEmbeddings(int index) { if (embeddingsBuilder_ == null) { return embeddings_.get(index); } else { return embeddingsBuilder_.getMessage(index); } } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder setEmbeddings( int index, com.clarifai.grpc.api.Embedding value) { if (embeddingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmbeddingsIsMutable(); embeddings_.set(index, value); onChanged(); } else { embeddingsBuilder_.setMessage(index, value); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder setEmbeddings( int index, com.clarifai.grpc.api.Embedding.Builder builderForValue) { if (embeddingsBuilder_ == null) { ensureEmbeddingsIsMutable(); embeddings_.set(index, builderForValue.build()); onChanged(); } else { embeddingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder addEmbeddings(com.clarifai.grpc.api.Embedding value) { if (embeddingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmbeddingsIsMutable(); embeddings_.add(value); onChanged(); } else { embeddingsBuilder_.addMessage(value); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder addEmbeddings( int index, com.clarifai.grpc.api.Embedding value) { if (embeddingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmbeddingsIsMutable(); embeddings_.add(index, value); onChanged(); } else { embeddingsBuilder_.addMessage(index, value); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder addEmbeddings( com.clarifai.grpc.api.Embedding.Builder builderForValue) { if (embeddingsBuilder_ == null) { ensureEmbeddingsIsMutable(); embeddings_.add(builderForValue.build()); onChanged(); } else { embeddingsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder addEmbeddings( int index, com.clarifai.grpc.api.Embedding.Builder builderForValue) { if (embeddingsBuilder_ == null) { ensureEmbeddingsIsMutable(); embeddings_.add(index, builderForValue.build()); onChanged(); } else { embeddingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder addAllEmbeddings( java.lang.Iterable values) { if (embeddingsBuilder_ == null) { ensureEmbeddingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, embeddings_); onChanged(); } else { embeddingsBuilder_.addAllMessages(values); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder clearEmbeddings() { if (embeddingsBuilder_ == null) { embeddings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { embeddingsBuilder_.clear(); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public Builder removeEmbeddings(int index) { if (embeddingsBuilder_ == null) { ensureEmbeddingsIsMutable(); embeddings_.remove(index); onChanged(); } else { embeddingsBuilder_.remove(index); } return this; } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public com.clarifai.grpc.api.Embedding.Builder getEmbeddingsBuilder( int index) { return getEmbeddingsFieldBuilder().getBuilder(index); } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public com.clarifai.grpc.api.EmbeddingOrBuilder getEmbeddingsOrBuilder( int index) { if (embeddingsBuilder_ == null) { return embeddings_.get(index); } else { return embeddingsBuilder_.getMessageOrBuilder(index); } } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public java.util.List getEmbeddingsOrBuilderList() { if (embeddingsBuilder_ != null) { return embeddingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(embeddings_); } } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public com.clarifai.grpc.api.Embedding.Builder addEmbeddingsBuilder() { return getEmbeddingsFieldBuilder().addBuilder( com.clarifai.grpc.api.Embedding.getDefaultInstance()); } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public com.clarifai.grpc.api.Embedding.Builder addEmbeddingsBuilder( int index) { return getEmbeddingsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Embedding.getDefaultInstance()); } /** *
     * Embedding vectors representing each input.
     * 
* * repeated .clarifai.api.Embedding embeddings = 9; */ public java.util.List getEmbeddingsBuilderList() { return getEmbeddingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Embedding, com.clarifai.grpc.api.Embedding.Builder, com.clarifai.grpc.api.EmbeddingOrBuilder> getEmbeddingsFieldBuilder() { if (embeddingsBuilder_ == null) { embeddingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Embedding, com.clarifai.grpc.api.Embedding.Builder, com.clarifai.grpc.api.EmbeddingOrBuilder>( embeddings_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); embeddings_ = null; } return embeddingsBuilder_; } private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Region, com.clarifai.grpc.api.Region.Builder, com.clarifai.grpc.api.RegionOrBuilder> regionsBuilder_; /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public com.clarifai.grpc.api.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder setRegions( int index, com.clarifai.grpc.api.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder setRegions( int index, com.clarifai.grpc.api.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder addRegions(com.clarifai.grpc.api.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder addRegions( int index, com.clarifai.grpc.api.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder addRegions( com.clarifai.grpc.api.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder addRegions( int index, com.clarifai.grpc.api.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public com.clarifai.grpc.api.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public com.clarifai.grpc.api.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public com.clarifai.grpc.api.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( com.clarifai.grpc.api.Region.getDefaultInstance()); } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public com.clarifai.grpc.api.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Region.getDefaultInstance()); } /** *
     * For recursing into localized regions of an input.
     * 
* * repeated .clarifai.api.Region regions = 11; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Region, com.clarifai.grpc.api.Region.Builder, com.clarifai.grpc.api.RegionOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Region, com.clarifai.grpc.api.Region.Builder, com.clarifai.grpc.api.RegionOrBuilder>( regions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } private java.util.List frames_ = java.util.Collections.emptyList(); private void ensureFramesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { frames_ = new java.util.ArrayList(frames_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Frame, com.clarifai.grpc.api.Frame.Builder, com.clarifai.grpc.api.FrameOrBuilder> framesBuilder_; /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public java.util.List getFramesList() { if (framesBuilder_ == null) { return java.util.Collections.unmodifiableList(frames_); } else { return framesBuilder_.getMessageList(); } } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public int getFramesCount() { if (framesBuilder_ == null) { return frames_.size(); } else { return framesBuilder_.getCount(); } } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public com.clarifai.grpc.api.Frame getFrames(int index) { if (framesBuilder_ == null) { return frames_.get(index); } else { return framesBuilder_.getMessage(index); } } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder setFrames( int index, com.clarifai.grpc.api.Frame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.set(index, value); onChanged(); } else { framesBuilder_.setMessage(index, value); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder setFrames( int index, com.clarifai.grpc.api.Frame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.set(index, builderForValue.build()); onChanged(); } else { framesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder addFrames(com.clarifai.grpc.api.Frame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.add(value); onChanged(); } else { framesBuilder_.addMessage(value); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder addFrames( int index, com.clarifai.grpc.api.Frame value) { if (framesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFramesIsMutable(); frames_.add(index, value); onChanged(); } else { framesBuilder_.addMessage(index, value); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder addFrames( com.clarifai.grpc.api.Frame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.add(builderForValue.build()); onChanged(); } else { framesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder addFrames( int index, com.clarifai.grpc.api.Frame.Builder builderForValue) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.add(index, builderForValue.build()); onChanged(); } else { framesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder addAllFrames( java.lang.Iterable values) { if (framesBuilder_ == null) { ensureFramesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frames_); onChanged(); } else { framesBuilder_.addAllMessages(values); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder clearFrames() { if (framesBuilder_ == null) { frames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { framesBuilder_.clear(); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public Builder removeFrames(int index) { if (framesBuilder_ == null) { ensureFramesIsMutable(); frames_.remove(index); onChanged(); } else { framesBuilder_.remove(index); } return this; } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public com.clarifai.grpc.api.Frame.Builder getFramesBuilder( int index) { return getFramesFieldBuilder().getBuilder(index); } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public com.clarifai.grpc.api.FrameOrBuilder getFramesOrBuilder( int index) { if (framesBuilder_ == null) { return frames_.get(index); } else { return framesBuilder_.getMessageOrBuilder(index); } } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public java.util.List getFramesOrBuilderList() { if (framesBuilder_ != null) { return framesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frames_); } } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public com.clarifai.grpc.api.Frame.Builder addFramesBuilder() { return getFramesFieldBuilder().addBuilder( com.clarifai.grpc.api.Frame.getDefaultInstance()); } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public com.clarifai.grpc.api.Frame.Builder addFramesBuilder( int index) { return getFramesFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Frame.getDefaultInstance()); } /** *
     * For temporal content like video.
     * 
* * repeated .clarifai.api.Frame frames = 12; */ public java.util.List getFramesBuilderList() { return getFramesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Frame, com.clarifai.grpc.api.Frame.Builder, com.clarifai.grpc.api.FrameOrBuilder> getFramesFieldBuilder() { if (framesBuilder_ == null) { framesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Frame, com.clarifai.grpc.api.Frame.Builder, com.clarifai.grpc.api.FrameOrBuilder>( frames_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); frames_ = null; } return framesBuilder_; } private com.clarifai.grpc.api.Text text_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Text, com.clarifai.grpc.api.Text.Builder, com.clarifai.grpc.api.TextOrBuilder> textBuilder_; /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; * @return Whether the text field is set. */ public boolean hasText() { return textBuilder_ != null || text_ != null; } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; * @return The text. */ public com.clarifai.grpc.api.Text getText() { if (textBuilder_ == null) { return text_ == null ? com.clarifai.grpc.api.Text.getDefaultInstance() : text_; } else { return textBuilder_.getMessage(); } } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public Builder setText(com.clarifai.grpc.api.Text value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } text_ = value; onChanged(); } else { textBuilder_.setMessage(value); } return this; } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public Builder setText( com.clarifai.grpc.api.Text.Builder builderForValue) { if (textBuilder_ == null) { text_ = builderForValue.build(); onChanged(); } else { textBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public Builder mergeText(com.clarifai.grpc.api.Text value) { if (textBuilder_ == null) { if (text_ != null) { text_ = com.clarifai.grpc.api.Text.newBuilder(text_).mergeFrom(value).buildPartial(); } else { text_ = value; } onChanged(); } else { textBuilder_.mergeFrom(value); } return this; } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public Builder clearText() { if (textBuilder_ == null) { text_ = null; onChanged(); } else { text_ = null; textBuilder_ = null; } return this; } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public com.clarifai.grpc.api.Text.Builder getTextBuilder() { onChanged(); return getTextFieldBuilder().getBuilder(); } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ public com.clarifai.grpc.api.TextOrBuilder getTextOrBuilder() { if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { return text_ == null ? com.clarifai.grpc.api.Text.getDefaultInstance() : text_; } } /** *
     * Input, output or annotation text.
     * 
* * .clarifai.api.Text text = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Text, com.clarifai.grpc.api.Text.Builder, com.clarifai.grpc.api.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Text, com.clarifai.grpc.api.Text.Builder, com.clarifai.grpc.api.TextOrBuilder>( getText(), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } private com.clarifai.grpc.api.Audio audio_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Audio, com.clarifai.grpc.api.Audio.Builder, com.clarifai.grpc.api.AudioOrBuilder> audioBuilder_; /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; * @return The audio. */ public com.clarifai.grpc.api.Audio getAudio() { if (audioBuilder_ == null) { return audio_ == null ? com.clarifai.grpc.api.Audio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public Builder setAudio(com.clarifai.grpc.api.Audio value) { if (audioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audio_ = value; onChanged(); } else { audioBuilder_.setMessage(value); } return this; } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public Builder setAudio( com.clarifai.grpc.api.Audio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); } else { audioBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public Builder mergeAudio(com.clarifai.grpc.api.Audio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = com.clarifai.grpc.api.Audio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } onChanged(); } else { audioBuilder_.mergeFrom(value); } return this; } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public Builder clearAudio() { if (audioBuilder_ == null) { audio_ = null; onChanged(); } else { audio_ = null; audioBuilder_ = null; } return this; } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public com.clarifai.grpc.api.Audio.Builder getAudioBuilder() { onChanged(); return getAudioFieldBuilder().getBuilder(); } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ public com.clarifai.grpc.api.AudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { return audio_ == null ? com.clarifai.grpc.api.Audio.getDefaultInstance() : audio_; } } /** *
     * Input and output audio.
     * 
* * .clarifai.api.Audio audio = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Audio, com.clarifai.grpc.api.Audio.Builder, com.clarifai.grpc.api.AudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Audio, com.clarifai.grpc.api.Audio.Builder, com.clarifai.grpc.api.AudioOrBuilder>( getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } private java.util.List tracks_ = java.util.Collections.emptyList(); private void ensureTracksIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { tracks_ = new java.util.ArrayList(tracks_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Track, com.clarifai.grpc.api.Track.Builder, com.clarifai.grpc.api.TrackOrBuilder> tracksBuilder_; /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public java.util.List getTracksList() { if (tracksBuilder_ == null) { return java.util.Collections.unmodifiableList(tracks_); } else { return tracksBuilder_.getMessageList(); } } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public int getTracksCount() { if (tracksBuilder_ == null) { return tracks_.size(); } else { return tracksBuilder_.getCount(); } } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public com.clarifai.grpc.api.Track getTracks(int index) { if (tracksBuilder_ == null) { return tracks_.get(index); } else { return tracksBuilder_.getMessage(index); } } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder setTracks( int index, com.clarifai.grpc.api.Track value) { if (tracksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracksIsMutable(); tracks_.set(index, value); onChanged(); } else { tracksBuilder_.setMessage(index, value); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder setTracks( int index, com.clarifai.grpc.api.Track.Builder builderForValue) { if (tracksBuilder_ == null) { ensureTracksIsMutable(); tracks_.set(index, builderForValue.build()); onChanged(); } else { tracksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder addTracks(com.clarifai.grpc.api.Track value) { if (tracksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracksIsMutable(); tracks_.add(value); onChanged(); } else { tracksBuilder_.addMessage(value); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder addTracks( int index, com.clarifai.grpc.api.Track value) { if (tracksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracksIsMutable(); tracks_.add(index, value); onChanged(); } else { tracksBuilder_.addMessage(index, value); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder addTracks( com.clarifai.grpc.api.Track.Builder builderForValue) { if (tracksBuilder_ == null) { ensureTracksIsMutable(); tracks_.add(builderForValue.build()); onChanged(); } else { tracksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder addTracks( int index, com.clarifai.grpc.api.Track.Builder builderForValue) { if (tracksBuilder_ == null) { ensureTracksIsMutable(); tracks_.add(index, builderForValue.build()); onChanged(); } else { tracksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder addAllTracks( java.lang.Iterable values) { if (tracksBuilder_ == null) { ensureTracksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tracks_); onChanged(); } else { tracksBuilder_.addAllMessages(values); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder clearTracks() { if (tracksBuilder_ == null) { tracks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { tracksBuilder_.clear(); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public Builder removeTracks(int index) { if (tracksBuilder_ == null) { ensureTracksIsMutable(); tracks_.remove(index); onChanged(); } else { tracksBuilder_.remove(index); } return this; } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public com.clarifai.grpc.api.Track.Builder getTracksBuilder( int index) { return getTracksFieldBuilder().getBuilder(index); } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public com.clarifai.grpc.api.TrackOrBuilder getTracksOrBuilder( int index) { if (tracksBuilder_ == null) { return tracks_.get(index); } else { return tracksBuilder_.getMessageOrBuilder(index); } } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public java.util.List getTracksOrBuilderList() { if (tracksBuilder_ != null) { return tracksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tracks_); } } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public com.clarifai.grpc.api.Track.Builder addTracksBuilder() { return getTracksFieldBuilder().addBuilder( com.clarifai.grpc.api.Track.getDefaultInstance()); } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public com.clarifai.grpc.api.Track.Builder addTracksBuilder( int index) { return getTracksFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Track.getDefaultInstance()); } /** *
     * Track information.
     * 
* * repeated .clarifai.api.Track tracks = 15; */ public java.util.List getTracksBuilderList() { return getTracksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Track, com.clarifai.grpc.api.Track.Builder, com.clarifai.grpc.api.TrackOrBuilder> getTracksFieldBuilder() { if (tracksBuilder_ == null) { tracksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Track, com.clarifai.grpc.api.Track.Builder, com.clarifai.grpc.api.TrackOrBuilder>( tracks_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); tracks_ = null; } return tracksBuilder_; } private java.util.List timeSegments_ = java.util.Collections.emptyList(); private void ensureTimeSegmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { timeSegments_ = new java.util.ArrayList(timeSegments_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TimeSegment, com.clarifai.grpc.api.TimeSegment.Builder, com.clarifai.grpc.api.TimeSegmentOrBuilder> timeSegmentsBuilder_; /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public java.util.List getTimeSegmentsList() { if (timeSegmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(timeSegments_); } else { return timeSegmentsBuilder_.getMessageList(); } } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public int getTimeSegmentsCount() { if (timeSegmentsBuilder_ == null) { return timeSegments_.size(); } else { return timeSegmentsBuilder_.getCount(); } } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public com.clarifai.grpc.api.TimeSegment getTimeSegments(int index) { if (timeSegmentsBuilder_ == null) { return timeSegments_.get(index); } else { return timeSegmentsBuilder_.getMessage(index); } } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder setTimeSegments( int index, com.clarifai.grpc.api.TimeSegment value) { if (timeSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeSegmentsIsMutable(); timeSegments_.set(index, value); onChanged(); } else { timeSegmentsBuilder_.setMessage(index, value); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder setTimeSegments( int index, com.clarifai.grpc.api.TimeSegment.Builder builderForValue) { if (timeSegmentsBuilder_ == null) { ensureTimeSegmentsIsMutable(); timeSegments_.set(index, builderForValue.build()); onChanged(); } else { timeSegmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder addTimeSegments(com.clarifai.grpc.api.TimeSegment value) { if (timeSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeSegmentsIsMutable(); timeSegments_.add(value); onChanged(); } else { timeSegmentsBuilder_.addMessage(value); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder addTimeSegments( int index, com.clarifai.grpc.api.TimeSegment value) { if (timeSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeSegmentsIsMutable(); timeSegments_.add(index, value); onChanged(); } else { timeSegmentsBuilder_.addMessage(index, value); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder addTimeSegments( com.clarifai.grpc.api.TimeSegment.Builder builderForValue) { if (timeSegmentsBuilder_ == null) { ensureTimeSegmentsIsMutable(); timeSegments_.add(builderForValue.build()); onChanged(); } else { timeSegmentsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder addTimeSegments( int index, com.clarifai.grpc.api.TimeSegment.Builder builderForValue) { if (timeSegmentsBuilder_ == null) { ensureTimeSegmentsIsMutable(); timeSegments_.add(index, builderForValue.build()); onChanged(); } else { timeSegmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder addAllTimeSegments( java.lang.Iterable values) { if (timeSegmentsBuilder_ == null) { ensureTimeSegmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timeSegments_); onChanged(); } else { timeSegmentsBuilder_.addAllMessages(values); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder clearTimeSegments() { if (timeSegmentsBuilder_ == null) { timeSegments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { timeSegmentsBuilder_.clear(); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public Builder removeTimeSegments(int index) { if (timeSegmentsBuilder_ == null) { ensureTimeSegmentsIsMutable(); timeSegments_.remove(index); onChanged(); } else { timeSegmentsBuilder_.remove(index); } return this; } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public com.clarifai.grpc.api.TimeSegment.Builder getTimeSegmentsBuilder( int index) { return getTimeSegmentsFieldBuilder().getBuilder(index); } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public com.clarifai.grpc.api.TimeSegmentOrBuilder getTimeSegmentsOrBuilder( int index) { if (timeSegmentsBuilder_ == null) { return timeSegments_.get(index); } else { return timeSegmentsBuilder_.getMessageOrBuilder(index); } } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public java.util.List getTimeSegmentsOrBuilderList() { if (timeSegmentsBuilder_ != null) { return timeSegmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(timeSegments_); } } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public com.clarifai.grpc.api.TimeSegment.Builder addTimeSegmentsBuilder() { return getTimeSegmentsFieldBuilder().addBuilder( com.clarifai.grpc.api.TimeSegment.getDefaultInstance()); } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public com.clarifai.grpc.api.TimeSegment.Builder addTimeSegmentsBuilder( int index) { return getTimeSegmentsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.TimeSegment.getDefaultInstance()); } /** *
     * Time segments information.
     * 
* * repeated .clarifai.api.TimeSegment time_segments = 16; */ public java.util.List getTimeSegmentsBuilderList() { return getTimeSegmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TimeSegment, com.clarifai.grpc.api.TimeSegment.Builder, com.clarifai.grpc.api.TimeSegmentOrBuilder> getTimeSegmentsFieldBuilder() { if (timeSegmentsBuilder_ == null) { timeSegmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.TimeSegment, com.clarifai.grpc.api.TimeSegment.Builder, com.clarifai.grpc.api.TimeSegmentOrBuilder>( timeSegments_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); timeSegments_ = null; } return timeSegmentsBuilder_; } private java.util.List hits_ = java.util.Collections.emptyList(); private void ensureHitsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { hits_ = new java.util.ArrayList(hits_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder> hitsBuilder_; /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public java.util.List getHitsList() { if (hitsBuilder_ == null) { return java.util.Collections.unmodifiableList(hits_); } else { return hitsBuilder_.getMessageList(); } } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public int getHitsCount() { if (hitsBuilder_ == null) { return hits_.size(); } else { return hitsBuilder_.getCount(); } } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public com.clarifai.grpc.api.Hit getHits(int index) { if (hitsBuilder_ == null) { return hits_.get(index); } else { return hitsBuilder_.getMessage(index); } } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder setHits( int index, com.clarifai.grpc.api.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.set(index, value); onChanged(); } else { hitsBuilder_.setMessage(index, value); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder setHits( int index, com.clarifai.grpc.api.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.set(index, builderForValue.build()); onChanged(); } else { hitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder addHits(com.clarifai.grpc.api.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.add(value); onChanged(); } else { hitsBuilder_.addMessage(value); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder addHits( int index, com.clarifai.grpc.api.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.add(index, value); onChanged(); } else { hitsBuilder_.addMessage(index, value); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder addHits( com.clarifai.grpc.api.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.add(builderForValue.build()); onChanged(); } else { hitsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder addHits( int index, com.clarifai.grpc.api.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.add(index, builderForValue.build()); onChanged(); } else { hitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder addAllHits( java.lang.Iterable values) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hits_); onChanged(); } else { hitsBuilder_.addAllMessages(values); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder clearHits() { if (hitsBuilder_ == null) { hits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { hitsBuilder_.clear(); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public Builder removeHits(int index) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.remove(index); onChanged(); } else { hitsBuilder_.remove(index); } return this; } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public com.clarifai.grpc.api.Hit.Builder getHitsBuilder( int index) { return getHitsFieldBuilder().getBuilder(index); } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public com.clarifai.grpc.api.HitOrBuilder getHitsOrBuilder( int index) { if (hitsBuilder_ == null) { return hits_.get(index); } else { return hitsBuilder_.getMessageOrBuilder(index); } } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public java.util.List getHitsOrBuilderList() { if (hitsBuilder_ != null) { return hitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hits_); } } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public com.clarifai.grpc.api.Hit.Builder addHitsBuilder() { return getHitsFieldBuilder().addBuilder( com.clarifai.grpc.api.Hit.getDefaultInstance()); } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public com.clarifai.grpc.api.Hit.Builder addHitsBuilder( int index) { return getHitsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Hit.getDefaultInstance()); } /** *
     * Holds score, rank, and user, app, input IDs and search hit data
     * 
* * repeated .clarifai.api.Hit hits = 17; */ public java.util.List getHitsBuilderList() { return getHitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder> getHitsFieldBuilder() { if (hitsBuilder_ == null) { hitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder>( hits_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); hits_ = null; } return hitsBuilder_; } private java.util.List heatmaps_ = java.util.Collections.emptyList(); private void ensureHeatmapsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { heatmaps_ = new java.util.ArrayList(heatmaps_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> heatmapsBuilder_; /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public java.util.List getHeatmapsList() { if (heatmapsBuilder_ == null) { return java.util.Collections.unmodifiableList(heatmaps_); } else { return heatmapsBuilder_.getMessageList(); } } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public int getHeatmapsCount() { if (heatmapsBuilder_ == null) { return heatmaps_.size(); } else { return heatmapsBuilder_.getCount(); } } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public com.clarifai.grpc.api.Image getHeatmaps(int index) { if (heatmapsBuilder_ == null) { return heatmaps_.get(index); } else { return heatmapsBuilder_.getMessage(index); } } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder setHeatmaps( int index, com.clarifai.grpc.api.Image value) { if (heatmapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeatmapsIsMutable(); heatmaps_.set(index, value); onChanged(); } else { heatmapsBuilder_.setMessage(index, value); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder setHeatmaps( int index, com.clarifai.grpc.api.Image.Builder builderForValue) { if (heatmapsBuilder_ == null) { ensureHeatmapsIsMutable(); heatmaps_.set(index, builderForValue.build()); onChanged(); } else { heatmapsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder addHeatmaps(com.clarifai.grpc.api.Image value) { if (heatmapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeatmapsIsMutable(); heatmaps_.add(value); onChanged(); } else { heatmapsBuilder_.addMessage(value); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder addHeatmaps( int index, com.clarifai.grpc.api.Image value) { if (heatmapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeatmapsIsMutable(); heatmaps_.add(index, value); onChanged(); } else { heatmapsBuilder_.addMessage(index, value); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder addHeatmaps( com.clarifai.grpc.api.Image.Builder builderForValue) { if (heatmapsBuilder_ == null) { ensureHeatmapsIsMutable(); heatmaps_.add(builderForValue.build()); onChanged(); } else { heatmapsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder addHeatmaps( int index, com.clarifai.grpc.api.Image.Builder builderForValue) { if (heatmapsBuilder_ == null) { ensureHeatmapsIsMutable(); heatmaps_.add(index, builderForValue.build()); onChanged(); } else { heatmapsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder addAllHeatmaps( java.lang.Iterable values) { if (heatmapsBuilder_ == null) { ensureHeatmapsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, heatmaps_); onChanged(); } else { heatmapsBuilder_.addAllMessages(values); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder clearHeatmaps() { if (heatmapsBuilder_ == null) { heatmaps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { heatmapsBuilder_.clear(); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public Builder removeHeatmaps(int index) { if (heatmapsBuilder_ == null) { ensureHeatmapsIsMutable(); heatmaps_.remove(index); onChanged(); } else { heatmapsBuilder_.remove(index); } return this; } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public com.clarifai.grpc.api.Image.Builder getHeatmapsBuilder( int index) { return getHeatmapsFieldBuilder().getBuilder(index); } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public com.clarifai.grpc.api.ImageOrBuilder getHeatmapsOrBuilder( int index) { if (heatmapsBuilder_ == null) { return heatmaps_.get(index); } else { return heatmapsBuilder_.getMessageOrBuilder(index); } } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public java.util.List getHeatmapsOrBuilderList() { if (heatmapsBuilder_ != null) { return heatmapsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(heatmaps_); } } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public com.clarifai.grpc.api.Image.Builder addHeatmapsBuilder() { return getHeatmapsFieldBuilder().addBuilder( com.clarifai.grpc.api.Image.getDefaultInstance()); } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public com.clarifai.grpc.api.Image.Builder addHeatmapsBuilder( int index) { return getHeatmapsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Image.getDefaultInstance()); } /** *
     * Heatmap as 2d image
     * 
* * repeated .clarifai.api.Image heatmaps = 18; */ public java.util.List getHeatmapsBuilderList() { return getHeatmapsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder> getHeatmapsFieldBuilder() { if (heatmapsBuilder_ == null) { heatmapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Image, com.clarifai.grpc.api.Image.Builder, com.clarifai.grpc.api.ImageOrBuilder>( heatmaps_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); heatmaps_ = null; } return heatmapsBuilder_; } @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.Data) } // @@protoc_insertion_point(class_scope:clarifai.api.Data) private static final com.clarifai.grpc.api.Data DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.Data(); } public static com.clarifai.grpc.api.Data getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Data(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.clarifai.grpc.api.Data getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy