Class RouterMd5AuthenticationKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterMd5AuthenticationKey.Builder>
com.google.cloud.compute.v1.RouterMd5AuthenticationKey.Builder
All Implemented Interfaces:
RouterMd5AuthenticationKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RouterMd5AuthenticationKey

public static final class RouterMd5AuthenticationKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouterMd5AuthenticationKey.Builder> implements RouterMd5AuthenticationKeyOrBuilder
 
Protobuf type google.cloud.compute.v1.RouterMd5AuthenticationKey
  • 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<RouterMd5AuthenticationKey.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<RouterMd5AuthenticationKey.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<RouterMd5AuthenticationKey.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public RouterMd5AuthenticationKey.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<RouterMd5AuthenticationKey.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<RouterMd5AuthenticationKey.Builder>
    • mergeFrom

      public RouterMd5AuthenticationKey.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<RouterMd5AuthenticationKey.Builder>
      Throws:
      IOException
    • hasKey

      public boolean hasKey()
       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Specified by:
      hasKey in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Specified by:
      getKey in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Specified by:
      getKeyBytes in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      The bytes for key.
    • setKey

       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public RouterMd5AuthenticationKey.Builder setKeyBytes(com.google.protobuf.ByteString value)
       [Input only] Value of the key.
      
       For patch and update calls, it can be skipped to
       copy the value from the previous configuration. This is allowed if the
       key with the same name existed before the operation. Maximum length is 80
       characters. Can only contain printable ASCII characters.
       
      optional string key = 106079;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      getName in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface RouterMd5AuthenticationKeyOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public RouterMd5AuthenticationKey.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name used to identify the key.
      
       Must be unique within a router. Must be referenced by exactly
       one bgpPeer. Must comply withRFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.