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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GKE.Builder> implements GKEOrBuilder
Represents a GKE destination.
Protobuf typegoogle.cloud.eventarc.v1.GKE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GKE.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GKEbuild()GKEbuildPartial()GKE.Builderclear()GKE.BuilderclearCluster()Required.GKE.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GKE.BuilderclearLocation()Required.GKE.BuilderclearNamespace()Required.GKE.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GKE.BuilderclearPath()Optional.GKE.BuilderclearService()Required.GKE.Builderclone()StringgetCluster()Required.com.google.protobuf.ByteStringgetClusterBytes()Required.GKEgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLocation()Required.com.google.protobuf.ByteStringgetLocationBytes()Required.StringgetNamespace()Required.com.google.protobuf.ByteStringgetNamespaceBytes()Required.StringgetPath()Optional.com.google.protobuf.ByteStringgetPathBytes()Optional.StringgetService()Required.com.google.protobuf.ByteStringgetServiceBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GKE.BuildermergeFrom(GKE other)GKE.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GKE.BuildermergeFrom(com.google.protobuf.Message other)GKE.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GKE.BuildersetCluster(String value)Required.GKE.BuildersetClusterBytes(com.google.protobuf.ByteString value)Required.GKE.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GKE.BuildersetLocation(String value)Required.GKE.BuildersetLocationBytes(com.google.protobuf.ByteString value)Required.GKE.BuildersetNamespace(String value)Required.GKE.BuildersetNamespaceBytes(com.google.protobuf.ByteString value)Required.GKE.BuildersetPath(String value)Optional.GKE.BuildersetPathBytes(com.google.protobuf.ByteString value)Optional.GKE.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GKE.BuildersetService(String value)Required.GKE.BuildersetServiceBytes(com.google.protobuf.ByteString value)Required.GKE.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clear
public GKE.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<GKE.Builder>
-
getDefaultInstanceForType
public GKE getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GKE build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GKE buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GKE.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
setField
public GKE.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clearField
public GKE.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clearOneof
public GKE.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
setRepeatedField
public GKE.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
addRepeatedField
public GKE.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
mergeFrom
public GKE.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GKE.Builder>
-
mergeFrom
public GKE.Builder mergeFrom(GKE other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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:
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
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:
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
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:
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
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:
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
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:
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
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.
-
setUnknownFields
public final GKE.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
mergeUnknownFields
public final GKE.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
-