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 restrictionProtobuf type
ai.pipestream.parsed.data.creative_commons.v1.CcLicenseRestriction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Restriction descriptionRestriction type (e.g., "no_commercial", "no_derivatives", "share_alike")Consequences of violating this restrictionRestriction descriptioncom.google.protobuf.ByteStringRestriction descriptionstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRestriction type (e.g., "no_commercial", "no_derivatives", "share_alike")com.google.protobuf.ByteStringRestriction type (e.g., "no_commercial", "no_derivatives", "share_alike")Consequences of violating this restrictioncom.google.protobuf.ByteStringConsequences of violating this restrictionbooleanRestriction descriptionbooleanConsequences of violating this restrictionprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CcLicenseRestriction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDescription(String value) Restriction descriptionsetDescriptionBytes(com.google.protobuf.ByteString value) Restriction descriptionsetRestrictionType(String value) Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")setRestrictionTypeBytes(com.google.protobuf.ByteString value) Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")setViolationConsequences(String value) Consequences of violating this restrictionsetViolationConsequencesBytes(com.google.protobuf.ByteString value) Consequences of violating this restrictionMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CcLicenseRestriction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CcLicenseRestriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CcLicenseRestriction.Builder>- Throws:
IOException
-
getRestrictionType
Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
string restriction_type = 1 [json_name = "restrictionType"];- Specified by:
getRestrictionTypein interfaceCcLicenseRestrictionOrBuilder- 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:
getRestrictionTypeBytesin interfaceCcLicenseRestrictionOrBuilder- Returns:
- The bytes for restrictionType.
-
setRestrictionType
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
Restriction type (e.g., "no_commercial", "no_derivatives", "share_alike")
string restriction_type = 1 [json_name = "restrictionType"];- Returns:
- This builder for chaining.
-
setRestrictionTypeBytes
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:
hasDescriptionin interfaceCcLicenseRestrictionOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Restriction description
optional string description = 2 [json_name = "description"];- Specified by:
getDescriptionin interfaceCcLicenseRestrictionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Restriction description
optional string description = 2 [json_name = "description"];- Specified by:
getDescriptionBytesin interfaceCcLicenseRestrictionOrBuilder- Returns:
- The bytes for description.
-
setDescription
Restriction description
optional string description = 2 [json_name = "description"];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Restriction description
optional string description = 2 [json_name = "description"];- Returns:
- This builder for chaining.
-
setDescriptionBytes
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:
hasViolationConsequencesin interfaceCcLicenseRestrictionOrBuilder- Returns:
- Whether the violationConsequences field is set.
-
getViolationConsequences
Consequences of violating this restriction
optional string violation_consequences = 3 [json_name = "violationConsequences"];- Specified by:
getViolationConsequencesin interfaceCcLicenseRestrictionOrBuilder- 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:
getViolationConsequencesBytesin interfaceCcLicenseRestrictionOrBuilder- Returns:
- The bytes for violationConsequences.
-
setViolationConsequences
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
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.
-