Class RegexRewrite (1.109.0)

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

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()
Returns
Type Description
RegexRewrite

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RegexRewrite.Builder newBuilder()
Returns
Type Description
RegexRewrite.Builder

newBuilder(RegexRewrite prototype)

public static RegexRewrite.Builder newBuilder(RegexRewrite prototype)
Parameter
Name Description
prototype RegexRewrite
Returns
Type Description
RegexRewrite.Builder

parseDelimitedFrom(InputStream input)

public static RegexRewrite parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RegexRewrite parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RegexRewrite parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RegexRewrite parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RegexRewrite parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RegexRewrite parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RegexRewrite parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegexRewrite
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RegexRewrite> parser()
Returns
Type Description
Parser<RegexRewrite>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RegexRewrite getDefaultInstanceForType()
Returns
Type Description
RegexRewrite

getParserForType()

public Parser<RegexRewrite> getParserForType()
Returns
Type Description
Parser<RegexRewrite>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RegexRewrite.Builder newBuilderForType()
Returns
Type Description
RegexRewrite.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RegexRewrite.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RegexRewrite.Builder
Overrides

toBuilder()

public RegexRewrite.Builder toBuilder()
Returns
Type Description
RegexRewrite.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException