Class Input.SecurityRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Input.SecurityRule.Builder>
com.google.cloud.video.livestream.v1.Input.SecurityRule.Builder
All Implemented Interfaces:
Input.SecurityRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Input.SecurityRule

public static final class Input.SecurityRule.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Summary

    Modifier and Type
    Method
    Description
    At least one ip range must match unless none specified.
    At least one ip range must match unless none specified.
    addIpRangesBytes(com.google.protobuf.ByteString value)
    At least one ip range must match unless none specified.
     
     
     
    At least one ip range must match unless none specified.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getIpRanges(int index)
    At least one ip range must match unless none specified.
    com.google.protobuf.ByteString
    getIpRangesBytes(int index)
    At least one ip range must match unless none specified.
    int
    At least one ip range must match unless none specified.
    com.google.protobuf.ProtocolStringList
    At least one ip range must match unless none specified.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setIpRanges(int index, String value)
    At least one ip range must match unless none specified.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Input.SecurityRule.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Input.SecurityRule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Input.SecurityRule.Builder>
    • getDefaultInstanceForType

      public Input.SecurityRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Input.SecurityRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Input.SecurityRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Input.SecurityRule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Input.SecurityRule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Input.SecurityRule.Builder>
    • mergeFrom

      public Input.SecurityRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Input.SecurityRule.Builder>
      Throws:
      IOException
    • getIpRangesList

      public com.google.protobuf.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;
      Specified by:
      getIpRangesList in interface Input.SecurityRuleOrBuilder
      Returns:
      A list containing the ipRanges.
    • getIpRangesCount

      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;
      Specified by:
      getIpRangesCount in interface Input.SecurityRuleOrBuilder
      Returns:
      The count of ipRanges.
    • getIpRanges

      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;
      Specified by:
      getIpRanges in interface Input.SecurityRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipRanges at the given index.
    • getIpRangesBytes

      public com.google.protobuf.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;
      Specified by:
      getIpRangesBytes in interface Input.SecurityRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipRanges at the given index.
    • setIpRanges

      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:
      index - The index to set the value at.
      value - The ipRanges to set.
      Returns:
      This builder for chaining.
    • addIpRanges

      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;
      Parameters:
      value - The ipRanges to add.
      Returns:
      This builder for chaining.
    • addAllIpRanges

      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;
      Parameters:
      values - The ipRanges to add.
      Returns:
      This builder for chaining.
    • clearIpRanges

      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:
      This builder for chaining.
    • addIpRangesBytes

      public Input.SecurityRule.Builder addIpRangesBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes of the ipRanges to add.
      Returns:
      This builder for chaining.