public final class WebhookConfig extends GeneratedMessageV3 implements WebhookConfigOrBuilder
WebhookConfig describes the configuration of a trigger that
creates a build whenever a webhook is sent to a trigger's webhook URL.
Protobuf type google.devtools.cloudbuild.v1.WebhookConfig
Static Fields
SECRET_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static WebhookConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WebhookConfig.Builder newBuilder()
Returns
newBuilder(WebhookConfig prototype)
public static WebhookConfig.Builder newBuilder(WebhookConfig prototype)
Parameter
Returns
public static WebhookConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WebhookConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WebhookConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WebhookConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WebhookConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static WebhookConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WebhookConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static WebhookConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WebhookConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WebhookConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WebhookConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAuthMethodCase()
public WebhookConfig.AuthMethodCase getAuthMethodCase()
Returns
getDefaultInstanceForType()
public WebhookConfig getDefaultInstanceForType()
Returns
getParserForType()
public Parser<WebhookConfig> getParserForType()
Returns
Overrides
getSecret()
public String getSecret()
Required. Resource name for the secret required as a URL parameter.
string secret = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The secret.
|
getSecretBytes()
public ByteString getSecretBytes()
Required. Resource name for the secret required as a URL parameter.
string secret = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getState()
public WebhookConfig.State getState()
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
.google.devtools.cloudbuild.v1.WebhookConfig.State state = 4;
Returns
getStateValue()
public int getStateValue()
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
.google.devtools.cloudbuild.v1.WebhookConfig.State state = 4;
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasSecret()
public boolean hasSecret()
Required. Resource name for the secret required as a URL parameter.
string secret = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
boolean | Whether the secret field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public WebhookConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WebhookConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WebhookConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions