Class SchemeHeaderTransformation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<SchemeHeaderTransformation.Builder>
-
- io.envoyproxy.envoy.config.core.v3.SchemeHeaderTransformation.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SchemeHeaderTransformationOrBuilder,java.lang.Cloneable
- Enclosing class:
- SchemeHeaderTransformation
public static final class SchemeHeaderTransformation.Builder extends com.google.protobuf.GeneratedMessage.Builder<SchemeHeaderTransformation.Builder> implements SchemeHeaderTransformationOrBuilder
A message to control transformations to the :scheme header
Protobuf typeenvoy.config.core.v3.SchemeHeaderTransformation
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private booleanmatchUpstream_private java.lang.Objecttransformation_private inttransformationCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemeHeaderTransformationbuild()SchemeHeaderTransformationbuildPartial()private voidbuildPartial0(SchemeHeaderTransformation result)private voidbuildPartialOneofs(SchemeHeaderTransformation result)SchemeHeaderTransformation.Builderclear()SchemeHeaderTransformation.BuilderclearMatchUpstream()Set the Scheme header to match the upstream transport protocol.SchemeHeaderTransformation.BuilderclearSchemeToOverwrite()Overwrite any Scheme header with the contents of this string.SchemeHeaderTransformation.BuilderclearTransformation()SchemeHeaderTransformationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetMatchUpstream()Set the Scheme header to match the upstream transport protocol.java.lang.StringgetSchemeToOverwrite()Overwrite any Scheme header with the contents of this string.com.google.protobuf.ByteStringgetSchemeToOverwriteBytes()Overwrite any Scheme header with the contents of this string.SchemeHeaderTransformation.TransformationCasegetTransformationCase()booleanhasSchemeToOverwrite()Overwrite any Scheme header with the contents of this string.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SchemeHeaderTransformation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SchemeHeaderTransformation.BuildermergeFrom(com.google.protobuf.Message other)SchemeHeaderTransformation.BuildermergeFrom(SchemeHeaderTransformation other)SchemeHeaderTransformation.BuildersetMatchUpstream(boolean value)Set the Scheme header to match the upstream transport protocol.SchemeHeaderTransformation.BuildersetSchemeToOverwrite(java.lang.String value)Overwrite any Scheme header with the contents of this string.SchemeHeaderTransformation.BuildersetSchemeToOverwriteBytes(com.google.protobuf.ByteString value)Overwrite any Scheme header with the contents of this string.-
Methods 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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<SchemeHeaderTransformation.Builder>
-
clear
public SchemeHeaderTransformation.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<SchemeHeaderTransformation.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<SchemeHeaderTransformation.Builder>
-
getDefaultInstanceForType
public SchemeHeaderTransformation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SchemeHeaderTransformation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SchemeHeaderTransformation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(SchemeHeaderTransformation result)
-
buildPartialOneofs
private void buildPartialOneofs(SchemeHeaderTransformation result)
-
mergeFrom
public SchemeHeaderTransformation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SchemeHeaderTransformation.Builder>
-
mergeFrom
public SchemeHeaderTransformation.Builder mergeFrom(SchemeHeaderTransformation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SchemeHeaderTransformation.Builder>
-
mergeFrom
public SchemeHeaderTransformation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SchemeHeaderTransformation.Builder>- Throws:
java.io.IOException
-
getTransformationCase
public SchemeHeaderTransformation.TransformationCase getTransformationCase()
- Specified by:
getTransformationCasein interfaceSchemeHeaderTransformationOrBuilder
-
clearTransformation
public SchemeHeaderTransformation.Builder clearTransformation()
-
hasSchemeToOverwrite
public boolean hasSchemeToOverwrite()
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Specified by:
hasSchemeToOverwritein interfaceSchemeHeaderTransformationOrBuilder- Returns:
- Whether the schemeToOverwrite field is set.
-
getSchemeToOverwrite
public java.lang.String getSchemeToOverwrite()
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Specified by:
getSchemeToOverwritein interfaceSchemeHeaderTransformationOrBuilder- Returns:
- The schemeToOverwrite.
-
getSchemeToOverwriteBytes
public com.google.protobuf.ByteString getSchemeToOverwriteBytes()
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Specified by:
getSchemeToOverwriteBytesin interfaceSchemeHeaderTransformationOrBuilder- Returns:
- The bytes for schemeToOverwrite.
-
setSchemeToOverwrite
public SchemeHeaderTransformation.Builder setSchemeToOverwrite(java.lang.String value)
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Parameters:
value- The schemeToOverwrite to set.- Returns:
- This builder for chaining.
-
clearSchemeToOverwrite
public SchemeHeaderTransformation.Builder clearSchemeToOverwrite()
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setSchemeToOverwriteBytes
public SchemeHeaderTransformation.Builder setSchemeToOverwriteBytes(com.google.protobuf.ByteString value)
Overwrite any Scheme header with the contents of this string. If set, takes precedence over match_upstream.
string scheme_to_overwrite = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for schemeToOverwrite to set.- Returns:
- This builder for chaining.
-
getMatchUpstream
public boolean getMatchUpstream()
Set the Scheme header to match the upstream transport protocol. For example, should a request be sent to the upstream over TLS, the scheme header will be set to "https". Should the request be sent over plaintext, the scheme header will be set to "http". If scheme_to_overwrite is set, this field is not used.
bool match_upstream = 2;- Specified by:
getMatchUpstreamin interfaceSchemeHeaderTransformationOrBuilder- Returns:
- The matchUpstream.
-
setMatchUpstream
public SchemeHeaderTransformation.Builder setMatchUpstream(boolean value)
Set the Scheme header to match the upstream transport protocol. For example, should a request be sent to the upstream over TLS, the scheme header will be set to "https". Should the request be sent over plaintext, the scheme header will be set to "http". If scheme_to_overwrite is set, this field is not used.
bool match_upstream = 2;- Parameters:
value- The matchUpstream to set.- Returns:
- This builder for chaining.
-
clearMatchUpstream
public SchemeHeaderTransformation.Builder clearMatchUpstream()
Set the Scheme header to match the upstream transport protocol. For example, should a request be sent to the upstream over TLS, the scheme header will be set to "https". Should the request be sent over plaintext, the scheme header will be set to "http". If scheme_to_overwrite is set, this field is not used.
bool match_upstream = 2;- Returns:
- This builder for chaining.
-
-