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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GKE
build()
GKE
buildPartial()
GKE.Builder
clear()
GKE.Builder
clearCluster()
Required.GKE.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GKE.Builder
clearLocation()
Required.GKE.Builder
clearNamespace()
Required.GKE.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GKE.Builder
clearPath()
Optional.GKE.Builder
clearService()
Required.GKE.Builder
clone()
String
getCluster()
Required.com.google.protobuf.ByteString
getClusterBytes()
Required.GKE
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLocation()
Required.com.google.protobuf.ByteString
getLocationBytes()
Required.String
getNamespace()
Required.com.google.protobuf.ByteString
getNamespaceBytes()
Required.String
getPath()
Optional.com.google.protobuf.ByteString
getPathBytes()
Optional.String
getService()
Required.com.google.protobuf.ByteString
getServiceBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GKE.Builder
mergeFrom(GKE other)
GKE.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GKE.Builder
mergeFrom(com.google.protobuf.Message other)
GKE.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GKE.Builder
setCluster(String value)
Required.GKE.Builder
setClusterBytes(com.google.protobuf.ByteString value)
Required.GKE.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GKE.Builder
setLocation(String value)
Required.GKE.Builder
setLocationBytes(com.google.protobuf.ByteString value)
Required.GKE.Builder
setNamespace(String value)
Required.GKE.Builder
setNamespaceBytes(com.google.protobuf.ByteString value)
Required.GKE.Builder
setPath(String value)
Optional.GKE.Builder
setPathBytes(com.google.protobuf.ByteString value)
Optional.GKE.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GKE.Builder
setService(String value)
Required.GKE.Builder
setServiceBytes(com.google.protobuf.ByteString value)
Required.GKE.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clear
public GKE.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
getDefaultInstanceForType
public GKE getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GKE build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GKE buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GKE.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
setField
public GKE.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clearField
public GKE.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
clearOneof
public GKE.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
setRepeatedField
public GKE.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
addRepeatedField
public GKE.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
mergeFrom
public GKE.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GKE.Builder>
-
mergeFrom
public GKE.Builder mergeFrom(GKE other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCluster
in 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:
getClusterBytes
in 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:
getLocation
in 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:
getLocationBytes
in 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:
getNamespace
in 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:
getNamespaceBytes
in 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:
getService
in 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:
getServiceBytes
in 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:
getPath
in 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:
getPathBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
mergeUnknownFields
public final GKE.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GKE.Builder>
-
-