Package com.google.cloud.compute.v1
Class CacheInvalidationRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
- com.google.cloud.compute.v1.CacheInvalidationRule.Builder
-
- All Implemented Interfaces:
CacheInvalidationRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CacheInvalidationRule
public static final class CacheInvalidationRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder> implements CacheInvalidationRuleOrBuilder
google.cloud.compute.v1.CacheInvalidationRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheInvalidationRule.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CacheInvalidationRule
build()
CacheInvalidationRule
buildPartial()
CacheInvalidationRule.Builder
clear()
CacheInvalidationRule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CacheInvalidationRule.Builder
clearHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.CacheInvalidationRule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CacheInvalidationRule.Builder
clearPath()
optional string path = 3433509;
CacheInvalidationRule.Builder
clone()
CacheInvalidationRule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.com.google.protobuf.ByteString
getHostBytes()
If set, this invalidation rule will only apply to requests with a Host header matching host.String
getPath()
optional string path = 3433509;
com.google.protobuf.ByteString
getPathBytes()
optional string path = 3433509;
boolean
hasHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.boolean
hasPath()
optional string path = 3433509;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CacheInvalidationRule.Builder
mergeFrom(CacheInvalidationRule other)
CacheInvalidationRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CacheInvalidationRule.Builder
mergeFrom(com.google.protobuf.Message other)
CacheInvalidationRule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CacheInvalidationRule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CacheInvalidationRule.Builder
setHost(String value)
If set, this invalidation rule will only apply to requests with a Host header matching host.CacheInvalidationRule.Builder
setHostBytes(com.google.protobuf.ByteString value)
If set, this invalidation rule will only apply to requests with a Host header matching host.CacheInvalidationRule.Builder
setPath(String value)
optional string path = 3433509;
CacheInvalidationRule.Builder
setPathBytes(com.google.protobuf.ByteString value)
optional string path = 3433509;
CacheInvalidationRule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CacheInvalidationRule.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
clear
public CacheInvalidationRule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
getDefaultInstanceForType
public CacheInvalidationRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CacheInvalidationRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CacheInvalidationRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CacheInvalidationRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
setField
public CacheInvalidationRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
clearField
public CacheInvalidationRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
clearOneof
public CacheInvalidationRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
setRepeatedField
public CacheInvalidationRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
addRepeatedField
public CacheInvalidationRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
mergeFrom
public CacheInvalidationRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>
-
mergeFrom
public CacheInvalidationRule.Builder mergeFrom(CacheInvalidationRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
mergeFrom
public CacheInvalidationRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>
- Throws:
IOException
-
hasHost
public boolean hasHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Specified by:
hasHost
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- Whether the host field is set.
-
getHost
public String getHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Specified by:
getHost
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Specified by:
getHostBytes
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- The bytes for host.
-
setHost
public CacheInvalidationRule.Builder setHost(String value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public CacheInvalidationRule.Builder clearHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Returns:
- This builder for chaining.
-
setHostBytes
public CacheInvalidationRule.Builder setHostBytes(com.google.protobuf.ByteString value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasPath
public boolean hasPath()
optional string path = 3433509;
- Specified by:
hasPath
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- Whether the path field is set.
-
getPath
public String getPath()
optional string path = 3433509;
- Specified by:
getPath
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
optional string path = 3433509;
- Specified by:
getPathBytes
in interfaceCacheInvalidationRuleOrBuilder
- Returns:
- The bytes for path.
-
setPath
public CacheInvalidationRule.Builder setPath(String value)
optional string path = 3433509;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public CacheInvalidationRule.Builder clearPath()
optional string path = 3433509;
- Returns:
- This builder for chaining.
-
setPathBytes
public CacheInvalidationRule.Builder setPathBytes(com.google.protobuf.ByteString value)
optional string path = 3433509;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CacheInvalidationRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
mergeUnknownFields
public final CacheInvalidationRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>
-
-