Class ThreeDModelRevision.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
com.cognite.client.dto.ThreeDModelRevision.Builder
All Implemented Interfaces:
ThreeDModelRevisionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ThreeDModelRevision

public static final class ThreeDModelRevision.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder> implements ThreeDModelRevisionOrBuilder
Protobuf type com.cognite.client.dto.ThreeDModelRevision
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • getDefaultInstanceForType

      public ThreeDModelRevision getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ThreeDModelRevision build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ThreeDModelRevision buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • setField

      public ThreeDModelRevision.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • clearField

      public ThreeDModelRevision.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • clearOneof

      public ThreeDModelRevision.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • setRepeatedField

      public ThreeDModelRevision.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • addRepeatedField

      public ThreeDModelRevision.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • mergeFrom

      public ThreeDModelRevision.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ThreeDModelRevision.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • mergeFrom

      public ThreeDModelRevision.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ThreeDModelRevision.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
      optional int64 id = 1;
      Specified by:
      hasId in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
      optional int64 id = 1;
      Specified by:
      getId in interface ThreeDModelRevisionOrBuilder
      Returns:
      The id.
    • setId

      public ThreeDModelRevision.Builder setId(long value)
      optional int64 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ThreeDModelRevision.Builder clearId()
      optional int64 id = 1;
      Returns:
      This builder for chaining.
    • hasFileId

      public boolean hasFileId()
      optional int64 file_id = 2;
      Specified by:
      hasFileId in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the fileId field is set.
    • getFileId

      public long getFileId()
      optional int64 file_id = 2;
      Specified by:
      getFileId in interface ThreeDModelRevisionOrBuilder
      Returns:
      The fileId.
    • setFileId

      public ThreeDModelRevision.Builder setFileId(long value)
      optional int64 file_id = 2;
      Parameters:
      value - The fileId to set.
      Returns:
      This builder for chaining.
    • clearFileId

      public ThreeDModelRevision.Builder clearFileId()
      optional int64 file_id = 2;
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
      optional string status = 3;
      Specified by:
      hasStatus in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
      optional string status = 3;
      Specified by:
      getStatus in interface ThreeDModelRevisionOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
      optional string status = 3;
      Specified by:
      getStatusBytes in interface ThreeDModelRevisionOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public ThreeDModelRevision.Builder setStatus(String value)
      optional string status = 3;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public ThreeDModelRevision.Builder clearStatus()
      optional string status = 3;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public ThreeDModelRevision.Builder setStatusBytes(com.google.protobuf.ByteString value)
      optional string status = 3;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • hasThumbnailThreedFileId

      public boolean hasThumbnailThreedFileId()
      optional int64 thumbnail_threed_file_id = 4;
      Specified by:
      hasThumbnailThreedFileId in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the thumbnailThreedFileId field is set.
    • getThumbnailThreedFileId

      public long getThumbnailThreedFileId()
      optional int64 thumbnail_threed_file_id = 4;
      Specified by:
      getThumbnailThreedFileId in interface ThreeDModelRevisionOrBuilder
      Returns:
      The thumbnailThreedFileId.
    • setThumbnailThreedFileId

      public ThreeDModelRevision.Builder setThumbnailThreedFileId(long value)
      optional int64 thumbnail_threed_file_id = 4;
      Parameters:
      value - The thumbnailThreedFileId to set.
      Returns:
      This builder for chaining.
    • clearThumbnailThreedFileId

      public ThreeDModelRevision.Builder clearThumbnailThreedFileId()
      optional int64 thumbnail_threed_file_id = 4;
      Returns:
      This builder for chaining.
    • hasThumbnailURL

      public boolean hasThumbnailURL()
      optional string thumbnail_URL = 5;
      Specified by:
      hasThumbnailURL in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the thumbnailURL field is set.
    • getThumbnailURL

      public String getThumbnailURL()
      optional string thumbnail_URL = 5;
      Specified by:
      getThumbnailURL in interface ThreeDModelRevisionOrBuilder
      Returns:
      The thumbnailURL.
    • getThumbnailURLBytes

      public com.google.protobuf.ByteString getThumbnailURLBytes()
      optional string thumbnail_URL = 5;
      Specified by:
      getThumbnailURLBytes in interface ThreeDModelRevisionOrBuilder
      Returns:
      The bytes for thumbnailURL.
    • setThumbnailURL

      public ThreeDModelRevision.Builder setThumbnailURL(String value)
      optional string thumbnail_URL = 5;
      Parameters:
      value - The thumbnailURL to set.
      Returns:
      This builder for chaining.
    • clearThumbnailURL

      public ThreeDModelRevision.Builder clearThumbnailURL()
      optional string thumbnail_URL = 5;
      Returns:
      This builder for chaining.
    • setThumbnailURLBytes

      public ThreeDModelRevision.Builder setThumbnailURLBytes(com.google.protobuf.ByteString value)
      optional string thumbnail_URL = 5;
      Parameters:
      value - The bytes for thumbnailURL to set.
      Returns:
      This builder for chaining.
    • hasAssetMappingCount

      public boolean hasAssetMappingCount()
      optional int64 asset_mapping_count = 6;
      Specified by:
      hasAssetMappingCount in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the assetMappingCount field is set.
    • getAssetMappingCount

      public long getAssetMappingCount()
      optional int64 asset_mapping_count = 6;
      Specified by:
      getAssetMappingCount in interface ThreeDModelRevisionOrBuilder
      Returns:
      The assetMappingCount.
    • setAssetMappingCount

      public ThreeDModelRevision.Builder setAssetMappingCount(long value)
      optional int64 asset_mapping_count = 6;
      Parameters:
      value - The assetMappingCount to set.
      Returns:
      This builder for chaining.
    • clearAssetMappingCount

      public ThreeDModelRevision.Builder clearAssetMappingCount()
      optional int64 asset_mapping_count = 6;
      Returns:
      This builder for chaining.
    • hasCreatedTime

      public boolean hasCreatedTime()
      optional int64 created_time = 7;
      Specified by:
      hasCreatedTime in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the createdTime field is set.
    • getCreatedTime

      public long getCreatedTime()
      optional int64 created_time = 7;
      Specified by:
      getCreatedTime in interface ThreeDModelRevisionOrBuilder
      Returns:
      The createdTime.
    • setCreatedTime

      public ThreeDModelRevision.Builder setCreatedTime(long value)
      optional int64 created_time = 7;
      Parameters:
      value - The createdTime to set.
      Returns:
      This builder for chaining.
    • clearCreatedTime

      public ThreeDModelRevision.Builder clearCreatedTime()
      optional int64 created_time = 7;
      Returns:
      This builder for chaining.
    • hasPublished

      public boolean hasPublished()
      optional bool published = 8;
      Specified by:
      hasPublished in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the published field is set.
    • getPublished

      public boolean getPublished()
      optional bool published = 8;
      Specified by:
      getPublished in interface ThreeDModelRevisionOrBuilder
      Returns:
      The published.
    • setPublished

      public ThreeDModelRevision.Builder setPublished(boolean value)
      optional bool published = 8;
      Parameters:
      value - The published to set.
      Returns:
      This builder for chaining.
    • clearPublished

      public ThreeDModelRevision.Builder clearPublished()
      optional bool published = 8;
      Returns:
      This builder for chaining.
    • hasCamera

      public boolean hasCamera()
      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
      Specified by:
      hasCamera in interface ThreeDModelRevisionOrBuilder
      Returns:
      Whether the camera field is set.
    • getCamera

      public ThreeDModelRevision.Camera getCamera()
      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
      Specified by:
      getCamera in interface ThreeDModelRevisionOrBuilder
      Returns:
      The camera.
    • setCamera

      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
    • setCamera

      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
    • mergeCamera

      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
    • clearCamera

      public ThreeDModelRevision.Builder clearCamera()
      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
    • getCameraBuilder

      public ThreeDModelRevision.Camera.Builder getCameraBuilder()
      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
    • getCameraOrBuilder

      public ThreeDModelRevision.CameraOrBuilder getCameraOrBuilder()
      optional .com.cognite.client.dto.ThreeDModelRevision.Camera camera = 9;
      Specified by:
      getCameraOrBuilder in interface ThreeDModelRevisionOrBuilder
    • getRotationList

      public List<Double> getRotationList()
      repeated double rotation = 10;
      Specified by:
      getRotationList in interface ThreeDModelRevisionOrBuilder
      Returns:
      A list containing the rotation.
    • getRotationCount

      public int getRotationCount()
      repeated double rotation = 10;
      Specified by:
      getRotationCount in interface ThreeDModelRevisionOrBuilder
      Returns:
      The count of rotation.
    • getRotation

      public double getRotation(int index)
      repeated double rotation = 10;
      Specified by:
      getRotation in interface ThreeDModelRevisionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The rotation at the given index.
    • setRotation

      public ThreeDModelRevision.Builder setRotation(int index, double value)
      repeated double rotation = 10;
      Parameters:
      index - The index to set the value at.
      value - The rotation to set.
      Returns:
      This builder for chaining.
    • addRotation

      public ThreeDModelRevision.Builder addRotation(double value)
      repeated double rotation = 10;
      Parameters:
      value - The rotation to add.
      Returns:
      This builder for chaining.
    • addAllRotation

      public ThreeDModelRevision.Builder addAllRotation(Iterable<? extends Double> values)
      repeated double rotation = 10;
      Parameters:
      values - The rotation to add.
      Returns:
      This builder for chaining.
    • clearRotation

      public ThreeDModelRevision.Builder clearRotation()
      repeated double rotation = 10;
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: ThreeDModelRevisionOrBuilder
      map<string, string> metadata = 11;
      Specified by:
      getMetadataCount in interface ThreeDModelRevisionOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, string> metadata = 11;
      Specified by:
      containsMetadata in interface ThreeDModelRevisionOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface ThreeDModelRevisionOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
      map<string, string> metadata = 11;
      Specified by:
      getMetadataMap in interface ThreeDModelRevisionOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
      map<string, string> metadata = 11;
      Specified by:
      getMetadataOrDefault in interface ThreeDModelRevisionOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 11;
      Specified by:
      getMetadataOrThrow in interface ThreeDModelRevisionOrBuilder
    • clearMetadata

      public ThreeDModelRevision.Builder clearMetadata()
    • removeMetadata

      public ThreeDModelRevision.Builder removeMetadata(String key)
      map<string, string> metadata = 11;
    • getMutableMetadata

      @Deprecated public Map<String,String> getMutableMetadata()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetadata

      public ThreeDModelRevision.Builder putMetadata(String key, String value)
      map<string, string> metadata = 11;
    • putAllMetadata

      public ThreeDModelRevision.Builder putAllMetadata(Map<String,String> values)
      map<string, string> metadata = 11;
    • setUnknownFields

      public final ThreeDModelRevision.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>
    • mergeUnknownFields

      public final ThreeDModelRevision.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ThreeDModelRevision.Builder>