Class CcLicenseRestriction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CcLicenseRestriction.Builder>
com.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.Builder>
ai.pipestream.parsed.data.creative_commons.v1.CcLicenseRestriction.Builder
All Implemented Interfaces:
CcLicenseRestrictionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CcLicenseRestriction

public static final class CcLicenseRestriction.Builder extends com.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.Builder> implements CcLicenseRestrictionOrBuilder
 Represents a Creative Commons license restriction
 
Protobuf type ai.pipestream.parsed.data.creative_commons.v1.CcLicenseRestriction
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.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.GeneratedMessage.Builder<CcLicenseRestriction.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.GeneratedMessage.Builder<CcLicenseRestriction.Builder>
    • getDefaultInstanceForType

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

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

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

      public CcLicenseRestriction.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<CcLicenseRestriction.Builder>
    • mergeFrom

    • isInitialized

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

      public CcLicenseRestriction.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<CcLicenseRestriction.Builder>
      Throws:
      IOException
    • getRestrictionType

      public String getRestrictionType()
       Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
       
      string restriction_type = 1 [json_name = "restrictionType"];
      Specified by:
      getRestrictionType in interface CcLicenseRestrictionOrBuilder
      Returns:
      The restrictionType.
    • getRestrictionTypeBytes

      public com.google.protobuf.ByteString getRestrictionTypeBytes()
       Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
       
      string restriction_type = 1 [json_name = "restrictionType"];
      Specified by:
      getRestrictionTypeBytes in interface CcLicenseRestrictionOrBuilder
      Returns:
      The bytes for restrictionType.
    • setRestrictionType

      public CcLicenseRestriction.Builder setRestrictionType(String value)
       Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
       
      string restriction_type = 1 [json_name = "restrictionType"];
      Parameters:
      value - The restrictionType to set.
      Returns:
      This builder for chaining.
    • clearRestrictionType

      public CcLicenseRestriction.Builder clearRestrictionType()
       Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
       
      string restriction_type = 1 [json_name = "restrictionType"];
      Returns:
      This builder for chaining.
    • setRestrictionTypeBytes

      public CcLicenseRestriction.Builder setRestrictionTypeBytes(com.google.protobuf.ByteString value)
       Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
       
      string restriction_type = 1 [json_name = "restrictionType"];
      Parameters:
      value - The bytes for restrictionType to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      hasDescription in interface CcLicenseRestrictionOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface CcLicenseRestrictionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface CcLicenseRestrictionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public CcLicenseRestriction.Builder setDescription(String value)
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public CcLicenseRestriction.Builder clearDescription()
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public CcLicenseRestriction.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Restriction description
       
      optional string description = 2 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasViolationConsequences

      public boolean hasViolationConsequences()
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Specified by:
      hasViolationConsequences in interface CcLicenseRestrictionOrBuilder
      Returns:
      Whether the violationConsequences field is set.
    • getViolationConsequences

      public String getViolationConsequences()
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Specified by:
      getViolationConsequences in interface CcLicenseRestrictionOrBuilder
      Returns:
      The violationConsequences.
    • getViolationConsequencesBytes

      public com.google.protobuf.ByteString getViolationConsequencesBytes()
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Specified by:
      getViolationConsequencesBytes in interface CcLicenseRestrictionOrBuilder
      Returns:
      The bytes for violationConsequences.
    • setViolationConsequences

      public CcLicenseRestriction.Builder setViolationConsequences(String value)
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Parameters:
      value - The violationConsequences to set.
      Returns:
      This builder for chaining.
    • clearViolationConsequences

      public CcLicenseRestriction.Builder clearViolationConsequences()
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Returns:
      This builder for chaining.
    • setViolationConsequencesBytes

      public CcLicenseRestriction.Builder setViolationConsequencesBytes(com.google.protobuf.ByteString value)
       Consequences of violating this restriction
       
      optional string violation_consequences = 3 [json_name = "violationConsequences"];
      Parameters:
      value - The bytes for violationConsequences to set.
      Returns:
      This builder for chaining.