Class CacheInvalidationRule (1.24.0)

public final class CacheInvalidationRule extends GeneratedMessageV3 implements CacheInvalidationRuleOrBuilder

Protobuf type google.cloud.compute.v1.CacheInvalidationRule

Static Fields

HOST_FIELD_NUMBER

public static final int HOST_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CacheInvalidationRule getDefaultInstance()
Returns
TypeDescription
CacheInvalidationRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CacheInvalidationRule.Builder newBuilder()
Returns
TypeDescription
CacheInvalidationRule.Builder

newBuilder(CacheInvalidationRule prototype)

public static CacheInvalidationRule.Builder newBuilder(CacheInvalidationRule prototype)
Parameter
NameDescription
prototypeCacheInvalidationRule
Returns
TypeDescription
CacheInvalidationRule.Builder

parseDelimitedFrom(InputStream input)

public static CacheInvalidationRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CacheInvalidationRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CacheInvalidationRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CacheInvalidationRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CacheInvalidationRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CacheInvalidationRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CacheInvalidationRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CacheInvalidationRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CacheInvalidationRule> parser()
Returns
TypeDescription
Parser<CacheInvalidationRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CacheInvalidationRule getDefaultInstanceForType()
Returns
TypeDescription
CacheInvalidationRule

getHost()

public String getHost()

If set, this invalidation rule will only apply to requests with a Host header matching host.

optional string host = 3208616;

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

If set, this invalidation rule will only apply to requests with a Host header matching host.

optional string host = 3208616;

Returns
TypeDescription
ByteString

The bytes for host.

getParserForType()

public Parser<CacheInvalidationRule> getParserForType()
Returns
TypeDescription
Parser<CacheInvalidationRule>
Overrides

getPath()

public String getPath()

optional string path = 3433509;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

optional string path = 3433509;

Returns
TypeDescription
ByteString

The bytes for path.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasHost()

public boolean hasHost()

If set, this invalidation rule will only apply to requests with a Host header matching host.

optional string host = 3208616;

Returns
TypeDescription
boolean

Whether the host field is set.

hasPath()

public boolean hasPath()

optional string path = 3433509;

Returns
TypeDescription
boolean

Whether the path field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CacheInvalidationRule.Builder newBuilderForType()
Returns
TypeDescription
CacheInvalidationRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CacheInvalidationRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CacheInvalidationRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CacheInvalidationRule.Builder toBuilder()
Returns
TypeDescription
CacheInvalidationRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException