Class GKE.Builder

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

public static final class GKE.Builder extends com.google.protobuf.GeneratedMessage.Builder<GKE.Builder> implements GKEOrBuilder
 Represents a GKE destination.
 
Protobuf type google.cloud.eventarc.v1.GKE
  • 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<GKE.Builder>
    • clear

      public GKE.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<GKE.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<GKE.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GKE.Builder mergeFrom(GKE other)
    • isInitialized

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

      public GKE.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<GKE.Builder>
      Throws:
      IOException
    • getCluster

      public String getCluster()
       Required. The name of the cluster the GKE service is running in. The
       cluster must be running in the same project as the trigger being created.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCluster in interface GKEOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Required. The name of the cluster the GKE service is running in. The
       cluster must be running in the same project as the trigger being created.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterBytes in interface GKEOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public GKE.Builder setCluster(String value)
       Required. The name of the cluster the GKE service is running in. The
       cluster must be running in the same project as the trigger being created.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public GKE.Builder clearCluster()
       Required. The name of the cluster the GKE service is running in. The
       cluster must be running in the same project as the trigger being created.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClusterBytes

      public GKE.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Required. The name of the cluster the GKE service is running in. The
       cluster must be running in the same project as the trigger being created.
       
      string cluster = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Required. The name of the Google Compute Engine in which the cluster
       resides, which can either be compute zone (for example, us-central1-a) for
       the zonal clusters or region (for example, us-central1) for regional
       clusters.
       
      string location = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocation in interface GKEOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Required. The name of the Google Compute Engine in which the cluster
       resides, which can either be compute zone (for example, us-central1-a) for
       the zonal clusters or region (for example, us-central1) for regional
       clusters.
       
      string location = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationBytes in interface GKEOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public GKE.Builder setLocation(String value)
       Required. The name of the Google Compute Engine in which the cluster
       resides, which can either be compute zone (for example, us-central1-a) for
       the zonal clusters or region (for example, us-central1) for regional
       clusters.
       
      string location = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public GKE.Builder clearLocation()
       Required. The name of the Google Compute Engine in which the cluster
       resides, which can either be compute zone (for example, us-central1-a) for
       the zonal clusters or region (for example, us-central1) for regional
       clusters.
       
      string location = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public GKE.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Required. The name of the Google Compute Engine in which the cluster
       resides, which can either be compute zone (for example, us-central1-a) for
       the zonal clusters or region (for example, us-central1) for regional
       clusters.
       
      string location = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getNamespace

      public String getNamespace()
       Required. The namespace the GKE service is running in.
       
      string namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespace in interface GKEOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Required. The namespace the GKE service is running in.
       
      string namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNamespaceBytes in interface GKEOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public GKE.Builder setNamespace(String value)
       Required. The namespace the GKE service is running in.
       
      string namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public GKE.Builder clearNamespace()
       Required. The namespace the GKE service is running in.
       
      string namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public GKE.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Required. The namespace the GKE service is running in.
       
      string namespace = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getService

      public String getService()
       Required. Name of the GKE service.
       
      string service = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getService in interface GKEOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       Required. Name of the GKE service.
       
      string service = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceBytes in interface GKEOrBuilder
      Returns:
      The bytes for service.
    • setService

      public GKE.Builder setService(String value)
       Required. Name of the GKE service.
       
      string service = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public GKE.Builder clearService()
       Required. Name of the GKE service.
       
      string service = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setServiceBytes

      public GKE.Builder setServiceBytes(com.google.protobuf.ByteString value)
       Required. Name of the GKE service.
       
      string service = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       Optional. The relative path on the GKE service the events should be sent
       to.
      
       The value must conform to the definition of a URI path segment (section 3.3
       of RFC2396). Examples: "/route", "route", "route/subroute".
       
      string path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPath in interface GKEOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Optional. The relative path on the GKE service the events should be sent
       to.
      
       The value must conform to the definition of a URI path segment (section 3.3
       of RFC2396). Examples: "/route", "route", "route/subroute".
       
      string path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathBytes in interface GKEOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public GKE.Builder setPath(String value)
       Optional. The relative path on the GKE service the events should be sent
       to.
      
       The value must conform to the definition of a URI path segment (section 3.3
       of RFC2396). Examples: "/route", "route", "route/subroute".
       
      string path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public GKE.Builder clearPath()
       Optional. The relative path on the GKE service the events should be sent
       to.
      
       The value must conform to the definition of a URI path segment (section 3.3
       of RFC2396). Examples: "/route", "route", "route/subroute".
       
      string path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPathBytes

      public GKE.Builder setPathBytes(com.google.protobuf.ByteString value)
       Optional. The relative path on the GKE service the events should be sent
       to.
      
       The value must conform to the definition of a URI path segment (section 3.3
       of RFC2396). Examples: "/route", "route", "route/subroute".
       
      string path = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.