Class CreateVpcFlowLogsConfigRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateVpcFlowLogsConfigRequest.Builder>
com.google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest.Builder
All Implemented Interfaces:
CreateVpcFlowLogsConfigRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateVpcFlowLogsConfigRequest

public static final class CreateVpcFlowLogsConfigRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateVpcFlowLogsConfigRequest.Builder> implements CreateVpcFlowLogsConfigRequestOrBuilder
 Request for the `CreateVpcFlowLogsConfig` method.
 
Protobuf type google.cloud.networkmanagement.v1beta1.CreateVpcFlowLogsConfigRequest
  • 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<CreateVpcFlowLogsConfigRequest.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<CreateVpcFlowLogsConfigRequest.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<CreateVpcFlowLogsConfigRequest.Builder>
    • getDefaultInstanceForType

      public CreateVpcFlowLogsConfigRequest 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 CreateVpcFlowLogsConfigRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public CreateVpcFlowLogsConfigRequest.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<CreateVpcFlowLogsConfigRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource of the VpcFlowLogsConfig to create,
       in one of the following formats:
      
       - For project-level resources: `projects/{project_id}/locations/global`
      
       - For organization-level resources:
       `organizations/{organization_id}/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the VpcFlowLogsConfig to create,
       in one of the following formats:
      
       - For project-level resources: `projects/{project_id}/locations/global`
      
       - For organization-level resources:
       `organizations/{organization_id}/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource of the VpcFlowLogsConfig to create,
       in one of the following formats:
      
       - For project-level resources: `projects/{project_id}/locations/global`
      
       - For organization-level resources:
       `organizations/{organization_id}/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The parent resource of the VpcFlowLogsConfig to create,
       in one of the following formats:
      
       - For project-level resources: `projects/{project_id}/locations/global`
      
       - For organization-level resources:
       `organizations/{organization_id}/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateVpcFlowLogsConfigRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the VpcFlowLogsConfig to create,
       in one of the following formats:
      
       - For project-level resources: `projects/{project_id}/locations/global`
      
       - For organization-level resources:
       `organizations/{organization_id}/locations/global`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getVpcFlowLogsConfigId

      public String getVpcFlowLogsConfigId()
       Required. ID of the `VpcFlowLogsConfig`.
       
      string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getVpcFlowLogsConfigId in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      The vpcFlowLogsConfigId.
    • getVpcFlowLogsConfigIdBytes

      public com.google.protobuf.ByteString getVpcFlowLogsConfigIdBytes()
       Required. ID of the `VpcFlowLogsConfig`.
       
      string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getVpcFlowLogsConfigIdBytes in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      The bytes for vpcFlowLogsConfigId.
    • setVpcFlowLogsConfigId

      public CreateVpcFlowLogsConfigRequest.Builder setVpcFlowLogsConfigId(String value)
       Required. ID of the `VpcFlowLogsConfig`.
       
      string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The vpcFlowLogsConfigId to set.
      Returns:
      This builder for chaining.
    • clearVpcFlowLogsConfigId

      public CreateVpcFlowLogsConfigRequest.Builder clearVpcFlowLogsConfigId()
       Required. ID of the `VpcFlowLogsConfig`.
       
      string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setVpcFlowLogsConfigIdBytes

      public CreateVpcFlowLogsConfigRequest.Builder setVpcFlowLogsConfigIdBytes(com.google.protobuf.ByteString value)
       Required. ID of the `VpcFlowLogsConfig`.
       
      string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for vpcFlowLogsConfigId to set.
      Returns:
      This builder for chaining.
    • hasVpcFlowLogsConfig

      public boolean hasVpcFlowLogsConfig()
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVpcFlowLogsConfig in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      Whether the vpcFlowLogsConfig field is set.
    • getVpcFlowLogsConfig

      public VpcFlowLogsConfig getVpcFlowLogsConfig()
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpcFlowLogsConfig in interface CreateVpcFlowLogsConfigRequestOrBuilder
      Returns:
      The vpcFlowLogsConfig.
    • setVpcFlowLogsConfig

      public CreateVpcFlowLogsConfigRequest.Builder setVpcFlowLogsConfig(VpcFlowLogsConfig value)
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • setVpcFlowLogsConfig

      public CreateVpcFlowLogsConfigRequest.Builder setVpcFlowLogsConfig(VpcFlowLogsConfig.Builder builderForValue)
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeVpcFlowLogsConfig

      public CreateVpcFlowLogsConfigRequest.Builder mergeVpcFlowLogsConfig(VpcFlowLogsConfig value)
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearVpcFlowLogsConfig

      public CreateVpcFlowLogsConfigRequest.Builder clearVpcFlowLogsConfig()
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVpcFlowLogsConfigBuilder

      public VpcFlowLogsConfig.Builder getVpcFlowLogsConfigBuilder()
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVpcFlowLogsConfigOrBuilder

      public VpcFlowLogsConfigOrBuilder getVpcFlowLogsConfigOrBuilder()
       Required. A `VpcFlowLogsConfig` resource
       
      .google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpcFlowLogsConfigOrBuilder in interface CreateVpcFlowLogsConfigRequestOrBuilder