Package com.google.protobuf
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 com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
Field Summary
Fields inherited from class com.google.protobuf.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.boolean
The deprecation warning text if this feature is used after the edition it was marked deprecated in.boolean
The edition this feature becomes deprecated in.boolean
The edition that this feature was first available in.boolean
The 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 com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.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:
hasEditionIntroduced
in 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:
getEditionIntroduced
in 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:
hasEditionDeprecated
in 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:
getEditionDeprecated
in 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:
hasDeprecationWarning
in 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:
getDeprecationWarning
in 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:
getDeprecationWarningBytes
in 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:
hasEditionRemoved
in 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:
getEditionRemoved
in 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.
-