Class DescriptorProtos.FieldOptions.FeatureSupport.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<DescriptorProtos.FieldOptions.FeatureSupport, DescriptorProtos.FieldOptions.FeatureSupport.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.FieldOptions.FeatureSupport, DescriptorProtos.FieldOptions.FeatureSupport.Builder>
com.google.protobuf.DescriptorProtos.FieldOptions.FeatureSupport.Builder
- All Implemented Interfaces:
DescriptorProtos.FieldOptions.FeatureSupportOrBuilder, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
- Enclosing class:
DescriptorProtos.FieldOptions.FeatureSupport
public static final class DescriptorProtos.FieldOptions.FeatureSupport.Builder
extends GeneratedMessageLite.Builder<DescriptorProtos.FieldOptions.FeatureSupport, DescriptorProtos.FieldOptions.FeatureSupport.Builder>
implements DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
Information about the support window of a feature.Protobuf type
google.protobuf.FieldOptions.FeatureSupport-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream -
Field Summary
Fields inherited from class GeneratedMessageLite.Builder
instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe deprecation warning text if this feature is used after the edition it was marked deprecated in.The edition this feature becomes deprecated in.The edition that this feature was first available in.The edition this feature is no longer available in.The deprecation warning text if this feature is used after the edition it was marked deprecated in.The deprecation warning text if this feature is used after the edition it was marked deprecated in.The edition this feature becomes deprecated in.The edition that this feature was first available in.The edition this feature is no longer available in.booleanThe deprecation warning text if this feature is used after the edition it was marked deprecated in.booleanThe edition this feature becomes deprecated in.booleanThe edition that this feature was first available in.booleanThe edition this feature is no longer available in.setDeprecationWarning(String value) The deprecation warning text if this feature is used after the edition it was marked deprecated in.The deprecation warning text if this feature is used after the edition it was marked deprecated in.The edition this feature becomes deprecated in.The edition that this feature was first available in.The edition this feature is no longer available in.Methods inherited from class GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
hasEditionIntroduced
public boolean hasEditionIntroduced()The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_introduced = 1;- Specified by:
hasEditionIntroducedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- Whether the editionIntroduced field is set.
-
getEditionIntroduced
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_introduced = 1;- Specified by:
getEditionIntroducedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- The editionIntroduced.
-
setEditionIntroduced
public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionIntroduced(DescriptorProtos.Edition value) The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_introduced = 1;- Parameters:
value- The enum numeric value on the wire for editionIntroduced to set.- Returns:
- This builder for chaining.
-
clearEditionIntroduced
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_introduced = 1;- Returns:
- This builder for chaining.
-
hasEditionDeprecated
public boolean hasEditionDeprecated()The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
optional .google.protobuf.Edition edition_deprecated = 2;- Specified by:
hasEditionDeprecatedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- Whether the editionDeprecated field is set.
-
getEditionDeprecated
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
optional .google.protobuf.Edition edition_deprecated = 2;- Specified by:
getEditionDeprecatedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- The editionDeprecated.
-
setEditionDeprecated
public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionDeprecated(DescriptorProtos.Edition value) The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
optional .google.protobuf.Edition edition_deprecated = 2;- Parameters:
value- The enum numeric value on the wire for editionDeprecated to set.- Returns:
- This builder for chaining.
-
clearEditionDeprecated
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
optional .google.protobuf.Edition edition_deprecated = 2;- Returns:
- This builder for chaining.
-
hasDeprecationWarning
public boolean hasDeprecationWarning()The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Specified by:
hasDeprecationWarningin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- Whether the deprecationWarning field is set.
-
getDeprecationWarning
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Specified by:
getDeprecationWarningin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- The deprecationWarning.
-
getDeprecationWarningBytes
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Specified by:
getDeprecationWarningBytesin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- The bytes for deprecationWarning.
-
setDeprecationWarning
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Parameters:
value- The deprecationWarning to set.- Returns:
- This builder for chaining.
-
clearDeprecationWarning
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Returns:
- This builder for chaining.
-
setDeprecationWarningBytes
public DescriptorProtos.FieldOptions.FeatureSupport.Builder setDeprecationWarningBytes(ByteString value) The deprecation warning text if this feature is used after the edition it was marked deprecated in.
optional string deprecation_warning = 3;- Parameters:
value- The bytes for deprecationWarning to set.- Returns:
- This builder for chaining.
-
hasEditionRemoved
public boolean hasEditionRemoved()The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_removed = 4;- Specified by:
hasEditionRemovedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- Whether the editionRemoved field is set.
-
getEditionRemoved
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_removed = 4;- Specified by:
getEditionRemovedin interfaceDescriptorProtos.FieldOptions.FeatureSupportOrBuilder- Returns:
- The editionRemoved.
-
setEditionRemoved
public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionRemoved(DescriptorProtos.Edition value) The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_removed = 4;- Parameters:
value- The enum numeric value on the wire for editionRemoved to set.- Returns:
- This builder for chaining.
-
clearEditionRemoved
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
optional .google.protobuf.Edition edition_removed = 4;- Returns:
- This builder for chaining.
-