Class CreateIngressRuleRequest.Builder (2.18.0)

public static final class CreateIngressRuleRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateIngressRuleRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

build()

public CreateIngressRuleRequest build()
Returns
TypeDescription
CreateIngressRuleRequest

buildPartial()

public CreateIngressRuleRequest buildPartial()
Returns
TypeDescription
CreateIngressRuleRequest

clear()

public CreateIngressRuleRequest.Builder clear()
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateIngressRuleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateIngressRuleRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateIngressRuleRequest.Builder

clone()

public CreateIngressRuleRequest.Builder clone()
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateIngressRuleRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateIngressRuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the rule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateIngressRuleRequest other)

public CreateIngressRuleRequest.Builder mergeFrom(CreateIngressRuleRequest other)
Parameter
NameDescription
otherCreateIngressRuleRequest
Returns
TypeDescription
CreateIngressRuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateIngressRuleRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateIngressRuleRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueFirewallRule
Returns
TypeDescription
CreateIngressRuleRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateIngressRuleRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateIngressRuleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateIngressRuleRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateIngressRuleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides

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
NameDescription
valueFirewallRule
Returns
TypeDescription
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
NameDescription
builderForValueFirewallRule.Builder
Returns
TypeDescription
CreateIngressRuleRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateIngressRuleRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateIngressRuleRequest.Builder
Overrides