public final class RegexRewrite extends GeneratedMessage implements RegexRewriteOrBuilder
The spec for modifying the path using a regular expression.
Protobuf type google.cloud.compute.v1.RegexRewrite
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
PATH_PATTERN_FIELD_NUMBER
public static final int PATH_PATTERN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PATH_SUBSTITUTION_FIELD_NUMBER
public static final int PATH_SUBSTITUTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RegexRewrite getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RegexRewrite.Builder newBuilder()
newBuilder(RegexRewrite prototype)
public static RegexRewrite.Builder newBuilder(RegexRewrite prototype)
public static RegexRewrite parseDelimitedFrom(InputStream input)
public static RegexRewrite parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RegexRewrite parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RegexRewrite parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RegexRewrite parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RegexRewrite parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RegexRewrite parseFrom(CodedInputStream input)
public static RegexRewrite parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RegexRewrite parseFrom(InputStream input)
public static RegexRewrite parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RegexRewrite parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RegexRewrite parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RegexRewrite> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public RegexRewrite getDefaultInstanceForType()
getParserForType()
public Parser<RegexRewrite> getParserForType()
Overrides
getPathPattern()
public String getPathPattern()
Required. The regular expression used to match against the URL path.
It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g.
.*
Any char repetition, e.g. .*, is
only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns |
| Type |
Description |
String |
The pathPattern.
|
getPathPatternBytes()
public ByteString getPathPatternBytes()
Required. The regular expression used to match against the URL path.
It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g.
.*
Any char repetition, e.g. .*, is
only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns |
| Type |
Description |
ByteString |
The bytes for pathPattern.
|
getPathSubstitution()
public String getPathSubstitution()
Required. Required when path pattern is specified. Used to rewrite matching parts of
the path.
optional string path_substitution = 268020951;
| Returns |
| Type |
Description |
String |
The pathSubstitution.
|
getPathSubstitutionBytes()
public ByteString getPathSubstitutionBytes()
Required. Required when path pattern is specified. Used to rewrite matching parts of
the path.
optional string path_substitution = 268020951;
| Returns |
| Type |
Description |
ByteString |
The bytes for pathSubstitution.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasPathPattern()
public boolean hasPathPattern()
Required. The regular expression used to match against the URL path.
It uses RE2 syntax with the following constraints:
- Any single character operators
- Groups are allowed to have only submatch operator inside
- Groups are allowed only without any char repetition, e.g.
.*
Any char repetition, e.g. .*, is
only allowed to be used in a single regex together with:
Empty string operators
- Other repetitions
- Ranges
Repetitions of ranges
Ranges are only allowed to have:
Character range
- Digits range
- Symbols listed in characters allowed for ranges
optional string path_pattern = 316473718;
| Returns |
| Type |
Description |
boolean |
Whether the pathPattern field is set.
|
hasPathSubstitution()
public boolean hasPathSubstitution()
Required. Required when path pattern is specified. Used to rewrite matching parts of
the path.
optional string path_substitution = 268020951;
| Returns |
| Type |
Description |
boolean |
Whether the pathSubstitution field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RegexRewrite.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RegexRewrite.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RegexRewrite.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides