public static final class Input.SecurityRule.Builder extends GeneratedMessageV3.Builder<Input.SecurityRule.Builder> implements Input.SecurityRuleOrBuilder
Security rules for access control. Each field represents one security rule.
Only when the source of the input stream satisfies all the fields, this
input stream can be accepted.
Protobuf type google.cloud.video.livestream.v1.Input.SecurityRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Input.SecurityRule.Builder addAllIpRanges(Iterable<String> values)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameter
Returns
public Input.SecurityRule.Builder addIpRanges(String value)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameter
Name | Description |
value | String
The ipRanges to add.
|
Returns
public Input.SecurityRule.Builder addIpRangesBytes(ByteString value)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameter
Name | Description |
value | ByteString
The bytes of the ipRanges to add.
|
Returns
public Input.SecurityRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Input.SecurityRule build()
Returns
public Input.SecurityRule buildPartial()
Returns
public Input.SecurityRule.Builder clear()
Returns
Overrides
public Input.SecurityRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Input.SecurityRule.Builder clearIpRanges()
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Returns
public Input.SecurityRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Input.SecurityRule.Builder clone()
Returns
Overrides
public Input.SecurityRule getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getIpRanges(int index)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The ipRanges at the given index.
|
public ByteString getIpRangesBytes(int index)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the ipRanges at the given index.
|
public int getIpRangesCount()
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Returns
Type | Description |
int | The count of ipRanges.
|
public ProtocolStringList getIpRangesList()
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Input.SecurityRule.Builder mergeFrom(Input.SecurityRule other)
Parameter
Returns
public Input.SecurityRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Input.SecurityRule.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Input.SecurityRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Input.SecurityRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Input.SecurityRule.Builder setIpRanges(int index, String value)
At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, 192.0.1.0/24
for a range and
192.0.1.0/32
for a single IP address.
repeated string ip_ranges = 1;
Parameters
Name | Description |
index | int
The index to set the value at.
|
value | String
The ipRanges to set.
|
Returns
public Input.SecurityRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Input.SecurityRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides