Package com.google.api.expr.v1alpha1
Class SourceInfo.Extension.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<SourceInfo.Extension,SourceInfo.Extension.Builder>
com.google.api.expr.v1alpha1.SourceInfo.Extension.Builder
- All Implemented Interfaces:
SourceInfo.ExtensionOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- SourceInfo.Extension
public static final class SourceInfo.Extension.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<SourceInfo.Extension,SourceInfo.Extension.Builder>
implements SourceInfo.ExtensionOrBuilder
An extension that was requested for the source expression.Protobuf type
google.api.expr.v1alpha1.SourceInfo.Extension
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionIf set, the listed components must understand the extension for the expression to evaluate correctly.addAffectedComponentsValue
(int value) If set, the listed components must understand the extension for the expression to evaluate correctly.addAllAffectedComponents
(Iterable<? extends SourceInfo.Extension.Component> values) If set, the listed components must understand the extension for the expression to evaluate correctly.addAllAffectedComponentsValue
(Iterable<Integer> values) If set, the listed components must understand the extension for the expression to evaluate correctly.If set, the listed components must understand the extension for the expression to evaluate correctly.clearId()
Identifier for the extension.Version info.getAffectedComponents
(int index) If set, the listed components must understand the extension for the expression to evaluate correctly.int
If set, the listed components must understand the extension for the expression to evaluate correctly.If set, the listed components must understand the extension for the expression to evaluate correctly.int
getAffectedComponentsValue
(int index) If set, the listed components must understand the extension for the expression to evaluate correctly.If set, the listed components must understand the extension for the expression to evaluate correctly.getId()
Identifier for the extension.com.google.protobuf.ByteString
Identifier for the extension.Version info.boolean
Version info.Version info.setAffectedComponents
(int index, SourceInfo.Extension.Component value) If set, the listed components must understand the extension for the expression to evaluate correctly.setAffectedComponentsValue
(int index, int value) If set, the listed components must understand the extension for the expression to evaluate correctly.Identifier for the extension.setIdBytes
(com.google.protobuf.ByteString value) Identifier for the extension.Version info.setVersion
(SourceInfo.Extension.Version.Builder builderForValue) Version info.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
-
Method Details
-
getId
Identifier for the extension. Example: constant_folding
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Identifier for the extension. Example: constant_folding
string id = 1 [json_name = "id"];
- Specified by:
getIdBytes
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The bytes for id.
-
setId
Identifier for the extension. Example: constant_folding
string id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Identifier for the extension. Example: constant_folding
string id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
setIdBytes
Identifier for the extension. Example: constant_folding
string id = 1 [json_name = "id"];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getAffectedComponentsList
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Specified by:
getAffectedComponentsList
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- A list containing the affectedComponents.
-
getAffectedComponentsCount
public int getAffectedComponentsCount()If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Specified by:
getAffectedComponentsCount
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The count of affectedComponents.
-
getAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Specified by:
getAffectedComponents
in interfaceSourceInfo.ExtensionOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The affectedComponents at the given index.
-
setAffectedComponents
public SourceInfo.Extension.Builder setAffectedComponents(int index, SourceInfo.Extension.Component value) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
index
- The index to set the value at.value
- The affectedComponents to set.- Returns:
- This builder for chaining.
-
addAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
value
- The affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponents
public SourceInfo.Extension.Builder addAllAffectedComponents(Iterable<? extends SourceInfo.Extension.Component> values) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
values
- The affectedComponents to add.- Returns:
- This builder for chaining.
-
clearAffectedComponents
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Returns:
- This builder for chaining.
-
getAffectedComponentsValueList
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Specified by:
getAffectedComponentsValueList
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for affectedComponents.
-
getAffectedComponentsValue
public int getAffectedComponentsValue(int index) If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Specified by:
getAffectedComponentsValue
in interfaceSourceInfo.ExtensionOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of affectedComponents at the given index.
-
setAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for affectedComponents to set.- Returns:
- This builder for chaining.
-
addAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
value
- The enum numeric value on the wire for affectedComponents to add.- Returns:
- This builder for chaining.
-
addAllAffectedComponentsValue
If set, the listed components must understand the extension for the expression to evaluate correctly. This field has set semantics, repeated values should be deduplicated.
repeated .google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2 [json_name = "affectedComponents"];
- Parameters:
values
- The enum numeric values on the wire for affectedComponents to add.- Returns:
- This builder for chaining.
-
hasVersion
public boolean hasVersion()Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
- Specified by:
hasVersion
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- Whether the version field is set.
-
getVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
- Specified by:
getVersion
in interfaceSourceInfo.ExtensionOrBuilder
- Returns:
- The version.
-
setVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
-
setVersion
public SourceInfo.Extension.Builder setVersion(SourceInfo.Extension.Version.Builder builderForValue) Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
-
mergeVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
-
clearVersion
Version info. May be skipped if it isn't meaningful for the extension. (for example constant_folding might always be v0.0).
.google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3 [json_name = "version"];
-