Class CreateIngressRuleRequest.Builder (2.83.0)

public static final class CreateIngressRuleRequest.Builder extends GeneratedMessage.Builder<CreateIngressRuleRequest.Builder> implements CreateIngressRuleRequestOrBuilder

Request message for Firewall.CreateIngressRule.

Protobuf type google.appengine.v1.CreateIngressRuleRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateIngressRuleRequest build()
Returns
Type Description
CreateIngressRuleRequest

buildPartial()

public CreateIngressRuleRequest buildPartial()
Returns
Type Description
CreateIngressRuleRequest

clear()

public CreateIngressRuleRequest.Builder clear()
Returns
Type Description
CreateIngressRuleRequest.Builder
Overrides

clearParent()

public CreateIngressRuleRequest.Builder clearParent()

Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.

string parent = 1;

Returns
Type Description
CreateIngressRuleRequest.Builder

This builder for chaining.

clearRule()

public CreateIngressRuleRequest.Builder clearRule()

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Returns
Type Description
CreateIngressRuleRequest.Builder

getDefaultInstanceForType()

public CreateIngressRuleRequest getDefaultInstanceForType()
Returns
Type Description
CreateIngressRuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

getRule()

public FirewallRule getRule()

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Returns
Type Description
FirewallRule

The rule.

getRuleBuilder()

public FirewallRule.Builder getRuleBuilder()

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Returns
Type Description
FirewallRule.Builder

getRuleOrBuilder()

public FirewallRuleOrBuilder getRuleOrBuilder()

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Returns
Type Description
FirewallRuleOrBuilder

hasRule()

public boolean hasRule()

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Returns
Type Description
boolean

Whether the rule field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateIngressRuleRequest other)

public CreateIngressRuleRequest.Builder mergeFrom(CreateIngressRuleRequest other)
Parameter
Name Description
other CreateIngressRuleRequest
Returns
Type Description
CreateIngressRuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateIngressRuleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIngressRuleRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateIngressRuleRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateIngressRuleRequest.Builder
Overrides

mergeRule(FirewallRule value)

public CreateIngressRuleRequest.Builder mergeRule(FirewallRule value)

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Parameter
Name Description
value FirewallRule
Returns
Type Description
CreateIngressRuleRequest.Builder

setParent(String value)

public CreateIngressRuleRequest.Builder setParent(String value)

Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateIngressRuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateIngressRuleRequest.Builder setParentBytes(ByteString value)

Name of the parent Firewall collection in which to create a new rule. Example: apps/myapp/firewall/ingressRules.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateIngressRuleRequest.Builder

This builder for chaining.

setRule(FirewallRule value)

public CreateIngressRuleRequest.Builder setRule(FirewallRule value)

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Parameter
Name Description
value FirewallRule
Returns
Type Description
CreateIngressRuleRequest.Builder

setRule(FirewallRule.Builder builderForValue)

public CreateIngressRuleRequest.Builder setRule(FirewallRule.Builder builderForValue)

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.

If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.

.google.appengine.v1.FirewallRule rule = 2;

Parameter
Name Description
builderForValue FirewallRule.Builder
Returns
Type Description
CreateIngressRuleRequest.Builder