Package com.google.cloud.eventarc.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Required.Optional.Required.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.getPath()Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCluster(String value) Required.setClusterBytes(com.google.protobuf.ByteString value) Required.setLocation(String value) Required.setLocationBytes(com.google.protobuf.ByteString value) Required.setNamespace(String value) Required.setNamespaceBytes(com.google.protobuf.ByteString value) Required.Optional.setPathBytes(com.google.protobuf.ByteString value) Optional.setService(String value) Required.setServiceBytes(com.google.protobuf.ByteString value) Required.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GKE.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GKE.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GKE.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GKE.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GKE.Builder>- Throws:
IOException
-
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:
getClusterin interfaceGKEOrBuilder- 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:
getClusterBytesin interfaceGKEOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
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
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
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
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:
getLocationin interfaceGKEOrBuilder- 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:
getLocationBytesin interfaceGKEOrBuilder- Returns:
- The bytes for location.
-
setLocation
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
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
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
Required. The namespace the GKE service is running in.
string namespace = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamespacein interfaceGKEOrBuilder- 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:
getNamespaceBytesin interfaceGKEOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
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
Required. The namespace the GKE service is running in.
string namespace = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNamespaceBytes
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
Required. Name of the GKE service.
string service = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getServicein interfaceGKEOrBuilder- 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:
getServiceBytesin interfaceGKEOrBuilder- Returns:
- The bytes for service.
-
setService
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
Required. Name of the GKE service.
string service = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setServiceBytes
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
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:
getPathin interfaceGKEOrBuilder- 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:
getPathBytesin interfaceGKEOrBuilder- Returns:
- The bytes for path.
-
setPath
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
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
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.
-